-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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 file containing hyeroglyphical characters: cmap Adobe-Japan1-UCS2 (8.001) does not work but 5.001 do. #7696
Comments
I compared http://s000.tinyupload.com/index.php?file_id=17713344732879219876 with file in the PDF.js -- they looked exactly the same. Please provide complete example(s), e.g. open new repo at github that demonstrate issue. |
Here you go: https://github.com/catsmile/pdfjs-cmap-issue |
I'm not convinced that the CMap itself is the problem here, since the only noticeable difference between the working/non-working CMap seems to be that in the latter case it's quite a bit longer. When looking (quickly) at the resulting glyph map created by PDF.js, it seems that a fair number of |
Well, okay. As for my project I'll user the Adobe-Japan1-UCS2.bcmap of version 5.001 as a workaround. |
Closing as fixed by PR #8580. |
Hello, Could you help me? |
Link to PDF file (or attach file here): http://s000.tinyupload.com/index.php?file_id=00088937975359643663
Configuration:
Not sure if this is a really PDF.js issue, probably it is related to the Adobe cmap files. The workaround of the issue is placed at the end if the issue description.
Steps to reproduce the problem:
2a. The viewer throw the following error in the JS console: "DOMException: Invalid font data inArrayBuffer."
2b. The file displays incorrectly (characters are different in compare with the file opened in the Adobe Acrobat).
The PDF file opened in the Adobe Acrobat: https://snag.gy/0uApct.jpg
The PDF file opened in the PDF.js viewer (malformed): https://snag.gy/eVcl21.jpg
Developer console with error: https://snag.gy/ZoWXuA.jpg
IMPORTANT NOTES (WORKAROUND)
Plain text cmaps:
Packed cmaps:
The text was updated successfully, but these errors were encountered: