Convert PPT to PDF and set page size by command line

This article is mainly about how to convert PPT to PDF and set page size by command line with the help of VeryPDF docPrint Pro Command Line. VeryPDF docPrint Pro Command Line can help you convert as many PPT files as you want to PDF at a batch.

Do you want to have a try? Please click VeryPDF Document Converter to free download the software first. After install it on your computer, you will find that Document Converter contains four applications. And docPrint Pro Command Line is the one that supports batch conversion and option setting. The following are the two steps you need to take:

At first, you need to run Windows Command Prompt. There are many ways to run Command Prompt. Here is the most commonly used way to run it under Windows XP:

  • Click the Start button.
  • Select Run from the Start menu.
  • Type cmd in the Run dialog box and press Enter.

The Command Prompt window will appear on the screen instantly. And the next step is to use docPrint Pro Command Line. You should type a command line on the basis of the executable file doc2pdf.exe, which is entitled docPrint Pro Command Line. The following is the usage:

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

The option you can use to set page size is -f <paper size>. You can set page size as either standard pages or user defined pages, e.g. -f 8, which can be used to set standard page size; -f "22x33in" which can be used to set 22x33 inch to printer; -f "444x555mm", which can be used to set 444x555 mm to printer; and -f "666x777pt", which can set 666x777pt to printer.

The following are some command lines that can convert PPT to PDF and set page size:

  • "C:\docPrint Pro v5.0\doc2pdf.exe" -f 8 -i C:\*.ppt -o E:\*.pdf
  • "C:\docPrint Pro v5.0\doc2pdf.exe" –f "22x33in" -i C:\*.ppt -o E:\*.pdf
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -f "444x555mm" -i C:\in.ppt -o E:\out.pdf
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -f "666x777pt" -i C:\in.ppt -o E:\out.pdf

Now please type a command line to meet your requirements and then press Enter to start the process. You can also set other options when convert PPT to PDF. If you are interested, please type the path of the executable file on the Command Prompt window like "C:\docPrint Pro v5.0\doc2pdf.exe", and press Enter.

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

One Reply to “Convert PPT to PDF and set page size by command line”

  1. Hi,

    Is it possible to convert PPT or PPTX to PDF with a command line switch that sets the ‘Scale to Fit Paper” option to yes?

    Best Regards
    Dave

    VA:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.20_1166]
    Rating: 0 (from 0 votes)

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!