Convert Excel to PDF via command line

I do know a command line application which can convert Excel to PDF. It supports all Excel file formats like .XLS and .XLSX. This application is called VeryPDF docPrint Pro or VeryPDF Document Converter Professional. It’s my favorite document converter, because it can convert all printable documents to PDF and do support batch conversion.

You can download it by clicking docPrint Pro. After you install it on your computer, you can use it free for 50 times. The following are the two steps you can take to convert Excel to PDF via command line.

Firstly, you should open the command prompt window. Under different Windows operating systems, you need to take different way to open the command prompt window. Even under the same Windows XP system, you can use different way to open it. For example, the simplest way to run the command prompt under Windows XP is to click Start and then click Command Prompt. Another way is to click Start, click Run, type cmd and then press Enter.

The second step is to type a command line. Before typing a command line, please take a look at the usage and examples below:

  • Usage: doc2pdf [options] <-i Document Files> [-o Output]
  • Examples:
    • “C:\docPrint Pro v5.0\doc2pdf.exe” -i D:\1.xls -o D:\2.pdf
    • “C:\docPrint Pro v5.0\doc2pdf.exe” -i D:\*.xls -o D:\*.pdf

The first example can be used to convert one Excel file in the format XLS to a PDF file. The second example can be used to convert all the Excel files in the format XLS which are placed in the root folder on disk D to PDF. And all the output files should be export to the root folder on disk D. Notice: the path must be enclosed by a pair of quotation marks if the words in the path are separated by spaces. This is why the path of the executable file is enclosed by quotation marks in both the examples. Please press Enter after you type a command line to meet your requirements.

This method is what I usually use to convert documents form Excel to PDF. Do you think it’s simple? Do you have any questions? You are welcome to ask any question. Please leave a message to let know it there is.

VN:F [1.9.20_1166]
Rating: 6.7/10 (3 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 2 votes)
Convert Excel to PDF via command line, 6.7 out of 10 based on 3 ratings

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!