RE: PDF Problem

From: Date: Wed, 24 Jan 2001 01:09:52 +0000
Subject: RE: PDF Problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-5178@lists.php.net to get a copy of this message
---------------------------------------------------------------------------- ----------------- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at postmaster@normandy.com.au and delete the email document without making a copy. ---------------------------------------------------------------------------- ----------------- Ryan, You have a few problems. 1. A valid pdflib.upr 2. The correct AFM settings 3. A valid AFM version of Arial If you are using the php4win distribution you should find the the pdflib.upr in the php/pdf-related/ directory. I think the loaction is hardcoded at compile time (though i think it looks through the path as well... try checking the pdflib manual) You will need to find a converter for your .ttf to an .afm (there are several) check freshmeat.net. Im actually at a clients at the moment, but i plan on writing a short tutorial on the whole process in the next week if you can hold on. Mail me at markn@enspace.com with a reminder if you're interested. mn Mark Nold markn@enspace.com <mailto:markn@enspace.com> Senior Consultant   Change is inevitable, except from vending machines. -----Original Message----- From: Conover, Ryan [mailto:Rconover@americanbridge.net] Sent: Wednesday, January 24, 2001 3:40 AM To: php-windows@lists.php.net Subject: PDF Problem I keep getting the following error on a line of the funciton below function marketingoutput($top, $pdf){ $z=0; $currentline=$top-$this->standardboxheight; while ($z<$this->zarrayofboxes){ $tempbox2=$this->arrayofboxes[$z]; $tempbox=unserialize($tempbox2); pdf_set_font($pdf, "Arial", 10, "host"); /////////////////////THIS IS WHERE I KEEP GETTIN THE ERROR AT pdf_set_value($pdf, "textrendering", 1); pdf_show_boxed($pdf, $tempbox->title.":", 36, $currentline, 100, $this->standardboxheight, "justify"); pdf_set_font($pdf, "Arial", 8, "host"); pdf_set_value($pdf, "textrendering", 1); pdf_show_boxed($pdf, $tempbox->info, 136, $currentline, 404, $this->standardboxheight, "justify"); $z++; $currentline=$currentline-$this->standardboxheight; } } Fatal error: Internal pdflib error: Resource configuration file 'pdflib.upr' not found in c:\Inetpub\wwwroot/test/marketing/Printing.php on line 88 Anyone have any ideas what to fix on this. This function is just to print out a portion of a report. Ryan

« previous php.windows (#5178) next »