Check PDF integrity

Check PDF integrity

Forum member · Aug 30, 2007
I need to check the integrity of the PDFs before merging them. Otherwise I succeed to create a new PDF with a sequence of call to DynamicPDF.DocumentAddPage and DynamicPDF.PageAddImportedPageArea methods, but when I call DynamicPDF.Document.Draw or DynamicPDF.Document.DrawToFile I have a run-time error trigger from your library, but I dont'know which it is the bad PDF. I am forced to open PDFs manually in order to control visually which it is the wrong PDF. I need to check the PDFs before merging them, please help me. Thx.

Re: Check PDF integrity

Support · Aug 30, 2007
Hello, There is nothing in our product which can find if the PDF is corrupt. If you get the error in the Draw method of the document which has several PDFs merged in it then it is not possible to find which PDF has thrown the error. You may have to try using the Error handling concepts in VbScript. There are basically just two options to handle errors: On Error Goto 0 (the default) This causes execution to break when an error happens and show an error message. On Error Resume Next This causes the script to continue execution starting with the next line after the error. Thanks, ceTe Software Support Team.

Re: Check PDF integrity

Forum member · Aug 30, 2007
In the future versions is it possibile to include this feature?

Re: Check PDF integrity

Support · Aug 30, 2007
Hello, We will add this feature to our wish list and we may add this feature in a future version but currently we do not have any immediate plans on if and when this will be added. Thanks, ceTe Software Support Team.