0

我正在为访问课程的学生生成文档。我在mendix中创建了一个应用程序,并使用文档模板功能来生成文档。我需要为每个学生生成姓名标签、证书、问候屏幕等。在名称标签上,我需要旋转一些文本。

问题是,当mendix生成文档时,它使用 fo:table-cell 并在该 fo:block 中。据我所知,“参考方向”对它们都不起作用,我也尝试过,但它只是忽略了参考方向设置。正如我所说,我不能改变 mendix 创建文档的方式,只包含一个 fo:block-container 左右。

所以我的问题是,是否有办法旋转 fo:table-cell 或 fo:block?我在 mendix 论坛和互联网上搜索了很长时间,但看起来不太有希望。是否有人已经这样做了,或者知道我该如何解决这个问题?将不胜感激。

谢谢

如果有人需要这里生成的 xsl-fo 文件,它是:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"><fo:layout-master-set><fo:simple-page-master master-name="FirstPage" page-height="8.268in" page-width="11.693in"><fo:region-body margin-bottom="0.5in" margin-left="0.5in" margin-right="0.5in" margin-top="0.5in"/><fo:region-before display-align="before" extent="0.5in" region-name="xsl-region-before"/><fo:region-after display-align="after" extent="0.5in" region-name="xsl-region-after"/><fo:region-start extent="0.5in"/><fo:region-end extent="0.5in"/></fo:simple-page-master><fo:simple-page-master master-name="MainPage" page-height="8.268in" page-width="11.693in"><fo:region-body margin-bottom="0.5in" margin-left="0.5in" margin-right="0.5in" margin-top="0.5in"/><fo:region-before display-align="before" extent="0.5in" region-name="xsl-region-before"/><fo:region-after display-align="after" extent="0.5in" region-name="xsl-region-after"/><fo:region-start extent="0.5in"/><fo:region-end extent="0.5in"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence master-reference="FirstPage"><fo:flow flow-name="xsl-region-body"><fo:block color="#000000" font-family="Helvetica" font-size="10pt" font-style="normal" font-weight="normal"><fo:block><fo:table border-collapse="separate" border-spacing="0pt" table-layout="fixed" text-align="left" width="100%"><fo:table-column column-width="100%"/><fo:table-body><fo:table-row><fo:table-cell display-align="before" padding="0pt" reference-orientation="90" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block><fo:table border-collapse="separate" border-spacing="0pt" table-layout="fixed" text-align="right" width="100%"><fo:table-column column-width="100%"/><fo:table-body><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="right"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block color="#301476" font-family="helvlight" font-size="54pt" linefeed-treatment="preserve" white-space-collapse="false" wrap-option="wrap">teacher name</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="right"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block color="#301476" font-family="helvlight" font-size="32pt" linefeed-treatment="preserve" white-space-collapse="false" wrap-option="wrap">Teacher:</fo:block></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block linefeed-treatment="preserve">
</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"/></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:table border-collapse="separate" border-spacing="0pt" table-layout="fixed" text-align="left" width="100%"><fo:table-column column-width="100%"/><fo:table-body><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block color="#301476" font-family="helvlight" font-size="54pt" linefeed-treatment="preserve" white-space-collapse="false" wrap-option="wrap">Student</fo:block></fo:block></fo:table-cell></fo:table-row><fo:table-row><fo:table-cell display-align="before" padding="0pt" text-align="left"><fo:block white-space-collapse="false" wrap-option="wrap"><fo:block color="#301476" font-family="helvlight" font-size="32pt" linefeed-treatment="preserve" white-space-collapse="false" wrap-option="wrap">Company Name</fo:block></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block></fo:table-cell></fo:table-row></fo:table-body></fo:table></fo:block><fo:block id="terminator"/></fo:block></fo:flow></fo:page-sequence></fo:root>
4

0 回答 0