-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Special char not recognized and text illegible in a PDF generated with jspdf and html2canvas #2832
Comments
Dear @HackbrettXXX Which version of the library (which file from the "dist" folder) I have to use for solving these both issues ? Furthermore I'm not sure that the overlappping issue is solved. I'm using the file jspdf.debug.js (present in the past in the folder dist) and the text was correctly displayed without defining a font in the function .html(). |
You can use any of them, but in your case the "umd" variants are probably best. Ok, if you tested it, then the overlapping issue is not resolved yet. I'm reopening the other issue. |
Thanks @HackbrettXXX , I have tried to implement the font with this code:
But as the html is already implemented with it owner fonts, the issue of special characters is still present. |
Please share a complete test case (including the html code), otherwise I can't reproduce it. |
Dear @HackbrettXXX , Please find below the complete example that I use: https://jsfiddle.net/amadese57/17npbu4y/ I'm using the version 1.5.3 of jspdf in order to avoid issues with special chars. But overlaping text issue is still present. |
@HackbrettXXX Hi Did you have time to test my example about overlaping and special char issue? Could you please help me that ? Thanks in advance for your time |
I'm really busy again ATM. I hope I will find the time to look into this in the next weeks. Sorry about that. If this is not fast enough, you may always have a look at the sources yourself or find someone else to do it ;) |
We got the same issue with any text with "special" characters such as "é" or even the typesetter's apostrophe. As others have pointed out, this used to work in 1.5.3. |
That's in fact really odd. @MaximeMorin could you maybe dig into that? |
@HackbrettXXX Do you have anything in mind? We were at version 1.5.3, upgraded, issue started to happen, downgraded and it worked. |
@MaximeMorin not really. I currently don't have the time to look into this myself. |
@SwissMaWi From my testing, 1.5.3 should work fine. |
I finally found out that this is indeed a regression to 1.5.3 and is due to the |
Hi,
I have a problem with the file dist/jspdf.umd.js.
Following the advice given for solving the issue #2766, I'm using the file dist/jspdf.umd.js in replacement of jspdf.js.
But I obtain problems with special characters. They are not recognized even if the meta data type is correctly defined in my page. I don't have this problem before when I used the file jspdf.js from the src folder.
For instance: in my html page "
≥
" for "greater than or equal to": the character should be "≥50%" and appears like that:Furthermore, since I'm using the file dist/jspdf.umd.js the text is illegible: the letters overlap:
Here my code:
`
Could you please help me please to solve this issue ? I don't know if I should use another version of the jspdf version for solving this error and the error (and in the same time the error #2766).
Kind Regards,
The text was updated successfully, but these errors were encountered: