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

Use svg.js will pdf to svg, but out of the Chinese garbled #9856

Closed
xxh950501 opened this issue Jun 30, 2018 · 3 comments
Closed

Use svg.js will pdf to svg, but out of the Chinese garbled #9856

xxh950501 opened this issue Jun 30, 2018 · 3 comments

Comments

@xxh950501
Copy link

I'm sorry for my bad english, it's not my native language.

image

This is the code, I hope to help me see why it turns out to be garbled

@timvandermeij
Copy link
Contributor

You'll need to provide all information asked for in the issue template (https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md) because we cannot do anything with just code snippets. By reading your description I can only guess you did not include the cMaps that may be needed for rendering Chinese text. Refer to https://github.com/mozilla/pdf.js/blob/master/examples/svgviewer/viewer.js#L56-L64.

@xxh950501
Copy link
Author

I use the official website example and then convert our own generated pdf, there is also a garbled phenomenon

@xxh950501
Copy link
Author

@timvandermeij

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

No branches or pull requests

2 participants