Convert Excel to PDF and combine PDF via command line

When users convert Excel to PDF, they may want to combine the new output file with an existing PDF file. This article will show you how to use one command line to convert Excel to PDF and combine PDF.

Firstly, a good command line application should be installed on the computer. This article introduce you an all-to-all document converter which is named VeryPDF Document Converter or docPrint Pro. This software provides both a command line version and a GUI version. To get the command line version, please click VeryPDF Document Converter. And in the rest part, we only refer to the command line version. After you install the command line application on the computer, you can use it free for 50 times.

Secondly, you should open the command prompt interface. Because some of you have already known how to open it, I only briefly introduce a method to open it under Windows XP: First click Start. Then, click Run on the Start menu. After that, type cmd in the Run dialog box. And at last, press Enter. When the command prompt interface pops out, you can proceed to the next step.

Thirdly, type a command line and press Enter. You should take a look at the basic usage of the main executable file, the option to combine PDF files and some examples before you type a command line.

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

Option :     -p <output Flag>  : a flag for PDF output
        -p 0: overwrite if PDF file exists
        -p 1: insert before first page if PDF file exists
        -p 2: append to last page if PDF file exists
        -p 3: rename filename if PDF file exists

Examples:

  • "C:\docPrint Pro v5.0\doc2pdf.exe" –p 1 –i D:\in.xls -o E:\out.pdf
  • "C:\docPrint Pro v5.0\doc2pdf.exe" –p 2 –i D:\in.xls -o E:\out.pdf

The first example can insert the new PDF file, which is converted from the Excel, to the first page if a PDF named out exists. The second example can append the Excel to the last page if a PDF named out exists. Do you know how to type a command line now? Please remember to press Enter after you type a command line.

There are the three steps that are required to convert Excel to PDF and combine PDF via command line. You see, VeryPDF Document Converter (docPrint Pro) is easy to use. If you want to buy it, please click full version.

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

This entry was posted in docPrint Pro and tagged , , . Bookmark the permalink.

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!