Adobe Acrobat API - How to skip opening password protected PDFs?
Posted
by Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Ryan
Published on 2010-05-13T21:31:32Z
Indexed on
2010/05/19
19:40 UTC
Read the original article
Hit count: 252
Hi all,
I've been using Delphi and the Adobe Acrobat 9 API. I'm simply opening a PDF and printing it, followed by closing it without saving anything.
I'm having an issue while opening some PDFs though. If the PDF is password protected the Open method displays Adobe's "Input password" prompt. My application is running in an automated fashion, and therefor cannot proceed beyond this password prompt until somebody clicks cancel.
I've been looking for something that will either notify me that the file is password protected prior to opening it, or a parameter or something that will skip password protected files. I need my program to assume it cannot open any passworded PDF.
Does anyone know enough about the Acrobat API to provide any assistance here?
Thank you, Ryan
© Stack Overflow or respective owner