Closed Bug 910920 Opened 11 years ago Closed 11 years ago

Download button on built-in PDF viewer saves a corrupted PDF file

Categories

(Firefox :: PDF Viewer, defect)

23 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 26

People

(Reporter: anson.web, Assigned: bdahl)

References

Details

(Whiteboard: https://github.com/mozilla/pdf.js/pull/3634)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release)
Build ID: 20130618035212

Steps to reproduce:

Open a PDF document in Firefox with the built-in PDF viewer and then click on the Download toolbar button (icon).



Actual results:

A corrupted PDF document (larger in size) is saved to local storage, which does not open in Adobe Reader.  Note that right-clicking on the content area of the built-in PDF viewer and click "Save Page As" does save the correct PDF file.


Expected results:

The Download toolbar button or icon should have saved the non-modified, authentic PDF file being viewed.
Does it happen with every PDF or only one? If it's limited to one PDF, attach this PDF to the bug or provide URL.

In addition, could you try to reproduce the issue with a clean profile, please.
https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
Flags: needinfo?(anson.web)
Component: Untriaged → PDF Viewer
This is likely fixed in https://github.com/mozilla/pdf.js/pull/3634
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Why don't we mark this fixed once it hits m-c?
Assignee: nobody → bdahl
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: FIXED → ---
Depends on: 914603
I've observed the same, it is not fixed in v24.0
(In reply to gest from comment #4)
> I've observed the same, it is not fixed in v24.0

You need to test Firefox 26, it's not fixed in FF24/25.
http://nightly.mozilla.org/
Hi, 

after trapping into the issue and following the bug description and the links mentioned above:
I just tested nightly "firefox-26.0a1.en-US.win32.installer.exe" and it seems the issue is gone. The Github link, kindly mentioned above, indeed seems to describe the potential root cause. 

My personal workaround is to disable the inline PDF viewer in "about:config" (pdfjs.disabled = true) after viewing the file by using another Tab - in order to save the PDF by then pressing F5. After that I enable the viewer again.

It seems that most of the Support PDFs from Hewlett-Packard are affected (view not save), as it seems that the HP Download Servers do not always announce the filesize. The URL of the PDF files here are all relative, thus a permanent workaround until FF26 would be to change the browser - sad idea.

Thus, is it possible to raise prio for an earlier fix than FF 26?

Best,




Dyn.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Flags: needinfo?(anson.web)
Whiteboard: https://github.com/mozilla/pdf.js/pull/3634
You need to log in before you can comment on or make changes to this bug.