Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF.js does not render most .pdf files in Firefox Quantum 61.0.1 #9930

Closed
toddsh88 opened this issue Jul 26, 2018 · 6 comments
Closed

PDF.js does not render most .pdf files in Firefox Quantum 61.0.1 #9930

toddsh88 opened this issue Jul 26, 2018 · 6 comments
Labels

Comments

@toddsh88
Copy link

PDF.js does not render most .pdf files in Firefox Quantum 61.0.1

Configuration:
Firefox Quantum 61.0.1 (64-bit)
Windows 7 Pro (64-bit)

  • PDF.js version:
    Not sure how to determine the version of PDF.js since I believe it's built into Firefox

  • Is a browser extension:

Steps to reproduce the problem:

  1. Go to the following link:
    https://www.nasa.gov/sites/default/files/atoms/files/nasa_2018_strategic_plan.pdf

2.Or go to this link instead:
https://www.nasa.gov/sites/default/files/files/FY15_White_House_NASA_Fact_Sheet.pdf

What is the expected behavior?
The PDF file should render completely and not have the spinning wheel displayed continuously.

What went wrong?

image

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

@timvandermeij
Copy link
Contributor

Do you have any warnings/errors in the console? You can open it with Ctrl + Shift + K in Firefox.

Moreover, check if your graphics drivers are up-to-date and install any updates if they are available.

@toddsh88
Copy link
Author

image

And here is the actual text from the above screen capture:

Web fonts are disabled: unable to use embedded PDF fonts. viewer.js:1903:7
PDF 3217f581ec67cc45a1c2e92d24224515 [1.6 Adobe PDF Library 15.0 / Acrobat PDFMaker 15 for Word] (PDF.js: 2.0.491) viewer.js:1628:7
[Show/hide message details.] Error: Requesting object that isn't resolved yet Helvetica_path_ pdf.js:6087:15
PDFObjects_get
resource://pdf.js/build/pdf.js:6087:15
FontFaceObject_getPathGenerator
resource://pdf.js/build/pdf.js:6356:20
paintChar
resource://pdf.js/build/pdf.js:7458:21
CanvasGraphics_showText
resource://pdf.js/build/pdf.js:7605:13
CanvasGraphics_executeOperatorList
resource://pdf.js/build/pdf.js:7008:11
InternalRenderTask__next
resource://pdf.js/build/pdf.js:6238:30
InternalRenderTask__next self-hosted:983:17

@toddsh88
Copy link
Author

And here's some additional console output from a different problematic link:

image

And here is the actual text from the above 2nd screen capture:

Web fonts are disabled: unable to use embedded PDF fonts. viewer.js:1903:7
PDF 16dcf1e675b511749b8c3ad7de017c81 [1.4 iText 2.1.7 by 1T3XT / TopLeaf 7.6.037] (PDF.js: 2.0.491) viewer.js:1628:7
[Show/hide message details.] Error: Requesting object that isn't resolved yet Helvetica_path_L
pdf.js:6087:15
PDFObjects_get
resource://pdf.js/build/pdf.js:6087:15
FontFaceObject_getPathGenerator
resource://pdf.js/build/pdf.js:6356:20
paintChar
resource://pdf.js/build/pdf.js:7458:21
CanvasGraphics_showText
resource://pdf.js/build/pdf.js:7605:13
CanvasGraphics_executeOperatorList
resource://pdf.js/build/pdf.js:7008:11
InternalRenderTask__next
resource://pdf.js/build/pdf.js:6238:30
InternalRenderTask__next self-hosted:983:17

@toddsh88
Copy link
Author

In addition, I stumbled across this recent bug report that I think might be someone else reporting the same problem while attempting to view on-line PDFs:

Bug 1478469
Subject: Firefox saving but not displaying pdfs
https://bugzilla.mozilla.org/show_bug.cgi?id=1478469

@peteroupc
Copy link

This can happen if the preference "Allow pages to choose their own fonts, instead of your selections above" is disabled; see also this issue.

@timvandermeij
Copy link
Contributor

timvandermeij commented Aug 2, 2018

Yes, I also think that is what's causing this. The warning Web fonts are disabled: unable to use embedded PDF fonts is also in the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants