Can we Password protect PDF files from Command Line?

Copy link to clipboard
Copied
Hi All,
I have a requirement where I need to password protect PDF files in background task. I have an option to call external OS commands from my system to run the tool on specific file.
Does Adobe Acrobat DC help in this? Can we execute from command line and make a PDF password protected?
Kindly advice,
Thank you,
Pallavi
Copy link to clipboard
Copied
Adobe Acrobat doesn't have a command line option for this.
Copy link to clipboard
Copied
Wow. For what we pay for Adobe, there's no option to automate this task because there's no CLI. Absolutely ridiculous.
Copy link to clipboard
Copied
Is Word a command-line utility? Is Photoshop? Chrome?
Can you name any major application that is, beyond some basic commands like specifying a file-path or a URL to open? None of these applications offer such an interface.
A command-line utility is a very specialized type of tool, different from a GUI-based one, and usually developed for a more automated workflow. Such tools are usually developed for enterprise customers, not the general market.
Copy link to clipboard
Copied
PS. I could develop for you a command-line utility that encrypts PDF file(s) using a password and a specified policy, working independently of Acrobat, for a fee. You can contact me privately (via a PM) to discuss it further.
Copy link to clipboard
Copied
Look at the Actions feature in Acrobat XI and DC. You can't run it from the command line but from within Acrobat you can use it to batch-encrypt PDFs or to encrypt one PDF with a pre-determined password.

