VeryPDF Document Converter (docPrint Pro) is the right software which can help you convert XLS to PDF andvia . VeryPDF Document Converter has a version and a GUI version. This article will explain how to use the command line version of VeryPDF Document Converter to convert XLS to PDF and .
First of all, you need to download the command line application by clicking VeryPDF Document Converter. After you install VeryPDF Document Converter on your computer, you can find an executable file named doc2pdf in the installation directory. And this executable file is the command line application we are going to use.
Secondly, you need to open the command prompt window. Just take Windows 7 as an example, you can do as follows: open the Start menu by clicking Start, > click All Programs,> click Accessories, > click Command Prompt. The command prompt window will pop out on the desktop.
Thirdly, you need to use the command line application by typing a command line in the command prompt window. Your command line must base on the basic usage of the executable file. The usage and the option that can be used to combine PDF files are shown below.
Usage: doc2pdf [options] <-i Document Files> [-o Output]
Option: -p <int>
-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
The following example may help you better understand the usage.
"C:\docPrint Pro v5.0\doc2pdf.exe" -p 1 -i C:\in.xls -o D:\out.pdf
The example can be used to convert a XLS to PDF and combine the PDF file with an existing PDF by putting the new one before the first page of the existing one. You can also put the new PDF file after the last page of the existing PDF file by change the value after the option parameter from 1 to 2. Now, please type a command line and press Enter.
This is method you can employ to convert XLS to PDF via command line. If you want to learn more information about the options of VeryPDF Document Converter, please type the directory of the executable file in the command prompt and press Enter.