This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Forcing a page break?

SoloX wrote on 2013-06-24:
Apologies of this has been answered - I searched and looked at the documentation, did not find anything.

Is there any way to embed some HTML tag that tells the convertor to force the ensuing HTML to be on the next page?

Would be very useful for table of contents, etc.
support wrote on 2013-06-25:

To force a page break you can use the page-break-after css property. Example:
<div style="page-break-after: always;"></div>

To avoid a page break you can use the page-break-inside css property:
<div style="page-break-inside: avoid"> 
SoloX wrote on 2013-06-25:
That worked great, thanks! wrote on 2020-12-16:
style = {"page-break-inside:always"}
does this property support i pdfcrowd ??
support wrote on 2020-12-16:
Yes, this property is supported. However "always" is not a valid value. The CSS specification allows the following values for page-break-inside: auto, avoid, inherit, initial, avoid (more info here)