Ever wanted to encrypt a PDF file and protect it with a password? Welcome to the easiest CLI method ever!
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
Content type
Image
Digest
Size
91.7 MB
Last updated
over 8 years ago
docker pull yajo/pdftk-encrypt