Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Standard PDF fonts limitations

Standard PDF fonts use several single byte encodings internally (see PDF Reference, Sixth Edition, version 1.7 Appendix D for details). They are generally equal to Latin1 character set (except Symbol and ZapfDingbats fonts).

Zend_Pdf uses CP1252 (WinLatin1) for drawing text with standard fonts.

Text still can be provided in any other encoding, which must be specified if it differs from a current locale. Only WinLatin1 characters will be actually drawn.

Example 673. Combining font embedding options

$font Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_COURIER);
drawText('Euro sign - €'72720'UTF-8')
drawText('Text with umlauts - à è ì'72650'UTF-8');

Zend Framework