3

I have over 100,000 .pdf files. Among them I need to find out the corrupted files.

Is there a way to get the files which are corrupted – or vice versa, get those that are working (in an automated way rather than manually examining the files one at a time)?

I searched a lot but could not find any. All the results were showing me software to fix broken PDFs.

3

1 Answer 1

1

You could use something like Ghostscript to read them all and convert them to bitmap images which are not written to a file (e.g. on Linux redirect output to /dev/null). A script could check for return codes and error messages.

Not the answer you're looking for? Browse other questions tagged .