note 19895 added to function.pdf-set-font
| From: | smutny at nexus dot sk | Date: | Thu, 14 Mar 2002 14:08:18 +0000 |
| Subject: | note 19895 added to function.pdf-set-font | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27783@lists.php.net to get a copy of this message | ||
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
--
http://www.php.net/manual/en/function.pdf-set-font.php
http://master.php.net/manage/user-notes.php?action=edit+19895
http://master.php.net/manage/user-notes.php?action=delete+19895
http://master.php.net/manage/user-notes.php?action=reject+19895