mozilla / pdf.js

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

PDFJS not rendering majority of font in pdf document #10257

Closed DBQC closed 5 years ago

DBQC commented 5 years ago

Attach (recommended) or Link to PDF file here: 7IM AAP Income Fund S Acc Prospectus.PDF

Configuration:

Steps to reproduce the problem:

  1. Load attached document through PDFJS
  2. Observer the majority of the document does not render

What is the expected behavior? (add screenshot) The document should render properly. Here is a pdf of the same document that renders correctly in pdfjs (This was achieved by opening the erroring file in Microsoft word, saving to PDF and using that file in pdfjs) Resaved 7IM AAP Income Fund S Acc Prospectus.pdf

Here are screenshots of it rendering correctly: textrenderscorrectly textcorrect2

What went wrong? (add screenshot) Tehse two screenshots should be equivelent to the two corret screenshots above textmissing textmissing2

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): Not sure how to add this, if you attempt to open the two attached files in pdfjs the first will error and the second will not.

I've looked at a few issues in the backlog an this could be related to: https://github.com/mozilla/pdf.js/issues/10084 and https://github.com/mozilla/pdf.js/issues/10014 some fonts not rendered correctly(not showing up)

Let me know if any more details are needed. The Bad pdf was created using Nitro Pro, unsure of the version as the pdf is from another company

jamesdaily commented 5 years ago

I'm unable to reproduce the missing text you identified in your screenshots. I'm using Chrome 71 on Windows 7 with the current demo viewer at https://mozilla.github.io/pdf.js/web/viewer.html and Adobe Acrobat Reader DC for comparison. The two issues you referenced have since been corrected - perhaps they fixed your PDF issue as well.

image

timvandermeij commented 5 years ago

Yes, both the original and the re-saved file work now. Closing as fixed.

IS4Code commented 2 years ago

Maybe a wrong thread to post this, but if someone encounters this issue, setting gfx.canvas.accelerated to true in about:config fixed the issue.