-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Trouble with opening PDFs with non-ASCII characters #8937
Comments
Here is what we do to configure demo viewer https://github.com/mozilla/pdf.js/blob/master/web/app.js#L51-L64 Try specifying cMapUrl/cMapPacked globals. |
External CMap files that can be referred from some PDFs (similar to non-embedded fonts). They are not included into the main code due to their size
The files need to be present, so PDF.js can lazily fetch them when need. Sorry, we don't have JSONP option yet (loading from CDN). Somebody welcome to work on it.
No reason. Adding the null-check before issuing a request or, even better, using "always fails" CMapReaderFactory will be a good addition to the PDF.js core library. |
Can we close this as fixed by PR #8962, or are additional changes required here? |
Yes, I would say so. If more changes are required now that the validation is implemented, please open a new issue with all required details. |
Link to PDF file (or attach file here):
23.pdf
Configuration:
What is the expected behavior? (add screenshot)
I have a package that makes a bridge between pdf.js and React, react-pdf. Recently I was informed that the file attached above does not render correctly.
I tested the file in my project and in pdf.js online viewer to confirm. It did not work on my project, worked correctly on online viewer. However, I've noticed that online viewer makes additional server requests while opening the file, which fail on my project.
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):
http://projekty.wojtekmaj.pl/react-pdf/test
The text was updated successfully, but these errors were encountered: