Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 ( #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
Node Status?
node history
Node Type: note [id://629006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-08-20 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (109 votes), past polls