标题说明了一切。我正在尝试使用ASPOSE生成PDF。 我的XML文件看起来像这样。
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="lead-page">
<fo:region-body margin-top="3in" margin-right="0.5in" margin-bottom="0.7in" margin-left="0.5in" />
<fo:region-before extent="4in" region-name="header-first" />
<fo:region-after extent="0.5in" />
<fo:region-start extent="0.5in" />
<fo:region-end extent="1.25in" />
</fo:simple-page-master>
<fo:simple-page-master master-name="content-pages">
<fo:region-body margin-top="0.5in" margin-right="0.5in" margin-bottom="1in" margin-left="0.5in" />
<fo:region-before extent="0.5in" />
<fo:region-after extent="0.5in" />
<fo:region-start extent="0.5in" />
<fo:region-end extent="0.5in" />
</fo:simple-page-master>
<fo:page-sequence-master master-name="page-sequence-master">
<fo:single-page-master-reference master-reference="lead-page" />
<fo:repeatable-page-master-reference master-reference="content-pages" />
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="page-sequence-master">
<fo:static-content flow-name="header-first" margin-right="0.5in" margin-left="0.5in" margin-top="0in">
<!-- Some static stuff here to display on first page only. -->
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font-family="Arial" font-size="8pt" space-before="0.1in">
<fo:block>
<!-- Rest of the stuff -->
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
有一些静态内容(公司名称,徽标等)我试图在第一页上显示。 <fo:static-content>
下的所有内容都未显示。我哪里错了?