{"id":273,"date":"2015-09-13T16:51:42","date_gmt":"2015-09-13T16:51:42","guid":{"rendered":"http:\/\/angelwings.net\/blog\/?p=273"},"modified":"2015-09-13T16:51:42","modified_gmt":"2015-09-13T16:51:42","slug":"prestashop-1-6-pdf-invoice-error-in-large-orders","status":"publish","type":"post","link":"https:\/\/angelwings.net\/blog\/prestashop-1-6-pdf-invoice-error-in-large-orders\/","title":{"rendered":"Prestashop 1.6: PDF invoice error in large orders"},"content":{"rendered":"<p>For some reason, when there are many products in an order, the PDF invoice generated by Prestashop backoffice and user front-end does not display all the products ordered.<\/p>\n<p>In this case, there were 49 products.<\/p>\n<p>Opening the generated PDF in Acrobat Reader triggers a warning message about it unable to display correctly and other PDF readers had the same issue.<\/p>\n<p>Tried searching for solutions that suggested making changes to files in classes\/pdf\/PDFGenerator.php and tools\/tcpdf\/tcpdf.php, etc, but none worked.<\/p>\n<p><strong>An unexpected workaround<\/strong>.<\/p>\n<p>After downloading the same PDF file, I used Chrome browser to open it and it displayed properly WITHIN the browser! No formatting error or missing content. I posted the same file to my gmail account and opened it without a glitch too.<\/p>\n<p>I generated another PDF file by printing the one displayed correctly by Chrome browser using PrimoPDF (http:\/\/www.primopdf.com\/) and the new file worked like a charm.<\/p>\n<p>Although I didn&#8217;t find a solution to fix the issue in Prestashop, this workaround will do for now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For some reason, when there are many products in an order, the PDF invoice generated by Prestashop backoffice and user front-end does not display all the products ordered. In this case, there were 49 products. Opening the generated PDF in Acrobat Reader triggers a warning message about it unable to display correctly and other PDF [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[49,96,103,108],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-ecommerce","tag-chrome","tag-pdf","tag-prestashop","tag-primopdf"],"_links":{"self":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":0,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"wp:attachment":[{"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/angelwings.net\/blog\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}