freemarker和分页符中的多行pdf

时间:2018-04-21 21:18:54

标签: xslt freemarker xsl-fo

假设您有以下内容。如果行不适合页面,我如何包装它们以产生分页符?

<fo:table-body start-indent="0pt">
 #loop here
   <fo:table-row>
   </fo:table-row>

   <fo:table-row>
   </fo:table-row>

   <fo:table-row>
   </fo:table-row>


 # loop ends here
</fo:table-body>

1 个答案:

答案 0 :(得分:0)

变化:

<fo:table-body start-indent="0pt">

为:

<fo:table-body start-indent="0pt" keep-together.within-page="always">

请参阅https://www.w3.org/TR/xsl11/#keep-together