Preventing page breaks in a text block with iText, XMLWorker

I have a text block in a <div> or <p> that I want to not have a page break. If the text block does not fit on the current page, I want it on a new page. How to configure XMLWorker to prevent page breaks in certain tags?

+2
itext itextsharp xmlworker
source share
1 answer

Starting with version XMLWorker on iText supports page-break-inside: avoid; See Changelog

+4
source share

All Articles