Convert Office to PDF and set PDF subject by command line

If you want to convert documents created by Office to PDF and set PDF subject by command line, VeryPDF Document Converter (docPrint Pro) is a smart choice. As stand-alone software, Document Converter requires neither Office applications nor Adobe products on your computer. As a professional converter, Document Converter can convert all sorts of Office files to PDF.

Document Converter provides four applications. This article only focuses on one of them: docPrint Pro Command Prompt. Please download Document Converter, and install it on the computer. Then you can find docPrint Pro Command Prompt which in fact is the executable file doc2pdf.exe in the installation folder. The rest part takes two steps to convert Office to PDF and set PDF subject by command line:

Firstly, please open the command prompt window, where you can call the command line application from. Please do as follows:

  • Open the Start menu by clicking Start
  • Click All Programs.
  • Click Accessories.
  • Click Command Prompt.

Secondly, please base on the usage of following syntax and type a command line:

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

The option you can use to set PDF subject is -j <subject>. The option parameter -j requires a character string as its arguments. Please remember to use a pair of single or double quotation marks to enclose the character string. Please refer to the following examples:

  • doc2pdf.exe -j “Culture” -i D:\*.xls -o E:\*.pdf
  • doc2pdf.exe -j “Art, music, and math” -i D:\s.ppt -o E:\t.pdf
  • doc2pdf.exe -j “History” -i D:\in.doc -o E:\out.pdf

Please type a command line on the command prompt window and press Enter. The computer will prompt to convert Office to PDF and set PDF subject. In a couple of seconds, after the conversion is finished, the output path, conversion time and other information will be displayed on the command prompt window. For more information about docPrint Pro Command Prompt, please visit:

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!