Set PDF subject and convert HTM to PDF

If you want to set PDF subject and convert HTM to PDF, VeryPDF HTML Converter is the right solution to your problem. Actually, VeryPDF HTML Converter provides two ways to set PDF subject and convert HTM to PDF: via command line and via GUI (graphical user interface).To some users, the GUI version of VeryPDF HTML Converter may be friendlier. However, to the others, the command line application of VeryPDF HTML Converter turns out to be a time-saver. This article aims to show you how to take four steps to set PDF subject and convert HTM to PDF via command line. We should begin with installing VeryPDF HTML Converter Command Line.

1. Download VeryPDF HTML Converter Command Line

2. Run the command prompt window

  • Click “Start” in the lower-left corner of the screen;
  • Select “Run” from the menu to open the “Run” dialog box;
  • Enter “cmd” in the “Run” dialog box.
  • Click “OK” to run the command prompt window.

run the command line prompt window---the second step to set pdf subject and  convert htm to pdf

3. Enter a command line

htmltools.exe -subject <string> <input file> <output file>

According the command line syntax above, the command line should be composed of four items. First, you should enter the directory of the command line application of VeryPDF HTML Converter. Second, you should use –subject to define the PDF subject of the result file. The value can be a string. For example, if you want to define the PDF subject as “set pdf subject”, you should enter –subject “set pdf subject”. Third, enter the directory of the input file and the directory of the output file. Fourth, the angle brackets are used to enclose essential contents. string refers to character string, which should be marked by quotation marks “” when appears in a command line. For example, the following command line can be used to set “set pdf subject” as the PDF subject and convert HTM to PDF.

D:\htmltools\htmltools.exe -subject "set pdf subject" D:\in.htm C:\out.pdf

  • D:\htmltools\htmltools.exe ----can be used to call the command line application located in the folder called htmltools on disk D.
  • -subject "set pdf subject" ---- can be used to define "set pdf subject" (without quotation marks) as the PDF subject.
  • D:\in.htm ---- the directory of the input file. It represents the HTM file named in on disk D.
  • C:\out.pdf ---- specifies PDF as the output format, out as the filename and disk C as the location to store the PDF file.

4. Press “Enter”

Press the “Enter” key. And the computer will prompt to convert HTM to PDF. Meanwhile, you can view the conversion information in the command prompt window such as the conversion time. Once you see “result =OK” displayed in the command prompt window, you can check the PDF subject of the PDF file.

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 VeryPDF Blog 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!