Hi I am a newbie with html2pdf. I need to create an invoice pdf which would also contain special slovakien characters like ľščťžýáíéĆĚŘUÍ, however after spending yesterday evening trying to solve this, I am still not able to create PDF with such symbols.
This is my test code:
$content = "ľščťžýáíéĆĚءUÍ";
require_once('html2pdf/html2pdf.class.php');
$html2pdf = new HTML2PDF('P','A4','en',false, 'UTF-8');
$html2pdf->WriteHTML($content);
$html2pdf->Output('exemple.pdf');
Output: ¾šè•žýáíéÆÌØ¡UÍ
Can you pls. tell me what I need to add or change, so the pdf can show all the characters correctly ?
Your help would be much appreciated :-)