Saturday, April 5, 2014

Nintex - HTML to PDF - Force Page Break

Recently we had required to force a page break on converted PDF file from HTML content.

I gave it try with following but did not work:

<table>...</table>
<div style='page-break-after:always;'></div>
<table>...</table>

It looks like using just div does not works, it might be due to that div with no content is not visible on page.
So I applied the css to the table tag and it worked, following is working code:

<table>...</table>
<table style='page-break-before:always;'>...</table>

Hope this will be helpful to someone and save time!

No comments: