Document Template detect page break for invoice lines sub to

Posted by m.rambelon on 29-Jun-2016 07:08


Is it possible to create an invoice file pdf with many invoice lines and detect when a new page is created when generating the pdf.

Look at the picture below to understand what i really want to do :

All Replies

Posted by Santosh Patel on 30-Jun-2016 01:14


This is not possible. The PDF renderer that we use does not support this. This would involve splitting the data into multiple tables that fit exactly (or most of) the page and then include subtotal calculation. Rollbase generates HTML content which is then passed to the PDF renderer and that takes care of splitting tables over pdf pages (currently supporting smart table breaks which re-renders the header row for the part of the table in new page).

The subtotal calculation logic lies with Rollbase while rendering calculations lie with the PDF renderer.

This thread is closed