Check PDF integrity

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Merger for COM/ActiveX (v4)  /  Check PDF integrity

DynamicPDF Merger for COM/ActiveX (v4) Forum

 Aug 30 2007 3:19 AM
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.
 Aug 30 2007 8:44 AM
Posted by a ceTe Software moderator
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.
 Aug 30 2007 8:51 AM
In the future versions is it possibile to include this feature?
 Aug 30 2007 9:03 AM
Posted by a ceTe Software moderator
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.

All times are US Eastern Standard time. The time now is 7:02 AM.