Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Anyone have an example that checks the integrity of a pdf file?

by waswas-fng (Curate)
on Jul 26, 2007 at 21:26 UTC ( [id://629006]=note: print w/replies, xml ) Need Help??


in reply to Anyone have an example that checks the integrity of a pdf file?

If by validate you do not mean check for tampering, but mean does this pdf look like it will parse correctly the short answer is no. A longer answer is that there are many PDF engines out there:

9 or 10 variants of adobe engines in product or oem libraries
open source engines such as libpdf, ghost etc
other 3rd party closed source engines.

Each of these variants parse and handle pdfs in slightly different ways (some very strict, some loose) -- the only way to actually verify PDF will parse is to apply the engine you are concerned about. Even if parseable without any errors or warnings -- nothing can be said for the visual output matching what is expected.


-Waswas
  • Comment on Re: Anyone have an example that checks the integrity of a pdf file?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://629006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2024-04-25 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found