2
Vote

Page Break Issue - Unable to recognise page-break-after

description

I have tried inserting a div element to my HTML string with the attribute page-break-after: always, which should separate content and render multiple pages for the end PDF conversion. However, the end result does not separate the document into multiple pages as forced using the div element. This is the snippet:

"<p><strong>PAGE ONE</strong><br />
<br />
What is Lorem Ipsum?</p>
<p><strong>Lorem Ipsum</strong>&nbsp;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s, when an<br /> <br /> <strong>Lorem Ipsum</strong><br /> &nbsp;</p> <div style="page-break-after: always"><span style="display: none;">&nbsp;</span></div> <p>PAGE TWO</p> "

Please fix this issue, thanks in advanced!

Regards,

Adhy

comments