How to set both the page width and height while converting html to pdf?

Maybe your boss asks you to convert html to pdf file in a very short time and set both the page width and height.unfortunately,you have never done such kind of job before and don’t know which software to use,how to operate.

First,you should choose a software which save time,money and energy.HTML Converter Command Line will be a suitable software to meet all your needs.HTML Converter Command Line is a very powerful HTML conversion software which 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 application 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.

If you want to download HTML Converter command line,please visit https://www.verypdf.com/htmltools/htmltools.zip.

Please follow the steps below to convert html to pdf and you will finish your job in an amazing speed.

Step1.Launch cmd.exe program

You can click “start”—“run” to pop up “Run” dialog box,please see Figure1.Then input “cmd” in “open” edit box and click “OK” button.Please see Figure2.

image

                                       Figure1.

image

                                       Figure2.

You can also press the hot key “Windows”+ “R” to open the dialog showed in Figure2.

Step2.Input command line

The command line includes called program,parameter,source file and target file.You can input the DOS commands in cmd.exe dialog box refer to the following basic command line structure.

htmltools.exe –width value –height value “www.verypdf.com” output.pdf

htmltools.exe  is the called program in the conversion of html to pdf.It is also the executable file in HTML Converter Command Line.If you download the software to your computer and unzip the file,you will see the executable file in the folder.

–width value –height value  are the parameters of pdf file.

“www.verypdf.com”  is the source file.

output.pdf  is the target file.

Please see Figure3 and there is the whole command line about the conversion of html to pdf file.

image

                                                                             Figure3.

"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" -width 20 -height 15 "www.verypdf.com" "C:\Documents and Settings\admin\Desktop\New Folder\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.

-width 20 -height 15 are the values of width and height of pdf file,which you can set by yourself.

"www.verypdf.com"   is the URL of some webpage.If you run the conversion by pressing “Enter” button on the keyboard,htmltools.exe will search for the webpage and download the information on it automatically.

"C:\Documents and Settings\admin\Desktop\New Folder\verypdf.pdf"  is the path and name of target file.You can not define the target file because HTML Converter Command Line will convert the source file to pdf file by default.

Step3.Find the target file

You can find the target file in C:\Documents and Settings\admin\Desktop\New Folder,please see Figure4.

image

                                                                       Figure4.

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!