PDF file print protected?

Having a PDF file that is print protected is annoying. If you run into this nonsense and you happen to use Linux, the following command will save you, provided you have Ghostscript installed. Note though, that this command can not strip the password out of documents that are password protected against opening!

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unprotected.pdf -c .setpdfwrite -f original_encrypted.pdf