How do you add a page break in a PDF with XSL-FO?

会有一股神秘感。 提交于 2019-12-08 23:26:58

问题


How do you add a page break into a document with XSL-FO? I'm using Apache FOP to create PDFs, if that makes a difference.


回答1:


The FOP compliance page says that it supports page-break-after, page-break-before, and page-break-inside in the later versions, plus partial support for keep-together, keep-with-next, keep-with-previous.




回答2:


You can also do:

<fo:block page-break-before="always">



回答3:


Thanks, the following worked for adding a page break after a table:

<fo:table break-after="page">



回答4:


This worked for me. But this is Elite Design Gallery syntax.

<w:p ><w:r><w:br w:type="page"/></w:r></w:p>


来源:https://stackoverflow.com/questions/225654/how-do-you-add-a-page-break-in-a-pdf-with-xsl-fo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!