PDF page break

I love the new PDF addition. I have a question. Prior this update I used the https://pdfmyurl.com/ solution. Is almost the same as Wappler new component as I notice in documentation. My only concern is to create an invoice where you want to decide where to break the page is there an option here? So you can control what content need to be on first page and what on the second, etc. On the pdfmyurl solution uses this (Screenshot) is that posible on wappler component?

Thanks and congratulations for this component.

I previously used PDFshift - there is also a similar principle via CSS - it’s also interesting to understand whether it will work in Wappler

1 Like

We will be adding more pdf specific sub components for the pdf content, so page break can be one of them.

6 Likes

Add a pdf-pagebreak-before class to the element you want a pagebreak before.

<h1>First page</h1>
<p>My content</p>
<h2 class="pdf-pagebreak-before">My second page</h2>
<p>My content</p>
3 Likes