We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is my code
let doc = new jsPDF(); doc.text(20,26,'EVIDÊNCIAS DE CONTEÚDO DIGITAL'); doc.save();
Generated PDF has completely different text
Please help
The text was updated successfully, but these errors were encountered:
Please see #2677 or the readme.
Sorry, something went wrong.
I tried with custom font but it is not working . I created Lato-Regular-normal.js file using fontconverter.html
Lato-Regular-normal.js
fontconverter.html
And added that js to my index.html file . The text output changes but it is still wrong
My Html :
<!DOCTYPE html> <html> <head> <script src="lib/jspdf.min.js"></script> <script src="lib/Lato-Regular-normal.js"></script> </head> </html> <script> let doc = new jsPDF(); doc.setFont('Lato-Regular'); doc.setFontType('normal'); doc.text(10, 10, 'EVIDÊNCIAS DE CONTEÚDO DIGITAL'); doc.save(); </script>
output:
Any help would be appreciated . Thanks
Finally i am able to solve the issue . I added meta tag for UTF-8 in my html to fix this issue <meta charset="utf-8">
<meta charset="utf-8">
No branches or pull requests
Here is my code
Generated PDF has completely different text
![image](https://user-images.githubusercontent.com/39642842/85222536-83e01f80-b3d9-11ea-88b8-4cb6aeada7ef.png)
Please help
The text was updated successfully, but these errors were encountered: