VeryPDF Document Converter (docPrint Pro) can help you convertand by . You can select docPrint Pro Command Line from the four applications provided by Document Converter, and use it to solve the problem. This article takes three steps to show how to use docPrint Pro Command Line to Convert and .
You should begin with clicking Document Converter to download the software. After you install it on the computer, if you want to locate docPrint Pro Command Line, please do as follows:
- Click Start.
- Move the cursor to All Programs.
- Click Document Converter (docPrint Pro).
- Right click docPrint Pro Command Line.
- Click Properties on the list that pops out.
- Click the button Find Target in the dialog box that appears.
Then, you will find that the executable file doc2pdf.exe is highlighted in the window that pops out. This executable file is docPrint Pro Command Line.
The second step is to open a command prompt window. There are a lot of ways to open a command prompt window. If you are a Windows XP user, you can use at least three ways to open a command prompt window. For instance: Click Start, click Run, type cmd in the Run dialog box and press Enter. If you are a Windows 7 or Vista user, please do as follows: click Start, type cmd in the Search box and press Enter.
The third step is to type aon the command prompt window and press Enter. The command line you must be on the basis of the usage of the executable file as follows:
doc2pdf [options] <-i Document Files> [-o Output]
There are four options that can be used tos:
-s openpwd=XXX : set 'open password' to PDF file
-s ownerpwd=XXX : set 'owner password' to PDF file
-s keylen=XXX : 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 RC4 encryption (Acrobat 6 or higher)
-s permission=XXX : set permission to PDF file
-s permission=3900 : Deny anything
-s permission=4 : Deny printing
-s permission=8 : Deny modification of contents
-s permission=16 : Deny copying of contents
-s permission=32 : No commenting
-s permission=1024 : Deny Assemble
There are two types of PDF passwords: open passwords and owner passwords. To set an open password, you are going to use two options: -s openpwd=XXX and -s keylen=XXX. To set an owner password, three options are needed: -s ownerpwd=XXX, -s keylen=XXX and -s permission=XXX.
The following are some examples:
- doc2pdf.exe -s openpwd=123 -s keylen=2 -i D:\in.doc -o E:\out.pdf
- doc2pdf.exe -s ownerpwd=321 -s keylen=1 -s permission=32 -i D:\in.ppt -o E:\out.pdf
- doc2pdf.exe -s openpwd=123 -s ownerpwd=321 -s keylen=2 -i D:\in.xls -o E:\out.pdf
- doc2pdf.exe -s openpwd=123 -s ownerpwd=321 -s keylen=2 -i D:\*.xls -o E:\*.pdf
Please press Enter after typing a command line. This article only shows how to convert Office to PDF and set PDF password by command line. If you are interested in the other usages of docPrint Pro Command Line, please visit: http://verypdf.com/artprint/index.html