eval { $pds = PDF::API2->open( $sourcepdf ) }; print "Not a recognizable PDF format\n$@" if $@;
...Untested. I'm assuming that PDF::API2 doesn't do something that would prevent you from trapping errors.
Dave
In reply to Re: Unexpected file version error from PDF::API2
by davido
in thread Unexpected file version error from PDF::API2
by artist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |