Set page orientation and convert PPT to PDF by command line

VeryPDF Document Converter (docPrint Pro) is a very useful document converter which is worth a try. You can use it to set page orientation and convert PPT to PDF by command line.

VeryPDF Document Converter includes four applications. The application you need this time is docPrint Pro Command Line, which is the executable doc2pdf.exe placed in the installation folder. The following part will explain how to set page orientation and convert PPT to PDF by command line. Two steps are required.

Firstly, please open a command prompt window. Different ways are probably required according to the different version of Windows.

  • If you are in XP, you can click Start, click Run, type CMD or cmd in the Run dialog box and press Enter.
  • If you are in Vista or Windows 7, you need to use a different way: click Start, type cmd in the Search box of the Start menu and press Enter.

The second step is to type a command line on the basis of the syntax as follows:

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

The option that can be used to set page orientation is -O, it requires an integer as its value. Either 1 or 2 is ok. -O 1 sets the orientation mode as portrait as the left one as below; and -O 2 sets the orientation mode as landscape as the right one as below.


The following command lines are two examples. The first one can convert a single PPT to a PDF and set portrait as the orientation mode. The second one can convert multiple PPT to PDF files, and set landscape as the page orientation.

  • "C:\docPrint Pro v5.0\doc2pdf.exe" -O 1 -i C:\in.ppt -o E:\out.pdf
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -O 2 -i C:\*.ppt -o E:\*.pdf

Please type a command line to meet your needs. Just make sure that the letter after the dash is capital O. And don’t forget to press Enter to get the process started.

I hope this command line application provided by VeryPDF Document Converter can help you. For more information, 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!