Re: PDFlib error help --

From: Date: Thu, 22 Aug 2002 15:09:20 +0000
Subject: Re: PDFlib error help --
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-113627@lists.php.net to get a copy of this message
Well an answer, even one I didn't want is better than no answer -- I only thought a band-aid might be around as the code did work at one time ... oh well, I guess I'm going to go learn more about PDFlib than I ever wanted to:( Thanks for the help. On Thu, Aug 22, 2002 at 07:53:13AM -0700, Rasmus Lerdorf wrote: > There is no bandaid for this. Your code is simply wrong. You are calling > a stroke function without having a path to stroke. You need to fix the > code. > > -Rasmus > > On Thu, 22 Aug 2002, Hank Marquardt wrote: > > > I've got an old, inherited codebase (>18months) that generates PDFs -- just > > upgraded the server and libraries and php versions and now the PDF stuff > > is broken -- a quick scan of the archive and on google didn't this issue > > on there. > > > > The error I'm getting is: > > > > PDFlib error: function 'PDF_stroke' must not be called in 'page' scope > > > > I started to just comment out the offending line and see what happened, > > but it complains on every instance of function call throughout the > > scripts and a couple of supporting classes --- eww. > > > > I did notice a lot of calls to the deprecated API, but I'd really like > > to find a bandaid to put on this rather than rewrite the class library > > and all the scripts under time pressure -- > > > > Anyone else run into this? ... any pointers, faqs, etc. > > > > -- > > Hank Marquardt <hank@yerpso.net> > > GPG Id: 2BB5E60C > > Fingerprint: D807 61BC FD18 370A AC1D 3EDF 2BF9 8A2D 2BB5 E60C > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- Hank Marquardt <hank@yerpso.net> GPG Id: 2BB5E60C Fingerprint: D807 61BC FD18 370A AC1D 3EDF 2BF9 8A2D 2BB5 E60C

« previous php.general (#113627) next »