dennisv1 Posted March 23, 2014 Share Posted March 23, 2014 Hello, I have a problem with my pdf invoice. If I have a long invoice, 2 pages or more, Adobe reader says it contains an error. The second page is empty and it only displays the footer of the first page in the middle of the page. I used this guide to modify my invoice: http://www.prestashop.com/forums/topic/213664-guide-modifying-prestashop-15-invoice-template/ With the default invoice pdf I have the same problem. I followed this topic: http://forge.prestashop.com/browse/PSCFV-11536 They said to remove line 187 of the PDFGenerator.php: $this->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM); but it didn’t work. Does anyone know how I can fix this? I’m using prestashop version 1.5.4.1 Thanks! Link to comment Share on other sites More sharing options...
tuk66 Posted March 24, 2014 Share Posted March 24, 2014 It is a known bug. I don't know how to fix it directly in PrestaShop (maybe a new version is better than yours) but the M4 PDF Extensions' module templates don't have this problem. 1 Link to comment Share on other sites More sharing options...
dennisv1 Posted March 25, 2014 Author Share Posted March 25, 2014 It is a known bug. I don't know how to fix it directly in PrestaShop (maybe a new version is better than yours) but the M4 PDF Extensions' module templates don't have this problem. thanks for your reaction, but 99 euros is a little bit to much for me. is there anybody that has another solution for this problem? thanks in advance! Link to comment Share on other sites More sharing options...
areynolds Posted March 31, 2014 Share Posted March 31, 2014 Hello dennisv1, Try to remove this line in Override/classes/pdf/PDFGenerator.php. I haved the same problema and now works fine. Link to comment Share on other sites More sharing options...
samuel89 Posted June 21, 2017 Share Posted June 21, 2017 Hello dennisv1, Try to remove this line in Override/classes/pdf/PDFGenerator.php. I haved the same problema and now works fine. bumped! What is the solution? It's happening to PS1.6 too. Link to comment Share on other sites More sharing options...
tuk66 Posted June 26, 2017 Share Posted June 26, 2017 Do you have any PDF example? Link to comment Share on other sites More sharing options...
samuel89 Posted June 26, 2017 Share Posted June 26, 2017 you can refer to this link http://imgur.com/a/4Vph4 Link to comment Share on other sites More sharing options...
tuk66 Posted June 26, 2017 Share Posted June 26, 2017 Yes, all PDF templates should prevent page break within a table (and row as well). Try to use nobr="true" in <table> and/or <tr> tags. Link to comment Share on other sites More sharing options...
Recommended Posts