Detect corrupted PDF

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an auto-process which called adobe reader to open a pdf, the adobe
reader will close when process done.
However, if the pdf is corrupted, the adobe reader will be hanged by an
alert box.
I want to know how I can detect whether the pdf is corrupted or not before I
called up the adobe reader?

Thanks.
 
If there is no user involved, look into whether you can use the Adobe
Acrobat API instead. You will get an error return instead. The API can be
useful for validating a document as well. On the other hand, you may be
able to find a library running around the internet that will validate the
PDF file for you.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top