Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
Discipulus puts on AC hoping it goes better..
[Eily]: you should use DC instead, less variation
[Discipulus]: surprisingly i put ADCD in this precise moment!

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-06-26 11:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (577 votes). Check out past polls.