Posted: 28 Jun 2016 20:49 EDT Last activity: 16 Aug 2016 14:33 EDT
Page Break in PDF
We have a requirement to put page break in PDF to divide the pages correctly. To Specifically mention, if any table exists in Page One along with other list of fields like text areas. Due to more lines of comments in text fields, the table displayed next to it can flow from PageOne to PageTwo which will be partially divided into two parts. To overcome this situation, we are looking put a page break in PDF. So that we can separate the pages correctly. Also for table getting across pages and inability to dictate where the page-break should appear. Raised an SR also for this.
We have tried the below available option,
In inline style of a free form layout, kept the HTML fragment "<DIV style="page-break-after:always"></DIV>". Can use page-break-after:always or page-break-before:always. Included the layout in a section. But didn't worked as expected.
Please let us know, if any similar situation came across and have any functionality to use for the same.
Message was edited by: Marissa Rogers - Moved from Mesh Help, added category
***Updated by Moderator: Vidyaranjan. Tagged #helpme; user awaiting assistance***
***Updated by Moderator: Marissa to add SR to post***
If you are using HTMLToPDF activity for generating PDF, it accepts footer HTML under parameter pyEnableSmartTableBreaks. Set pyEnableSmartTableBreaks to true in the parameters list passed to HTMLToPDF activity. Create the html table using <table> tag instead <div> tags.