-
Notifications
You must be signed in to change notification settings - Fork 3
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
jsPDF does not support utf8 out of the box #354
Comments
Solution is to add a TTF font to the PDF: https://github.com/parallax/jsPDF#use-of-unicode-characters--utf-8 This is quite a whacky solution as we never know which glyphs we will need. Sending a 200Mb TTF file to the client is not a solution.. |
I see a few options:
|
Lets do TeX :D |
Haha lets download the 2GB texlive distro into cookies :D |
haha it's actually not that much: |
Latex also needs to get the fonts somewhere :D So the issue is not any different with latex vs. pdfjs. |
Huh, good question how that would work then... But if it works well enough, it would be worth a try 😅 this would also improve the layout a lot (and make it easier) I guess. |
Download 1GB of font files :D There is no other way actually. In order to generate arbitrary PDFs with arbitrary glphys, you need to have all the glyphs available in the environment from which the PDF is generated. |
Describe the bug
jsPDF does not support utf8 out of the box.
Nevertheless, we should be able to render names from different countries from all over the world.
Also we'd like to have the German quotation marks for the sentence in the manual
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The PDF should render the arabic name fine.
Screenshots
The text was updated successfully, but these errors were encountered: