PDA

Click to See Complete Forum and Search --> : BAD File Format


SargumSingh
Sep 21st, 2000, 10:40 PM
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.

hitcgar
Sep 22nd, 2000, 03:50 PM
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.

oetje
Sep 24th, 2000, 03:48 AM
The file type's details:http://www.wotsit.org/download.asp?f=pdfspec