Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个文本块,<div>或者<p>我不想在其中有分页符。如果文本块不适合当前页面,那么我希望它在新页面上。如何设置XMLWorker以防止某些标签内的分页符?
<div>
<p>
XMLWorker
从 5.5.7 版XMLWorker开始,iText 支持page-break-inside: avoid;查看变更日志
page-break-inside: avoid;