Skip to main content
February 10, 2016
Question

Can we Password protect PDF files from Command Line?

  • February 10, 2016
  • 2 replies
  • 5594 views

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

This topic has been closed for replies.

2 replies

Inspiring
February 10, 2016

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.

Bernd Alheit
Community Expert
Community Expert
February 10, 2016

Adobe Acrobat doesn't have a command line option for this.

d_logaan
Inspiring
August 30, 2023

Wow.  For what we pay for Adobe, there's no option to automate this task because there's no CLI.  Absolutely ridiculous.

try67
Community Expert
Community Expert
August 30, 2023

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.