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

Fix load of character maps #140

Merged
merged 1 commit into from
Jun 27, 2019
Merged

Conversation

danxuliu
Copy link
Member

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 the PDFJs.workerSrc property is set (as the default value set in viewer.js is not right for the PDF viewer app).

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>
@danxuliu
Copy link
Member Author

/backport to stable16

@danxuliu
Copy link
Member Author

/backport to stable15

@danxuliu
Copy link
Member Author

/backport to stable14

Copy link
Member

@ChristophWurst ChristophWurst left a 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 :)

@leeivan
Copy link

leeivan commented Jun 26, 2019

This dose fix #137, I uses the pdf to test, which mix English and Chinese. This fix resolves my problem.

@danxuliu
Copy link
Member Author

@leeivan Thanks a lot for testing it :-)

@ChristophWurst ChristophWurst merged commit 0925b6f into master Jun 27, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-load-of-character-maps branch June 27, 2019 14:50
@backportbot-nextcloud
Copy link

backport to stable16 in #141

@backportbot-nextcloud
Copy link

backport to stable15 in #142

@backportbot-nextcloud
Copy link

backport to stable14 in #143

@juliusknorr
Copy link
Member

@ChristophWurst Mind to update the documentation with the required nginx settings?

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

Successfully merging this pull request may close these issues.

4 participants