Adobe Acrobat API - how to skip opening password-protected PDF files?
I am using Delphi and the Adobe Acrobat 9 API. I just open the PDF and print it and then close it without saving anything.
I have a problem opening some PDF files. If the PDF is password protected, the Open method displays the Adobe Input password prompt. My application is automatic and therefore cannot go beyond this password until someone cancels it.
I was looking for something that will either tell me the file is password protected before opening it, or an option or something that will skip password protected files. I need my program to assume it cannot open a password-protected PDF.
Does anyone know of the Acrobat API to provide any help here?
Thanks Ryan
a source to share
I had a similar problem where I needed to find out if printing is allowed before doing commnad printing to PDF. The API does not complain and the print function returns success even if the PDF does not allow printing. I wrote a while ago by writing Adobe plug in. If it's not out of the box, you will need to write a plugin.
a source to share