Convert Excel to PDF and set PDF title via command line

It would be easy to use command line to set PDF title and convert Excel to PDF when you have a good tool. This article recommends you an all-to-all document converter, which is named VeryPDF Document Converter (docPrint Pro). VeryPDF Document Converter has a command line version and a GUI version, the latter one is what you need to have. In the rest part of this article, when we talk about VeryPDF Document Converter, we only refer to the command line version.

After you download VeryPDF Document Converter and install it on your computer, you can use it free for 50 times before you buy the full version. Now, let’s see how to use VeryPDF Document Converter to convert Excel to PDF and set PDF title.

The first step is to open the command prompt window. When you plan to use a command line application, you always need to open the command prompt window first. Because unlike the GUI version, you cannot directly run a command line application by double clicking its icon. This article takes Windows XP as an example, and explains how to open the command prompt in XP: first please click Start. Then, click Run on the Start menu. After that, please type cmd in the Run dialog box. And at last press Enter.

When the command prompt window pops out, you should type a command line in it. This is the second step you need to take. To type a command line to meet your requirements, you’d better take a look at the following usage, option and examples first.

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

Option : -t <title>        : "title" for PDF file

Examples:

  • "C:\docPrint Pro v5.0\doc2pdf.exe" -t "setdpft" –i D:\test.xls -o E:\out.pdf
  • "C:\docPrint Pro v5.0\doc2pdf.exe" -t "setpdft" –i D:\*.xls -o E:\*.pdf

The first example can set PDF title and convert a single Excel file to a PDF file, and the second example can set PDF titles and convert multiple Excel files to PDF files in batch. When you type a command line, please make sure the combination –i must precede the input path and the combination –o must precede the output path. In addition, if the words in a path are separated by spaces, please use quotation marks to enclose it just like "C:\docPrint Pro v5.0\doc2pdf.exe". Don’t forget to press Enter after typing a command line.

Now, do you know which two steps you should take to convert Excel to PDF and set PDF title via command line? Do you think VeryPDF Document Converter is easy to use? If you have any question, please let know. Thanks for reading.

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!