note 19895 deleted from function.pdf-set-font by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Nov 2008 21:58:01 +0000 |
| Subject: | note 19895 deleted from function.pdf-set-font by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147283@lists.php.net to get a copy of this message | ||
Note Submitter: smutny at nexus dot sk
----
Encoding - how does it works:
i had a problem to use ISO8859-2(windows-1250 or Latin-2) - All Slavic Languages(Slovak, Czech,
Polish, Slovenian etc...). Solution is:
PDF_set_parameter($pdf,"resourcefile","blabla/your project
folder/lib/pdflib.upr");
//see PDFlib manual
pdf_set_font($pdf, "ArialBI", 14, "cp1250");
//ArialBI is Arial CE Bold Italic font.U have to left this font in pdflib.upr's folder
//cp1250 is name for code page 1250 cp1250.cpg
pdf_show_xy($pdf, "it works", 210,807);
//now it shold works, but!!!
//U have to install your CE fonts to your system and delete font files from:
//Program Files/Adobe/Acrobat 4.0/Resource/Font
//Why??
//if Adobe reader open pdf file, it search for:
// 1. embeded fonts
// 2. Adobe Reader self fonts!!!
// 3. system fonts
// more U can find here:
http://www.pdfzone.com/resources/tips/tip0045.html