How do I deny modification and copying of contents at the same time?
Encrypt PDF file
-encrypt <-openpwd=XXX -ownerpwd=XXX -keylen=X -encryption=XXX>
Set user password, owner password and permissions to the stamped PDF file.
Options for "-encrypt" function:
-openpwd <string> : Set 'open password' to PDF file
-ownerpwd <string> : Set 'owner password' to PDF file
-keylen <int> : Key length (40 or 128 bit)
-keylen 0: 40 bit RC4 encryption (Acrobat 3 or higher)
-keylen 1: 128 bit RC4 encryption (Acrobat 5 or higher)
-keylen 2: 128 bit RC4 encryption (Acrobat 6 or higher)
-encryption <int> : Restrictions
-encryption 0: Encrypt the file only
-encryption 3900: Deny anything
-encryption 4: Deny printing
-encryption 8: Deny modification of contents
-encryption 16: Deny copying of contents
-encryption 32: No commenting
===128 bit encryption only -> ignored if 40 bit encryption is used
-encryption 256: Deny FillInFormFields
-encryption 512: Deny ExtractObj
-encryption 1024: Deny Assemble
-encryption 2048: Disable high res. printing
-encryption 4096: Do not encrypt metadata
You can use “-encryption 24” to deny modification and copying of contents at the same time.
Thanks. So what if I want to deny everything but printing?
“deny everything but printing” is equal to 3900-4-2048=1848, so you can use “-encryption 1848” to try.