I using iTextSharp (V 5.4.2.0) to convert a html page to pdf. But I would like to be able to set a new page.
I've tried this:
<div style="page-break-before:always"> </div>
and the tag <newpage />
But it doesn't work. What is the best way, to create a html page, including new page tags (or something) to be able to convert it correctly using iTextSharp?
Kind regards,
Matthijs
A <np />
tag in your HTML inserts a page break in the Document/PDF.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With