如何使用iText 7添加自定义标记以在html2pdf转换中添加分页符

时间:2017-05-03 11:06:30

标签: java html2pdf itext7

<div>
<h1>
This is a custom tag worker sample.
</h1>
<br>
<h1>
This is a custom tag worker sample.</h1>
<break/>
<h1>
This is a custom tag worker sample after page break.</h1>
<break/>
<h3>This is last page</h3>
</div>

根据上面的html,我希望生成的pdf包含一个类型为next_page的分页符,只要有一个break标记。

0 个答案:

没有答案