[bug-gs] Setting pdf security with setpagedevice
Russell Lang
gsview at ghostgum.com.au
Wed Mar 31 00:10:39 PST 2004
Igor,
I was following up a posting on comp.lang.postscript. Someone wished
to set the security from PostScript code, rather than the GS command
line. So instead of using:
ps2pdf14 -sOwnerPassword#owner -sUserPassword#user -dEncryptionR#3
-dKeyLength#128 -dPermissions#-4 in.ps out.pdf
I tried using
ps2pdf14 in.ps out.ps
where in.ps included at the start
<<
/OwnerPassword (owner)
/UserPassword (user)
/EncryptionR 3
/KeyLength 128
/Permissions -4
>> setpagedevice
This resulted in a PDF file which had the owner and user password set
to all NULL characters. Should it be possible to set the security
using setpagedevice, or can it only be set from the command line?
Russell Lang gsview at ghostgum.com.au
Ghostgum Software Pty Ltd http://www.ghostgum.com.au/
More information about the bug-gs
mailing list