essoen / encrypt-pdfs-in-folder

A script to encrypt each PDF in a folder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

encrypt-pdfs-in-folder

A script to encrypt each PDF in a folder

Usage

The script takes three arguments:

  • The directory with the PDFs
  • The password for those who want to open the PDF
  • The owner password

You'll need to install pdftk, then:

bash encrypt-pdfs-in-folder.bh directory/ owner_pw user_pw

Example:

bash encrypt-pdfs-in-folder.bh ~/myPDFfolder/ mySuperSecurePw someUserPw

About

A script to encrypt each PDF in a folder

License:MIT License


Languages

Language:Shell 100.0%