PDFtk Password Encrypter
Ever wanted to encrypt a PDF file and protect it with a password? Welcome to
the easiest CLI method ever!
How to use this image
This image uses 2 environment variables:
- `$OWNER_PW` (default: `owner`). Password for the file owner. Use it to decrypt with full permissions. - `$USER_PW` (default: `user`). Password for the file users. Use it to decrypt with limited permissions.
Read the docs to know how to override variables at runtime.
Run this command to encrypt with the default passwords:
docker run --rm -i yajo/pdftk-encrypt < filetoencrypt.pdf > encryptedfile.pdf