How to encrypt PDF with command line

In order to encrypt your PDF document with command line, please use VeryPDF Advanced PDF Tools Command Line which is a powerful application designed to make different settings for PDF document. If you want to see how to use this application, please go on reading the following contents.

Firstly, please download the free trial version of the application via clicking the following button and extract the ZIP file to local disk. There is an executable file named as pdftools.exe and it is the called program for your work.

free download VeryPDF Advanced PDF Tools Command Line

Secondly, please open MS-DOS interface because this application is MS-DOS based and you need to write your commands in this platform.

Thirdly, you need to see the commands template like the following one to type your commands when you want to encrypt PDF document.

pdftools [options]

When you need to encrypt the PDF document, you will need to use the following options:

-S "openpwd=XXX"   : Set 'open password' to PDF file
-S "ownerpwd=XXX"  : Set 'owner password' to PDF file
-S "keylen=X"      : Key length (40 or 128 bit)
  -S "keylen=0" : 40 bit RC4 encryption (Acrobat 3 or higher)
  -S "keylen=1" : 128 bit RC4 encryption (Acrobat 5 or higher)
  -S "keylen=2" : 128 bit AES encryption (Acrobat 7 or higher)
-S "permission=XXX"  : Restrictions
  -S "permission=0"  : Deny anything
  -S "permission=1"  : Allowed print the document
  -S "permission=2"  : Allowed modify the content of the document
…….

If you cannot understand the template and options above, please see the examples below:

pdftools.exe –i C:\input.pdf –S “openpwd=123” –S “ownerpwd=456” –S “permission=0”
pdftools.exe –i C:\test.pdf –S “ownerpwd=000” –S “permission=1”
pdftools.exe –i C:\input.pdf –S “openpwd=222” –S “keylen=0”

Lastly, please run the commands by hitting Enter button on the keyboard. You will get the encrypted PDF document in the location that you have specified.

In the end of this article, if you want to learn more information about this application, welcome visit the homepage of VeryPDF Advanced PDF Tools Command Line. If you are interested in it, just free download VeryPDF Advanced PDF Tools Command Line to have a try.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in Advanced PDF Tools and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!