Problem
When creating a PDF from HTML, I would like to always avoid a page break directly after an H1 tag.
Prince Recommended Solution
To avoid a page break directly after a particular element you should apply the “page-break-after:avoid” CSS rule to the element.
My Results
I’ve have implemented this solution and attached both the HTML and PDF output. However, if you look at pages 7 and 10 of the PDF you will notice that there is a page break directly after an h1 tag.
Question
Is it possible to prevent this from happening? That is, can you force Prince to page break in these scenarios?