Closed
Bug 856116
Opened 12 years ago
Closed 12 years ago
Automatic print PDF files loaded into an iframe via javascript do not pop up the print dialog using pdf.js
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 852504
People
(Reporter: joel, Unassigned)
References
()
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22
Steps to reproduce:
http://www.kleppinger.com/testprint/
Click "Show PDF", which uses javascript to insert a hidden iframe with the PDF file as source into the DOM.
Actual results:
The PDF file was loaded but the print dialog did not appear.
Expected results:
The PDF file should be loaded and a print dialog should pop up. This happens in all versions of IE, Chrome, and Firefox with Adobe PDF Reader and other PDF readers.
Reporter | ||
Updated•12 years ago
|
Component: Untriaged → PDF Viewer
Reporter | ||
Updated•12 years ago
|
Reporter | ||
Comment 1•12 years ago
|
||
Incidentally, the PDF file linked doesn't pop up the print dialog in Firefox 20 beta 6 but does using the latest pdf.js on github. Is the Firefox 20 final release going to include that pdf.js?
You can test this using the "View Test PDF" link.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 3•12 years ago
|
||
This is NOT a duplicate of that bug. That bug actually isn't a bug since pdf.js has incorporated those changes... FF20 just needs to use the most recent pdf.js from github: https://github.com/mozilla/pdf.js/pull/2968
My bug has to do with the fact that javascript loading an autoprint PDF doesn't pop up the print dialog box.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Reporter | ||
Comment 5•12 years ago
|
||
I just installed 22.0a1 (2013-03-29), and I can only get the print dialog to show up when clicking SHOW PDF about 1 in 8 tries. Of course it works with "View Test PDF File in new tab" -- FF20 works with that.
I hypothesized that part of the problem was that the iframe was only visible for 1/2s so I increased it to 1s. That seems to make it appear every time even on FF20 w/ the pdf.js upgrade.
Now if only FF20/21 will incorporate the pdf.js so we don't have to wait til FF22 is released to have working automatic PDF printing again.
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 8•12 years ago
|
||
Neither one of those bugs is a duplicate of this bug because this is about loading a PDF file like that into a hidden iframe. However, since it works on FF22 nightly (and even FF20 w/ latest pdfjs), it should be resolved.
I don't think the hiddet frame is important here. Since PDF autoprinting has been fixed in pdf.js, it works, whatever the context.
You need to log in
before you can comment on or make changes to this bug.
Description
•