Bug 9530 - Printing of PDF in IFRAME from USPS.com does not work properly
Summary: Printing of PDF in IFRAME from USPS.com does not work properly
Status: RESOLVED DUPLICATE of bug 4151
Alias: None
Product: WebKit
Classification: Unclassified
Component: Printing (show other bugs)
Version: 417.x
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: https://sss-web.usps.com/cns/sample.d...
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-21 08:29 PDT by Craig
Modified: 2006-06-21 09:07 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig 2006-06-21 08:29:45 PDT
The URL above is the print sample page from the USPS with regards to printing a click-n-ship label.  It loads the url:
https://sss-web.usps.com/cns/servlet/com.usps.cns.web.pdf.LabelGenerationServlet?sample=false&productCode=PRI&dummy=file.pdf
Into an iframe after processing the request server-side.  However, the iframe is hidden, and the link to that pdf is not displayed (which is their failover in case you can't see the iframe, strangely enough).

Therefore, the hidden iframe does not print.  I can't find any script that actually sends the print command to the browser, and this may be because the PDF file itself contains that code.  (If the pdf is saved to disk and opened in Acrobat, it immediately pulls up the print dialog)

The only workaround I have found is to do a view-source on the page, extract the above URL and paste it into your browser to view the PDF fullscreen and then print it manually.

Unsure if this is a webkit bug, a pdf bug, or an issue for 3rd-party PDF plug-ins.
Comment 1 Craig 2006-06-21 08:35:50 PDT
Change that second url to:
https://sss-web.usps.com/cns/servlet/com.usps.cns.web.pdf.LabelGenerationServlet?sample=true&productCode=PRI&dummy=file.pdf

(sample=true instead of sample=false)
Comment 2 David Kilzer (:ddkilzer) 2006-06-21 08:37:14 PDT
Please try this on a WebKit nightly build and report back the results (and the build number: rNNNNN) in this bug.  http://nightly.webkit.org/  Thanks!

This sounds like another visibility/iframe bug, but I don't recall the bug number.
Comment 3 Alexey Proskuryakov 2006-06-21 09:07:53 PDT

*** This bug has been marked as a duplicate of 4151 ***