note 55129 added to function.pdf-findfont

From: Date: Tue, 26 Jul 2005 11:57:23 +0000
Subject: note 55129 added to function.pdf-findfont
Groups: php.notes 
Request: Send a blank email to php-notes+get-92462@lists.php.net to get a copy of this message
If you get the following error, "PDFlib error: [2518] PDF_findfont: No file specified with outline data for font ..." you might try the following: 1. Take care the environment variable PDFLIBRESOURCE is correctly set. You can set it like this: putenv("PDFLIBRESOURCE=C:\phpdev\php\pdf-related\pdflib.upr"); 2. Take care the resource variabele used by PDFLib is correctly set. You can set it like this: pdf_set_parameter($pdf, "resourcefile", "C:\phpdev\php\pdf-related\pdflib.upr"); 3. Take care the resource file and fonts can be found by adjusting your local include path. You can set it like this: ini_set('include_path', 'C:/phpdev/php/pdf-related'); 4. Take care the paths in the PDFLIB resource file are correct Open pdflib.upr in a text editor and modify the path entry (read the comments): Example: /C:/phpdev/php/pdf-related 5. Leave the optional parameter 'embed' out: Like this: if ($font = pdf_findfont($pdf, "Helvetica", "host", 0)) pdf_setfont($pdf, $font, 12); Or this: if ($font = pdf_findfont($pdf, "Helvetica", "host")) pdf_setfont($pdf, $font, 12); I hope this could be of help to you... ---- Manual Page -- http://www.php.net/manual/en/function.pdf-findfont.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55129 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55129&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55129&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55129&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55129&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55129&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55129&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55129&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92462) next »