You can insert page breaks before and after HTML elements in the generated PDF document by setting the PageBreakBeforeHtmlElementsSelectors and PageBreakAfterHtmlElementsSelectors API properties. If a HTML element is selected by PageBreakBeforeHtmlElementsSelectors selector a page break will be forced right before the position in PDF page where the element would be normally rendered. If a HTML element is selected by PageBreakAfterHtmlElementsSelectors selector a page break will be forced right after the position in PDF page where the element would be normally rendered.

At the top of the demo you can choose the HTML document to convert which can be:
The options you can set in this demo are: