Replies: 3 comments 7 replies
-
You should be able to do this using callbacks. As an example, with the following HTML:
The following callback should hide the header on the last page:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick reply. This is correct, but my requirement is that pages will be added automatically; I am not breaking the page manually. For example any invoice may have 20 products so product table will be lengthy & multiple page will be created automatically as needed hence i need general footer on each page but footer with amount, tax, etc. details on last page only. HTML code is attached below for your reference.
|
Beta Was this translation helpful? Give feedback.
-
Thank you so much. You have saved my many days. Your given logic worked perfectly where footer with amount is showing on last page using setcallback. I need help with a situation where, in the product table, if only one product is in the database, then one row will inserted hence table borders will not stretch till the footer. i want to stretch product table border till footer whether one product or many product. If you have any insights on this, please guide me. I have attached 2 images of Generated PDF and Expected PDF. |
Beta Was this translation helpful? Give feedback.
-
I am creating Invoice where if invoice has more than one page so i want to show total amount, taxes. discount, etc. on last page inside footer. so in short i want to show footer on each page but last page should have different footer. If anyone know the solution please guide me.
Beta Was this translation helpful? Give feedback.
All reactions