<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Password-Protection on Michael’s Domain</title><link>https://jeltsch.org/en/tags/password-protection/</link><description>Recent content in Password-Protection on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/password-protection/index.xml" rel="self" type="application/rss+xml"/><item><title>ps2pdf versus pstill and password protection of pdf documents</title><link>https://jeltsch.org/en/ps2pdf_versus_pstill_and_password_protection_of_pdf_documents/</link><pubDate>Wed, 23 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/ps2pdf_versus_pstill_and_password_protection_of_pdf_documents/</guid><description>&lt;p&gt;While 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. ps2pdf14 outputs Acrobat 5-compatible files. According to the documentation strong password protection should be possible, however, I never managed with that.In theory the following commands should work:&lt;code&gt;-sOwnerPassword= and -sUserPassword=&lt;/code&gt;In order to set the key length to 128 you have to use&lt;code&gt;ps2pdf14 -dEncryptionR=3 -dKeylength=128&lt;/code&gt;Another thing that I don&amp;rsquo;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 (
 &lt;a href="http://www.pstill.com/" target="_blank" rel="noopener noreferrer nofollow"&gt;http://www.pstill.com/&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
). The command:&lt;code&gt;pstill -Muserpassword=testpassword testfile.ps&lt;/code&gt;does the trick.&lt;/p&gt;</description></item></channel></rss>