jbrugger has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,
I use PDF::API2 to generate pdf-files.
Sometimes however (generating the same file over and over again) errors occur, like this one:
Software error: Undefined subroutine &PDF::API2::Resource::Font::CoreFont::uniByName called at /usr/lib/perl5/site_perl/5.8.0/PDF/API2/Resource/Font/CoreFont.pm line + 114. </pre> <p
Or the text looks scrumbled like pdf.gif] (link to external image not working anymore)..

and of course, somtimes all goes properly. Any idea what may couse this problem?

ps. I usd api 0.37, 0.41 and 0.44 (latest), and they all give the same problem. Thanks

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Replies are listed 'Best First'.
Re: PDF::API2 corrupts my text?
by Jaap (Curate) on Jul 25, 2005 at 09:50 UTC
    When you re-run it, does it produce the same errors on the same files?
    If so, you could try to isolate the problem and mail it to the author of PDF::API2.
      > When you re-run it, does it produce the same errors on the same files?
      Sometimes, thats the issue, the same request somtimes goes wrong, sometimes gives the error or somtimes goes right. (even after page refreshes)..
      There is no pattern to be found though.

      "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.