I am having problems mapping UTF-8 characters to a PDF file with Zend_Pdf. Here is my code:
// Load Zend_Pdf class include 'Zend/Pdf.php'; // Create new PDF $pdf = new Zend_Pdf(); // Set font $page->setFont(Zend_Pdf_Font::fontWithPath('fonts/times.ttf'), 12); // Draw text $page->drawText('Janko Hraško', 200, 643, 'UTF-8');
Downloading the Igm font supports UTF-8 characters. But I get this error "
Note: iconv () [function.iconv]: an illegal character was found in the input line in D: \ data \ o \ Zend \ Pdf \ Resource \ Font \ Type0.php on line 241
source share