in reply to Unexpected file version error from PDF::API2

The module PDF::API2 dies instead of indicating the failure.
It dies with an indication of failure. The reason is this:
not a PDF file version 1.x
It would appear as if the file isn't corrupt, but just too new a version of PDF file format. This seems extremely odd to me, as I thought even Acrobat 5 only produces PDF 1.4 files. This just can't be right.

eval BLOCK is indeed the best general mechanism to trap this.

As for the cause... what is this htmldoc you were talking about? I suspect a problem with binary vs. text mode, but that's just a guess.

  • Comment on Re: Unexpected file version error from PDF::API2

Replies are listed 'Best First'.
Re: Re: Unexpected file version error from PDF::API2
by artist (Parson) on May 11, 2004 at 19:33 UTC
    I looked at source PDF file and it was size 0. Sometime that htmldoc fails to produce the PDF file and resulting the error. Anyway, the error indicated the wrong reason.