I am using Adobe Reader to render PDF documents as a part of a process and then convert it into TIFF. Some of the documents that come in are corrupt PDF documents and cannot render itself in the reader and hence cannot be converted. This is the error that the reader throws:
ADobe reader could not open "test.PDF" because it is either not a supported file type or because the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decoded)
Now, the process is automated with no human intervention. with the advent of this error message, since there is a modal dialog box waiting for a response from the user, the process is interrupted and needs human intervention.
My question is simply this. Is there an API i could use where i can figure out beforehand if the PDF is bad so i can reject such files early on? research shows that using the adobe forms server which has the PDF utility services, there is a query "Is a PDF document" that is available. I do not want to use a server product.
Is there any other ADOBE product that exposes something similar?
How is the PDF being created (what application)? Reader sounds like it is only used for viewing the end result (since it can't create
PDF's at all).
I guess i forgot to add that piece of information. WE do not create the PDFs. We receive PDFs from external sources over which we have absolutely no control and that explains why we get such corrupt documents in the first place. I was just wondering if there was a simple API event/method/means attached to any ADOBE product which is compatible with .net that tells me if the PDF is corrupt UPFRONT.