Convert XLS to PDF and set PDF subject via command line

According to my knowledge, you can take the following three steps to convert XLS to PDF and set PDF subject via command line.

First, you should download a command line application which has the capacity to XLS to PDF and allows you to set PDF subject. VeryPDF Document Converter (docPrint Pro) is a good choice. It provides a command line version and is all-to-all document converter. Furthermore, it supports output setting including PDF subject setting. It can absolutely help you solve your problem. You can download it by clicking VeryPDF Document Converter and use it free for a lot of times.

Second, you need to open the command prompt window before you use the command line application. Assuming you are in Windows 7, please do as follows: click the Start button on the desktop, type cmd in the search area on the Start menu, and at last press Enter. If you are a Vista user, you can also use the same way to open the command prompt window.

Third, type a command line and press Enter. The command line application we are going to use is the executable file named doc2pdf in the installation directory. If you want to view the usage, please type the directory in the command prompt window and then press Enter. The usage and the option that can be use d to set PDF subject as shown below will be displayed in the command prompt window.

  • Usage:doc2pdf [options] <-i Document Files> [-o Output]
  • Options: -j <subject>  : set PDF subject

The following two examples can both be used to set PDF subject and convert XLS to PDF. The first one is for converting a single document, and the second one is for batch conversion. After typing a proper command line, please press Enter.

  • Examples:
    • doc2pdf -j “how to convert xls to pdf” -i C:\input.xls -o D:\output.pdf
    • doc2pdf -j “how to convert xls to pdf” -i C:\*.xls -o D:\*.pdf

I hope this method can help you quickly convert XLS to PDF and set PDF subject. If you are not familiar with command lines, please try to use VeryPDF Document Converter (docPrint Pro) to set more options when converting documents. VeryPDF Document Converter (docPrint Pro) allows you to use it free for a lot of times.

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

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!