Most of users are probably accustomed to editing images one at a time with a GUI with such programs as gimp or Photoshop. However, a GUI is not always convenient. Suppose you want to process an image dynamically from a web script or you want to apply the same operations to many images or repeat a specific operation at different times to the same or different image. In these cases, the command-line image processing utility is appropriate.
There are four parts in the command line to convertfile.They are called program,parameter,source file and target file.If you don’t know how to convert htm to pdf and set the page height in a command line,this article will give you a clear guide.
Step1.Have the cmd.exe program launch
There are two ways to run cmd.exe program.
1.The regular one:Click “start”—“run” and input “cmd” in “open” edit box of the popup dialog box.Then click “OK” button.
2.The quick one:Use the hot key “Windows”+ “R” to realize the same function.
Step2.Have the command line inputted in cmd.exe dialog box.
There is a basic structure of command line as follow:
htmltools.exe –height value “www.verypdf.com” output.pdf
htmltools.exe is the called program in the conversion of htm to pdf.It is also the executable file in the software HTML Converter Command Line.
–height value is the parameter about page height of pdf file.
“www.verypdf.com” can be seen as source file.
output.pdf is the target file.
There is an specific example to explain the command line above.
"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" -height 20 "www.verypdf.com" verypdf.pdf
"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" is the path of htmltools.exe which can be dragged into cmd.exe dialog box directly.
-height 20 The value of page height can be set freely.
“www.verypdf.com” is the URL of some webpage which you should input in cmd.exe dialog.
verypdf.pdf is the name of target file.
Please don’t forget to add the extension name of the target file.You can not name the target file,either.Because HTML Converter Command Line can convert source file to pdf file by default.
Step3.Find the target file
You can find the the target file in the location you have just set.If you didn’t specify the path of the file,you’ll have to browse the target file in current directory.