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 Document does not display text correctly when rendered in pdf.js #17808

Closed
mirnalinikarthik opened this issue Mar 19, 2024 · 3 comments · Fixed by #17810
Closed

PDF Document does not display text correctly when rendered in pdf.js #17808

mirnalinikarthik opened this issue Mar 19, 2024 · 3 comments · Fixed by #17810

Comments

@mirnalinikarthik
Copy link

Attach (recommended) or Link to PDF file here:

Configuration:

  • Web browser and its version: Mozilla any version
  • Operating system and its version: Any Os, Tested on windows
  • PDF.js version: 4.0.379
  • Is a browser extension:

Steps to reproduce the problem:

  1. Open the Attached PDF in https://mozilla.github.io/pdf.js/web/viewer.html
  2. We see broken text in rendered document

What is the expected behavior? (add screenshot)
Text should be displayed correctly
What went wrong? (add screenshot)

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

@gstakhov
Copy link

gstakhov commented Mar 19, 2024

Attaching sample doc:
Document1.pdf

and side-by-side comparison of working vs. non-working
image

@calixteman
Copy link
Contributor

It's a regression from #12259.
The font (which is symbolic) used to render the data has 3 cmap tables: 0,3; 1,0 and 3,1.
We don't select the correct table (i.e. 3,1) but selecting the 0,3 one is fine.

@mirnalinikarthik
Copy link
Author

@calixteman Thank you for your quick response. We will wait for the issue to be fixed.

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

Successfully merging a pull request may close this issue.

4 participants