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 <[EMAIL PROTECTED]> > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php