自由标记和分页符 pdf 中的多行



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

<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>

更改:

<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

最新更新