Convert PowerPoint to PDF and set page size by command line

If I were you, I would use VeryPDF Document Converter (docPrint Pro) to convert PowerPoint to PDF and set page size by command line. Among all the document converters I’ve tried before, VeryPDF Document Converter is the most powerful one. It provides four applications. The command line application of it can help you easily solve your problem.

VeryPDF Document Converter is a stand-alone document converter. It does not require third-party applications like MS Office PowerPoint and Adobe Acrobat. You can download VeryPDF Document Converter and install it on your computer. The command line application we are going to use is the executable file doc2pdf.exe, which is stored in the installation folder. The following will show how to use the command lien application to convert PowerPoint to PDF and set page size.

You should first open the command prompt window. You can open the command prompt window through the Start menu or just create a shortcut icon of the command prompt window on the desktop. If you are in XP, you should Click Start at the bottom of the screen, and then press Command Prompt on the Start menu.

Or you can right click anywhere on the screen > point to New on the list that appears> click Shortcut >type cmd in the Create Shortcut dialog box > click Next > click Finish in the next dialog box that pops out > double click the new icon named cmd.exe on the desktop to open the command prompt window.

the first step to use command line to convert powerpoint to pdf

Secondly, as you see the command prompt window appears on the screen, please type a command line according to the basic usage of the executable file doc2pdf.exe.

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

The option you can use to set page size is -f <page size>. By adding such an option, you can select either standard page sizes or user defined page sizes for printer. When you use a user-defined page size, the unit of page size can be pixel, inch or mm. When you use stand sizes, you don’t need to add a unit after a number.

The following are some examples of command lines which can be used to convert PowerPoint to PDF and set page size:

  • "C:\docPrint Pro v5.0\doc2pdf.exe" -f 8 -i D:\in.ppt -o E:\out.pdf—set a standard page size
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -f "11x12in" -i D:\in.pptx -o E:\out.pdf—set 11x12inch as the page size
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -f "210x270mm" -i D:\in.pot -o E:\out.pdf—set 210x270mm as the page size
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -f "699x700pt" -i D:\in.pptx -o E:\out.pdf—set 699x700pt as the page size
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -f "699x700pt" -i D:\*.pptx -o E:\*.pdf—set 699x700pt as the page size for batch conversion

Please type a command line to meet your requirement. Don’t forget to press Enter.

This is the method you can use to convert PowerPoint to PDF and set page size by command line. If you want to see other features of VeryPDF Document Converter, please visit: http://verypdf.com/artprint/index.html

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!