Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: PDF::Parse fails with obscure error messages

by Albannach (Prior)
on Jul 22, 2004 at 13:12 UTC ( #376560=note: print w/replies, xml ) Need Help??


in reply to PDF::Parse fails with obscure error messages

I did a simple with your code, and apart from the redundant $pdf->TargetFile($_); it seems to correctly extract the requested PDF info from my small sample of files. I noticed that PDF::Core (which I've rarely used) has some uninitialized variables that could be cleaned up, but I also suspect that as it is a bit old now it simply doesn't grok the particular PDF you're feeding it in your test. Perhaps you should see which PDF is being scanned when that error appears, and test some other (i.e. not generated at your shop) PDFs to see if it is a version problem.

You might also look into PDF::API2 which I have found to be pretty good (and newer), though slower than PDF::Parse for header information.

Good luck!

--
I'd like to be able to assign to an luser

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://376560]
help
Chatterbox?
[stevieb]: A couple of years ago I went to Curacao on a business trip which is a few parallels south of Canary Islands, but one thing I liked was it was 90 degrees at all times consistently. Much different experience than living in Canada :)
[choroba]: Yeah, my wife sent me some pictures of the children yesterday, and there was snow all around. 10 days in Saigon and I totally forgot what weather they have back there.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2017-02-23 17:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (349 votes). Check out past polls.