View Single Post
  #4 (permalink)  
Old 03-24-2008, 12:28 PM
fsando fsando is offline
Junior Member
 
Join Date: Mar 2008
Posts: 7
Default

Quote:
Originally Posted by mclalfaya View Post
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 View Post
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');

Last edited by fsando : 03-24-2008 at 01:35 PM. Reason: Found errors
Reply With Quote