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

“htmltools.exe” –width value “input.wmf” output.pdf

The one above is the command line to convert wmf to pdf and set the page width for pdf file.

Someone will ask what is htmltools.exe in the command line?In fact,it is the called program in the conversion of wmf to pdf.It is also the executable of one powerful software called HTML Converter command line.HTML Converter command line is an very excellent 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.After installing HTML Converter command line in your computer,you will see htmltools.exe file in the folder.

If you find some functions are limited when you use HTML Converter command line,you should register it in cmd.exe program with  the register code which you get when buying the software.Please run cmd.exe program by clicking “start”—“run”,please see Figure1.Then input “cmd” in “open” edit box and click “OK” button.Please see Figure2.

image

                                      Figure1.

image

                                      Figure2.

Change the current directory to installation directory of HTML Converter command line with command “cd” which means change directory.End with “Enter” button.

Please don’t close the dialog box.You can go on inputting the command line in the dialog to convert wmf to pdf file.If the dialog is disordered,you can use the command “cls” to clear screen.Please see Figure3.

image

                                                                         Figure3.

The whole commands are "C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" -width 50 "C:\Program Files\docPrint Pro v5.0\blank.wmf" blank.pdf

"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe"  is the path of htmltools.exe.You can drag the file into cmd.exe dialog box directly.

-width 50  is the page width of new created pdf file.The value can be set according to your need.

"C:\Program Files\docPrint Pro v5.0\blank.wmf"  is the path of source file.You can input the path or drag the file in cmd.exe dialog box.

blank.pdf  is the name of target file.If you forget to define the information about target file,don’t worry.HTML Converter command line can convert any type of source file to pdf file by default.

After that,you can find the target file in some location of your computer.The location can be set in command line.If not,the file will be saved 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

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!