mozilla / pdf.js

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

Numbers and symbols not shown correctly in a certain document #10541

Closed OmarWKH closed 5 years ago

OmarWKH commented 5 years ago

Attach (recommended) or Link to PDF file here: 1Password for Teams White Paper.pdf (original)

Configuration:

Steps to reproduce the problem:

  1. Go to page 10 of the PDF
  2. Look after the sentence "A Master Password with four such words will be one of" (this is one of several number and symbols that have the problem in this document).

What is the expected behavior? (add screenshot) The number "180004" is shown correctly.

Using SumatraPDF v3.1.2: image

What went wrong? (add screenshot) The number is unreadable.

image

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

Console log:

PDF f22bb023e2e92110a02d2bd381ef5d99 [1.5 XeTeX 0.99999 / LaTeX with hyperref] (PDF.js: 2.1.97) viewer.js:1179:7
Warning: Failed to load font "g_d0_f8": SyntaxError: An invalid or illegal string was specified pdf.js:525:5 

Adobe Acrobat Reader DC 2019.010.20069 shows numbers and symbols correctly but displays a warning message. The message pops up after interacting with the document (a few text selections or going to a page number). I'm not exactly sure what triggers it. The message is:

"Cannot extract the embedded font 'VENLVK+FiraMath-Regular-Identity-H'. Some characters may no display or print correctly."

image

Snuffleupagus commented 5 years ago

Duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=1524888 (there's no need to track it twice).