spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.68k stars 749 forks source link

Html2pdf and special characters #715

Open ytreza9 opened 2 years ago

ytreza9 commented 2 years ago

Hey,

I'm trying to integrate in my pdf creation some special characters, such as arrows, check marks, etc.. When I use any kind of encoding format : CSS, js, hexa, deca, ASCII or HMTL, I only get the code back, not the arrow. For instance : → gives me an arrow in html, but in the pdf, I get back "→"...

Is there any way to use them ?

Thank you

vespino commented 1 year ago

I had something similar with ē and sorta solved this by adding the following to my stylesheet:

* { font-family:freeserif; }

Not ideal, so I might look further into the problem, but maybe a temporary solution for you too?