HTM is a web file format. As far as I know, the best web file converter is VeryPDF HTML Converter Command Line, which can help you perfectly and accurately render the original web file to PDF file. It is a professional web file converter, and has the capacity to convert HTM to PDF and edit PDF author via a single command line in only two steps. In addition, you don’t need to open the original file, neither do you need to install any Adobe product like Adobe Acrobat.
The following part will show you how to convert HTM to PDF and edit PDF author via command line.
Firstly, install VeryPDF HTML Converter Command Line. You can click VeryPDF HTML Converter Command Line to free download this command line application. After you install it on your computer, please proceed to the next step.
Secondly, to open the command prompt window, you should click Start, > click Run to open the Run dialog box, > type cmd in the Run dialog box, > click OK. Then, the command prompt window will appear on the screen.
Thirdly, type a command line and press Enter on the keyboard. Take a look at the following pattern, which may help you understand what should be included in a command line when you want to convert HTM to PDF and edit PDF author: htmltools [-author <string>] <HTM file> [<PDF file>].
For instance, the command line below can be used to convert HTM to PDF and define the PDF author as htm2pdf :
D:\htmltools\htmltools.exe -author " htm2pdf " c:\in.htm d:\out.pdf
- D:\htmltools\htmltools.exe represents the executable file. The executable file is usually placed in the folder named htmltools. In this case, this folder is on disk D.
- -author " htm2pdf " is the option that can be used to edit PDF author. In this example, the PDF file is specified as htm2pdf.
- c:\in.htm represents the input HTM file, which is on disk C.
- d:\out.pdf represents the output PDF files, which is on disk D.
After you type a command line, don’t forget to press Enter on your keyboard. The computer can quickly convert HTM to PDF and edit PDF author. When you see “result=OK” in the command prompt window, that means the conversion is done. If you want to convert document in batch, you can use wildcard * to represent the files. For instance, c:\*.htm can represent all the HTM files on disk C, and the output files which should be exported to disk d should be represented by d:\*.pdf.
In case you want to buy VeryPDF HTML Converter Command Line, please click Purchase.