Convert PowerPoint to PDF and encrypt PDF by command line

If you want to convert PowerPoint to PDF and encrypt PDF by command line, please try VeryPDF Document Converter (docPrint Pro). It can help you convert all types of PowerPoint files to PDF and encrypt PDF by command lines.

VeryPDF Document Converter is the advanced version of Document Printer. And it’s why Document Converter is also named docPrint Pro. As for Document Converter, it provides four applications, among which docPrint Pro Command Line is the command line application which can help you solve your problem. The following will show you how to use docPrint Pro Command Line to convert PowerPoint to PDF and encrypt PDF.

1. Open a command prompt window

If you are a Windows XP user, please do as follows: click Start on the lower left corner of the screen, > click Run on the Start menu, > type cmd in the Run dialog box, > press Enter on the keyboard. The command prompt window will appear on the screen immediately.

2. Use docPrint Pro Command Line

The second step is to use the command line application, docPrint Pro Command Line, by tying a command line in the command prompt interface. Please follow the basic usage of docPrint Pro Command Line:

Usage: doc2pdf [options] <-i Document Files> [-o Output]

You know, the executable file doc2pdf.exe which you can find in the installation directory is docPrint Pro Command Line. And to view the options which can be used to encrypt PDF, you can type the path named of in the command prompt window and then press Enter. In fact, there are four option parameters that can help you encrypt PDF files.

-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=4    : Deny printing
        -s permission=8    : Deny modification of contents
        -s permission=16   : Deny copying of contents

The following are some examples that can be used to convert PowerPoint to PDF and encrypt PDF:

  • "C:\docPrint Pro v5.0\doc2pdf.exe" -s openpwd=655 -s ownerpwd=530 -s keylen=1 -s permission=8 -i D:\in.pptx -o D:\out.pdf
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -s openpwd=265 -s keylen=2 -i D:\in.ppt -o D:\out.pdf
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -s ownerpwd=499 -s keylen=0 -s permission=16 -i D:\in.pptx -o D:\out.pdf

Now, please type a command line and press Enter. I hope this article is helpful. Look like you can use the trial version of VeryPDF Document Converter for 100 times. If you want to get more information about this product, please visit

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

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!