How to set the page height while converting htm to pdf?

You can set the page height when converting htm to pdf in a command line application.You can choose HTML Converter Command Line as your converting tool.There are two kinds of HTML Converter applications, one is a graphical user interface (GUI) application and the other is a command-line application. You can download the GUI application at http://www.verypdf.com/htmltools/winhtmltools.exe and download command line application at http://www.verypdf.com/htmltools/htmltools.zip.

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 convert htm to pdf file.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.

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 HTML Converter (htmltools) 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!