Get a site

Print psswd protected pdf files

Print psswd protected pdf files

This is a pretty quick post. I needed to print psswd protected pdf files. YOU CAN’T UNENCRYPT A FILE, of course! So I just tried to pump in the file into ghostscript and see how it does.

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf

Well, at the end, I was able to print the document.

GWH! #gwh

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Published by Francesco Serafin

I am a PhD student at the Department of Civil, Environmental and Mechanical Engineering at the University of Trento. My two greatest loves: Computer Science and Water (take three with my Lenovo!:D). As a result, the aim of my life is to make both passions coexist. My gpg public key available at

Leave a Reply

Your email address will not be published.

%d bloggers like this: