mozilla / pdf.js

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

The text of this PDF is displayed wrong #11980

Open cmh1996 opened 4 years ago

cmh1996 commented 4 years ago

Attach (recommended) or Link to PDF file here: 极光大数据:疫情下的汽车直播研究报告 (1).pdf

Configuration:

Steps to reproduce the problem:

  1. Open the PDF with pdf.js.
  2. Found the text of this PDF is wrong.

What is the expected behavior? (add screenshot) This PDF is displayed correctly when opened in Chrome's previewer: image

What went wrong? (add screenshot) image

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

Snuffleupagus commented 4 years ago

There's something wrong with this PDF document, given that Adobe Reader (i.e. the PDF reference implementation) cannot render it correctly either:

reader

cmh1996 commented 4 years ago

But it is displayed correctly in Chrome previewer. Do you have any plans to fix this problem? Thanks!

lukewang1024 commented 4 years ago

Tested this file in a few other desktop PDF viewers. Seems like xpdf, mupdf, Preview.app, Skim.app all can handle this file properly.

Snuffleupagus commented 4 years ago

Do you have any plans to fix this problem?

This is an open-source project, which you are able to use for free, and where most contributions are made by unpaid volunteers.

Thus, if you want this (or any other) issue fixed the fastest way to get that done is by providing a patch yourself :-) If you're not able to do that, then you'll simply have to wait patiently for someone else to debug/fix this, and it's simply impossible to tell if/when that will happen; that's just the nature of open-source.