This is a bug report. We have found that PDF files opened in the Firefox built-in viewer (plug-in) can become corrupted when downloaded using the 'Download' icon on the upper right-hand corner of the screen. When we attempt to open one of these damaged files using Acrobat, this error message is displayed:
'There was an error opening this document. The file is damaged and could not be repaired.'
If we instead download the file by right-clicking in the viewer plug-in and select 'Save Page As...' the file is downloaded undamaged.
One example where this behavior occurred is with the the file labeled: Butterfish Fishery Information Document on the page:
- All posts
- Helpful Solutions
hello ClayH, a fix for this issue should arrive in firefox 26. in the meantime you could also install the current development version of the pdf viewer, which is available as addon from http://mozilla.github.io/pdf.js/extensions/firefox/pdf.js.xpi and which should already contain the bugfix.
Philipp - I installed the development version of the viewer and that seems to have corrected the problem. Thanks very much!
Someone should agitate for uplifting the fix to Firefox 25. I've probably saved dozens of PDFs this way, some of which may be dynamically generated during a transaction and now unrecoverable. !!
Note: I'm aware of one such unrecoverable corrupted file so far, because I forwarded it to someone for uploading into a document management system and they send the error message back to me. How many were not reported back to me? Hmmm...
I've noticed this problem on FF 24.0. There appears to be a lot of null bytes appended to the end of the document. If you remove all the null bytes after the end of file marker the document will open in Adobe's Acrobat without error. I'm not suggest users do that, just pointing it out.
Thanks for the fix though. It will be much appreciated in our office.
I tried this fix and it works as expected.
Thanks for the fix
Came to this post after finding this issue still exists in FF 26. Installing the current development version of the pdf viewer worked as well, but will this fix make it into the main branch?
hello joe, i made the reference to firefox 26 back then because of the information in this thread: https://github.com/mozilla/pdf.js/pull/3634
i haven't followed the developments since, so i'm not sure if the aforementioned fix has already landed in the released firefox version or if it may be a separate issue that you're observing.
- IMPORTANT ANNOUNCEMENT: We’re going through some system changes, that may have slowed responses to your questions. If you had asked a question in the last couple of months, please re-post it and the community will help you as soon as we can. If you’ve registered after February 7th, please register again, the accounts on the previous site were not migrated to this temporary site. If you joined us before February 7, please reset your password if you have trouble logging into this temporary site.