Find out if PDF file is corrupted

Hello , I have several hundered PDF Files in which 20% seemes to be corrupt. Is it possible to create a Perl Script which uses a PDF Perl Module which open and closes a PDF File and reports the status(Health) if the file is corrupted or not.

best regards from
sdohn

If this is running on a machine with a display (i.e. workstation or X display on your desktop) then you could run a script that opens each file in turn using acroread (the file with path can be specified as a parameter to calling acroread) and check for the return code perhaps? Then kill the acroread process if it runs successfully before trying to open the next file.