Tarlin Posted March 24, 2015 Share Posted March 24, 2015 Hi everyone, I seem to have a problem with the generating pdf's for invoice and delivery slip. When I do so on a tablet or a phone the pdf is just fine and I can open it without any trouble whatsoever. If I try the same from my PC all it does is generate a corrupt pdf file. Anyone have an idea on how to solve this? I'm running a multistore prestashop 1.6.0.9. Already tried emptying the cache. Also, when I mail the pdf I downloaded on my phone to my PC it works just fine. Thnx in advance! Link to comment Share on other sites More sharing options...
tuk66 Posted March 24, 2015 Share Posted March 24, 2015 What do you mean "corrupt pdf file"? It is a known problem with the bult-in Chrome PDF viewer. The problem comes from TCPDF library. Try to save the invoice and open in Acrobat Reader. Link to comment Share on other sites More sharing options...
Tarlin Posted March 24, 2015 Author Share Posted March 24, 2015 Thnx for the reply! Sadly, Acrobat gives me the error message: "Acrobat could not open xxxxx.pdf because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)". When I try to open the file in MS Word it wants me to convert to another encoding. IE and Firefox just give me a blank screen, just like Chrome. Link to comment Share on other sites More sharing options...
tuk66 Posted March 24, 2015 Share Posted March 24, 2015 OK. I take my previous post back. This is another problem. Link to comment Share on other sites More sharing options...
Tarlin Posted March 24, 2015 Author Share Posted March 24, 2015 (edited) Even more fun, when I log in as the customer and go into the my account settings on the front-end the invoice shows fine as well. So far it's only from the backoffice on the PC that it doesn't work. Edited March 24, 2015 by Tarlin (see edit history) Link to comment Share on other sites More sharing options...
Tarlin Posted March 25, 2015 Author Share Posted March 25, 2015 Problem solved. Apparently PDF's in Prestashop can't handle it very well if you use gzip to speed up the domain, the pdf-headers got a little messed up. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now