News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Invoice PDF does not open (Adobe says corrupt or damaged file)

Started by james912375, February 18, 2014, 22:43:10 PM

Previous topic - Next topic

james912375

Hi all,

Joomla version 2.5.17
VM version 2.0.26d

Im having trouble with the invoice in the orders section.

When i click the icon in the backend to generate an invoice or a delivery note the file saved or tried to open shows the error "There was an error opening this document. The file is damaged and could not be repaired."
I have tried saving the document and opening it from adobe but still doesnt work.

Can anyone help please??

Thanks in  advance

Cheers
James

james912375

Hi all,

As i received no reply to this issue i spoke to a programmer/developer friend who has helped out.

It turns out Php was running in safe mode and the error reporting was being output so the files were being corrupted.

The fix is to go to joomla global config - server - then set the "error reporting when in production mode" to "NONE" .

Hope this helps others.

James

cathyhill

Quote from: james912375 on February 18, 2014, 22:43:10 PM
Hi all,

Joomla version 2.5.17
VM version 2.0.26d

Im having trouble with the invoice in the orders section.

When i click the icon in the backend to generate pdf an invoice or a delivery note the file saved or tried to open shows the error "There was an error opening this pdf document. The file is damaged and could not be repaired."
I have tried saving the document and opening it from adobe but still doesnt work.

Can anyone help please??

Thanks in  advance

Cheers
James

Sorry for not being able to offer some in-time help. But thank you for posting the solution here, the community needs people like you. :D
Hope my useless thanks did not irritate the admins ;D

lenso

Hey friend,

Did you take back up of original PDF document? If you have the back up copy, then you can easily restore your corrupted PDF file. If not, then a good solution is required to recover data from this file. I was having the same problem with my PDF document, I searched fro the solution over the internet and luckily I got one. I would like to share it with you.

nalavadebela.wordpress.com/2014/03/26/advanced-way-to-fix-corrupted-pdf-documents/

This post helped me to fix my damaged PDF file and I am sure you will also find it helpful.

Thanks.