PDFlib error help --
| From: | Hank Marquardt | Date: | Thu, 22 Aug 2002 14:58:24 +0000 |
| Subject: | PDFlib error help -- | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-113618@lists.php.net to get a copy of this message | ||
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