ps2pdf versus pstill and password protection of pdf documents
Last modified on July 24, 2026 • 1 min read • 106 wordsWhile reading about ps2pdf (which is just a commandline front-end to ghostscript), I realized that despite its simple appearance, ps2pdf has almost all capabilities of Acrobat 5.
-sOwnerPassword= and -sUserPassword=In order to set the key length to 128 you have to useps2pdf14 -dEncryptionR=3 -dKeylength=128Another thing that I don’t know how to handle easily with ps2pdf is the cropping of documents.For the password protection, a very good alternative seems to be PStill (
http://www.pstill.com/
). The command:pstill -Muserpassword=testpassword testfile.psdoes the trick.