I’m using ASPOSE for java
And i need force a page break, while write HTML to PDF:
String abc = ("< div > content < /div > < table > List Information < /table >");
Document doc = new Document(abc, HtmlLoadOptions);
I want “content” in page 1 and “table” in next page.
How can I do force a page break?
Plz, help me.
Thank you very much
Thanks for your inquiry.
We have logged an enhancement ticket as PDFJAVA-37563 in our issue tracking system for your requirement. We will further investigate the feasibility of required feature and keep you posted with the status of investigation progress. Please be patient and spare us little time.
We are sorry for the inconvenience.
Thanks for your attention.
I’m waiting everyday for your answer.
Thanks for contacting support.
We are pleased to inform you that earlier logged ticket has been resolved. In order to add a page break, please use the CSS
page-break-after property in source HTML (ref: W3Schools). We have also tested the scenario in our environment while using following HTML and table was rendered on next page inside output PDF.
<div style="page-break-after: always;"> content </div> <table> <tr><td>Hello</td></tr> </table>
In case of any further assistance, please feel free to let us know.