-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix load of character maps #140
Conversation
The character maps are used by PDF.JS for font rendering, and are needed to properly show some texts (for example, Japanese text). The PDF.JS package provides the needed character maps, but the URL to get them must be set with the "PDFJS.cMapUrl" property in the same way as the "PDFJs.workerSrc" property is set (as the default value set in "viewer.js" is not right for the PDF viewer app). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
/backport to stable16 |
/backport to stable15 |
/backport to stable14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works once I told my nginx to also serve ".bcmap" files :)
This dose fix #137, I uses the pdf to test, which mix English and Chinese. This fix resolves my problem. |
@leeivan Thanks a lot for testing it :-) |
backport to stable16 in #141 |
backport to stable15 in #142 |
backport to stable14 in #143 |
@ChristophWurst Mind to update the documentation with the required nginx settings? |
This might fix (but without a file to test I do not really know) #136 and #137.
The character maps are used by PDF.JS for font rendering, and are needed to properly show some texts (for example, Japanese text). The PDF.JS package provides the needed character maps, but the URL to get them must be set with the
PDFJS.cMapUrl
property in the same way as thePDFJs.workerSrc
property is set (as the default value set in viewer.js is not right for the PDF viewer app).