When printing several orders in the admin part, the bottom of the page (footer) of the list of orders is not displayed correctly in pdf, in version 1.7 and higher of prestashop
You may encounter such a problem that the footer in the generated pdf file will not be displayed correctly on all pages. For example, it is not displayed on any page, or another header or footer from another order is simply displayed. In this case, I give an answer to this problem.
Below are the codes of classes that will need to be redefined and changed to exactly the code that I describe below!
1. In class PDF.php maybe you have footer called at the beginning of creation, you need to register at the end of creation
It will be in line 27
I display an example:
In class PDFGenerator.php add footer content creation cache. This problem is due to the fact that a new order is taken from the list, but the current order has not yet been added to the next pages, since some orders have a printout of several pages
Below I show adding a cache to get footer content: