09-11-2009, 02:12 PM
|
#2 (permalink)
|
|
The Acquainted
Join Date: May 2007
Location: Your G/F's Closet
Posts: 114
Thanks: 7
|
Now i am not the best coder myself so I may be wrong if so somebody else please correct me but im going to do my best here.
Looking at the error its the font that is missing meaning that the script is unable to find the fonts that you listed here:
PHP Code:
$arial=pdf_findfont($pdf,'Arial','host',1);
For font be sure to have something included like this:
PHP Code:
// Locate Font Directory $fontdir = "C:\WINDOWS\Fonts"; // Font Name Parameters pdf_set_parameter($pdf, "FontOutline", "arialMyName=$fontdir\arial.ttf"); // Find Font $arial = PDF_findfont($pdf,"arialMyName","host",0 ); // Set font size and font name pdf_setfont($pdf, $arial, 10);
Note: Credit for my given code goes to the php manual located here.
Cheers,
Randy
__________________
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25 - Andrew Rutherford
Last edited by Randy : 09-11-2009 at 02:15 PM.
Reason: Added php.net credit
|
|
|