New issue
Advanced search Search tips

Issue 730092 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 732380
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Compat



Sign in to add a comment

.pdf appear blank

Reported by rmarkcol...@gmail.com, Jun 6 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0

Example URL:
It is within a password protected site.

Steps to reproduce the problem:
1. Click on a print link from a web page that hosts a .pdf form to be printed.
2. 
3. 

What is the expected behavior?
Should appear on screen as the document to be printed.

What went wrong?
Print Preview appears as a blank page and also prints blank when sent to the printer. 

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? Yes 58.0.3029

Does this work in other browsers? Yes

Chrome version: 59.0.3071  Channel: stable
OS Version: 7 and 8.1
Flash Version: 

This started happening as each browser updated today to version 59. It worked this morning until the update occurred.  People kept telling me well so and so is able to do it.  As I checked the version numbers it was apparent that 58 was working and 59 wasn't.  As each person was updated to 59 they then reported they could no longer print the .pdf form.
 
Labels: Needs-Triage-M59 Needs-Bisect

Comment 2 by mrekt...@gmail.com, Jun 8 2017

I have the same problem with the attached PDF.
More details: https://stackoverflow.com/questions/44422565/chrome-blank-pdf-print-preview
broken pdf.pdf
78.3 KB Download

Comment 3 by mrekt...@gmail.com, Jun 8 2017

For me the incompatibility issue with chrome 59 seems to be because of the javascript we are injecting to the PDF using QuickPDF library (PageJavaScriptAction).
The JS code is:
try{print({bUI: true, bShrinkToFit: true});} catch(e){try{print({bUI: true, bShrinkToFit: true});} catch(e1){app.alert(e + ',' + e1);}}
After removing this code from the PDF the preview seems to be working fine.
No need to say it was working fine in Chrome 58.x.
Cc: dsinclair@chromium.org
Components: Internals>Printing Internals>Plugins>PDF
This might be related to  bug 732380 .
The PDF in #2 is related to  bug 732380  as there is a Length 0 stream in there. rmarkcoleman@ can you open the PDF file with a text editor and see search for a "Length 0" entry on a stream? Something like:

 10 0 obj
 <<
 /Length 0                                                                                                                                      
 /Filter /FlateDecode
 >>
 stream
 
 endstream
 endobj

The entry in comment #3 seems unrelated? Can you please open a separate issue for the JS injection (unless it's injecting a Length 0 stream?)

Owner: dsinclair@chromium.org

Comment 7 by mrekt...@gmail.com, Jun 13 2017

dsinclair@ The issue I reported in #2 got fixed when I removed the mentioned code in #3 from PDF generation process. We are using QuickPDF library (http://www.debenu.com/). Maybe this library is not able to generate a correct PDF file format and adds streams with length of 0 to the file (particularly in their PageJavaScriptAction method).
Mergedinto: 732380
Status: Duplicate (was: Unconfirmed)
K, this sounds like a dupe then.

Sign in to add a comment