kempsteven / vue-html2pdf

vue-html2pdf converts any vue component or element into PDF, vue-html2pdf is basically a vue wrapper only and uses html2pdf.js behind the scenes.
https://www.npmjs.com/package/vue-html2pdf
MIT License
432 stars 75 forks source link

Feature Request: Support persian language #79

Closed hasanparasteh closed 3 years ago

hasanparasteh commented 3 years ago

Hi. Thanks for your great work. Please consider supporting RTL languages like Persian. when I want to generate PDF the text is messed up like the image below:

Screen Shot 2021-05-01 at 5 38 06 PM

Please help me to fix this problem.

hasanparasteh commented 3 years ago

text-align trick wont work now!

kempsteven commented 3 years ago

Hey man, so this package is a wrapper and uses html2pdf.js, and html2pdf.js uses these packages html2canvas & jsPDF, Unfortunately I don't have any fixes on my end.

You can have a look at html2canvas's repo issues around unicode & arabic/persian font: https://github.com/niklasvh/html2canvas/labels/Unicode