Skip to main content

How to force new page in output PDF

How to force new page in output PDF

To force new page in output PDF just use special HTML / CSS style option page-break-after:always; which asks to break and start a new page:

Example 1:

<div style = "display:block; clear:both; page-break-after:always;"></div>

Example 2:

<p style = "display:block; clear:both; page-break-after:always;"></p>

You may also create tables with rows that are going into new pages automatically. Please see this article for more information.

Did this answer your question?