PDFlib error - pdf_color or pdf_setrgbcolor

From: Date: Wed, 27 Mar 2002 05:07:12 +0000
Subject: PDFlib error - pdf_color or pdf_setrgbcolor
Groups: php.general 
Request: Send a blank email to php-general+get-90316@lists.php.net to get a copy of this message
Hi, I'm trying to fill a rectangle with color in a php generated PDF document. I get the following error: *Fatal error*: PDFlib error: illegal state 0x00000000 in */usr/local/apache/htdocs/EDR/generate_edr.php* on line *144* I have tried both of the following on line 144: pdf_setcolor($pdf, "both", "gray", 1); pdf_setrgbcolor($pdf,1,1,0); If I comment out the line to set color the PDF document gets generated correctly. I can't find any reference* *to this error on mailing lists or documentation. I'm using PHP Version 4.1.1 and PDFlib 4.0.1. Does anyone have any ideas, thanks. Wayne Bastow

« previous php.general (#90316) next »