mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.33k stars 9.97k forks source link

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

Closed toddsh88 closed 6 years ago

toddsh88 commented 6 years ago

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)

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 commented 6 years ago

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 commented 6 years ago

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 Helveticapath 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 InternalRenderTasknext resource://pdf.js/build/pdf.js:6238:30 InternalRenderTasknext self-hosted:983:17

toddsh88 commented 6 years ago

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 InternalRenderTasknext resource://pdf.js/build/pdf.js:6238:30 InternalRenderTasknext self-hosted:983:17

toddsh88 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.