steve02cal Posted January 24, 2015 Share Posted January 24, 2015 Hello - I am currently running PrestaShop v1.5.6.2. I am encountering an error whenever I have an Invoice that is greater than 1 page. When I try to print the Invoice, I receive the following error: "An error exists on this page. Acrobat may not display the page correctly. Please contact the person that created the PDF document to correct the problem." When the invoice does print, it will print page 1 perfectly, than on page 2, I only get the header, followed by 1 line of print, and then the footer gets printed on top of the header. It makes it very difficult to send the Invoice to the customer. I am using Adobe Reader v11.0.10 This error has been happening for the last year and I cannot find a resolution to the problem. I have even tried to save the Invoice to my computer, and then open it in Adobe Reader to print, and I get the same error. I have also tried using different version of Adobe Reader, all producing the same error message. If anyone has a solution, or can help me find a solution, it would be greatly appreciated. Thank you for taking time to read my questions. Sincerely, Stephen Stauffacher Link to comment Share on other sites More sharing options...
tuk66 Posted January 25, 2015 Share Posted January 25, 2015 (edited) It means, the PDF file has been corrupted. Maybe some part is missing, maybe PDF syntax is wrong and you can also check your logo (or more images, if any). Can you share a PDF example? Edited January 25, 2015 by tuk66 (see edit history) Link to comment Share on other sites More sharing options...
steve02cal Posted January 25, 2015 Author Share Posted January 25, 2015 Hello Tuk66 - The PDF File is one that is generated by Prestashop v1.5.6.2 This is nothing new that I am creating. I'm only using what is provided by Prestashop v1.5.6.2 I have no control over how the code was produced. I'm thinking there may be a problem with Prestashop v1.5.6.2 in the way it handles Invoices over 1 page in length, and how it converts using Adobe. Link to comment Share on other sites More sharing options...
tuk66 Posted January 26, 2015 Share Posted January 26, 2015 I have seen some problems with multipage invoices. I am not sure what versions are affected. Anyway, this is about invoice looking, not corrupted PDF file format. That is why I asked for an example. Link to comment Share on other sites More sharing options...
steve02cal Posted January 26, 2015 Author Share Posted January 26, 2015 Hello Tuk66 - I will see if I can post a copy of the PDF to this posting. I need to create one using an "In House Account" as I do not want my "customer" information to be distributed without their knowledge. It will take me a little bit to put together an In House order that will produce the 2 page invoice. Once I do that, then I can post the PDF File as an attachment. I also did further testing and this error occurs on multiple different computers, both with saving the PDF then printing, and printing directly from the website. So I know it is not isolated to a particular computer and not isolated to a particular version of Adobe Acrobat Reader. I really appreciate your assistance and response to this question. Thank you very much !! Link to comment Share on other sites More sharing options...
Josele Hernández Posted January 29, 2015 Share Posted January 29, 2015 Hi, i have the same problem, i attach and example invoice, it happens only at page 2, page 3, 4 or more its ok. http://tarifamayorista.com/TNR000005.pdf Download it and open on a pdf desktop reader, because if you open it on the web browser the error doesn't appears. Best regards. -- Josele Link to comment Share on other sites More sharing options...
tuk66 Posted January 29, 2015 Share Posted January 29, 2015 @Josele The formatting is one thing, not good. But the "An error exists on this page...." is strange. I think the invoice is complete, uncut and it is a valid PDF format. Well, almost. I tried to print it via PDF Creator and the only difference is the logo (black & white). Can you check the invoice logo is correct? I mean not PNG format with JPG extension, or something. Can you use other logo - a valid JPG image? Link to comment Share on other sites More sharing options...
Josele Hernández Posted January 29, 2015 Share Posted January 29, 2015 I have try it in two differents prestashops, 1.5.6.0 and a clon of it updated to 1.6.0.11 and with differen logos, and the error it still happens on page 2. Thanks for your help. Link to comment Share on other sites More sharing options...
Josele Hernández Posted January 29, 2015 Share Posted January 29, 2015 Also i have deleted the logo file and the error persist event without logo Link to comment Share on other sites More sharing options...
tuk66 Posted January 29, 2015 Share Posted January 29, 2015 OK. So it really seems to have a problem in the TCPDF library for long orders. Or maybe the invoice template used in PrestaShop. Link to comment Share on other sites More sharing options...
Josele Hernández Posted January 29, 2015 Share Posted January 29, 2015 Do you known which part or folder of the PS is involved on the invoice generation?, i could reinstal it and try... Link to comment Share on other sites More sharing options...
tuk66 Posted January 29, 2015 Share Posted January 29, 2015 I think it won't help. It looks like a bug, somewhere. /pdf /classes/pdf /tools/tcpdf Link to comment Share on other sites More sharing options...
Josele Hernández Posted January 29, 2015 Share Posted January 29, 2015 I have try it in a new and clean prestashop 1.6.0.11 instalation and the problem is still there, could be some thing about the hosting? or the PHP configuration? What do you thing about? Think, not thing, sorry Link to comment Share on other sites More sharing options...
enesri Posted March 10, 2015 Share Posted March 10, 2015 HELLO, MY PASS ME THE SAME, IS A BIG PROBLEM, NO ONE IS ABLE TO PROVIDE A SOLUTION? Link to comment Share on other sites More sharing options...
deepxfan Posted March 10, 2015 Share Posted March 10, 2015 (edited) Hi, I had the same problem and this was the solution : notice that you have to copy the file and paste it in override/classes/pdf Hope it'll work for you! Edited March 10, 2015 by deepxfan (see edit history) Link to comment Share on other sites More sharing options...
Josele Hernández Posted March 10, 2015 Share Posted March 10, 2015 Thanks but not working for me. Link to comment Share on other sites More sharing options...
RIA Creation Posted April 22, 2015 Share Posted April 22, 2015 Hello, The solution of deepxfan is not working for me too. Does anyone has a solution to this problem ? Thanks in advance. Link to comment Share on other sites More sharing options...
RIA Creation Posted April 22, 2015 Share Posted April 22, 2015 Hello back, The solution for this issue is, for now, to use foxit reader as said here http://forge.prestashop.com/browse/PSCSX-5393?filter=-2. This should be fixed in the next updates of Prestashop. Best regards. Link to comment Share on other sites More sharing options...
Recommended Posts