How to set the page width while converting html to pdf?

-width <int> : Set page width to PDF file

-height <int> : Set page height to PDF file

-producer <string> : Set 'producer' to PDF file

-creator <string> : Set 'creator' to PDF file

-subject <string> : Set 'subject' to PDF file

-title <string> : Set 'title' to PDF file

-author <string> : Set 'author' to PDF file

-keywords <string> : Set 'keywords' to PDF file

-openpwd <string> : Set 'open password' to PDF file

-ownerpwd <string> : Set 'owner password' to PDF file

-keylen <int> : Key length (40 or 128 bit)

All the commands above are the settings when you convert html to pdf file with the aid of HTML Converter Command Line.But how to add the settings into the command line?

First you should know what is HTML Converter Command Line and how to download the software.

HTML Converter Command Line is a powerful HTML conversion product. It allows you to create previews or thumbnails of web pages in a number of different formats, such as TIF, TIFF, JPG, JPEG, GIF, PNG, BMP, PCX, TGA, JP2 (JPEG2000), PNM, etc. It also allows you to convert web pages to PDF, PS (postscript), WMF, EMF vector formats.HTML Converter Command Line can be called from within ASP, VB, VC, Delphi, BCB, Java, .NET and COM+ etc. program languages. It uses advanced techniques to allow efficient asynchronous multithreaded operations.

The download website of HTML Converter Command Line is You should only download and unzip it to a location in your computer.But if you want to use HTML Converter Command Line without any limitations,you should register it in cmd.exe program under the installation directory of HTML Converter Command Line.In addition,if you want to know more functions about HTML Converter Command Line ,please visit

Please read the following contents carefully and you will get some important information.

Start the cmd.exe program by clicking “start”—“run” and input “cmd” in open edit box in the popup dialog box.Then click “OK” button.Of course you can press “Windows”+ “R” on the keyboard at the same time to quick enter cmd.exe program.

Then you can input command line to convert html to pdf file and set the page width for pdf file.Just like

"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" -height 30 "" 01.pdf

The commands above refer to the following command line structure which contain called program,source file and target file.

htmltools.exe –width value output.pdf

"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe"  stands for the path of called program—htmltools.exe which is the executable file in HTML Converter Command Line.

-height 30   is the value of page height which you can set according to your requirement. stands for the source file.

01.pdf  is the name of target file.You can not input the information about target file because the software will convert source file to pdf file by default.

Then you can find the target file in current directory.If you want to locate the target file in some other location of your computer,you can specify the path in command line.

There are many other files about HTML Converter Command Line at the website and you can know more functions about HTML Converter Command Line by reading them.

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!