[Html2PdfConverter] Content starting from new page in pdf

Forge Component
(61)
Published on 17 May by Guilherme Pereira
61 votes
Published on 17 May by Guilherme Pereira

My pdf is generated in which 2 grid which are having less data generates on 1st page of pdf but 3rd grid is having some long data ,why this is starting from 2nd page of the grid leaving white spaces on 1st page?


PDF Attached

Hi Nitesh Ahirwar,

You can keep your content from splitting from one page to the other using CSS page-breaks:

The page-break-inside property sets whether a page-break should be avoided inside a specified element.
The page-break-before property adds a page-break before a specified element.
The page-break-after property adds a page-break after a specified element.

Maybe you need this {page-break-inside: avoid;}


Watch this link for more info

https://www.outsystems.com/forums/discussion/17923/html2pdfconverter-faq/


Hope this help


Patrícia