- I am using Ubuntu latest
docker run --rm --name pdfs -it -v /pdfs:/pdfs -w /pdfs ubuntu:latest
- Install pdftk
apt-get update
apt-get upgrade
apt-get install pdftk
- you can chose whatever output pattern. More about this, here
for pdf in `ls`;do pdftk $pdf input_pw password output ${pdf:0:10}_WITHOUT_PASSWORD.PDF;done;