Quote:
Originally Posted by mclalfaya
I use this and work well:
$text = utf8_encode("é, ó, ññ ");
$page->drawText( $text, '100', '200');
I Hope that it helps you. 
|
You helped me by putting me on the right track

.
I'm in an utf8 environment so a slight adjustment works for me:
code):
Code:
$text = "æøå ÆØÅ";
$page->drawText($text,100,200,"UTF-8")
Quote:
Originally Posted by Anybody
Hey, I've got a smiliar Problem!
I want to export chinese words, but none of them are beeing shown in the pdf-document.
The reason is, that the included font-types don't support those special chars.
|
I'm not entirely sure but I guess you would get a truetype font put in a directory on your server (say 'www/fonts/my-special-font.ttf').
Then you create a font like this: (use the fontWithPath() method).
This worked for me.
Code:
$my_font = Zend_Pdf_Font::fontWithPath('www/fonts/my-special-font.ttf');