Is there a way in VB or an API which could check the if the file is corrupted?
I have some .pdf files which I need to check through my program if they are corrupted.
I tried ShellExecute it didn't work.
Printable View
Is there a way in VB or an API which could check the if the file is corrupted?
I have some .pdf files which I need to check through my program if they are corrupted.
I tried ShellExecute it didn't work.
If the corruption is disk I/O then it should show up when you attempt an open.
But, if the corruption is in a file format error then you
have to be able to open the file as a binary stream and
check the file header which usually contains format info.
This means you have to know what it should look like and be
able to respond when it "looks" wrong.
Check Adobe site on PDF format for this file type's details.
The file type's details:http://www.wotsit.org/download.asp?f=pdfspec