How to rotate the page while converting emf to raster picture?

What is a raster picture?

The raster graphics picture, or a bitmap, is a data structure representing a generally rectangular grid of pixels, or points of color, viewable via a monitor, paper, or other display medium. Raster images are stored in image files with varying formats. Raster graphics are resolution dependent. They cannot scale up to an arbitrary resolution without loss of apparent quality.The raster image takes a wide variety of formats, including the familiar .gif, .jpg, and .bmp.

How to rotate the page when converting emf to raster picture?

In this article,we take the bmp format as the example of raster picture.The software used here is HTML Converter Command Line which 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. HTML Converter Command Line also allows you to convert web pages to PDF, PS (postscript), WMF, EMF vector formats.You can download HTML Converter Command Line at http://www.verypdf.com/htmltools/htmltools.zip. From the download website we can find that the software is a zip file and you should unzip it in your computer.

Here are the steps for you to rotate the page when converting emf to raster picture.

1.Register HTML Converter Command Line in cmd.exe dialog box to release all the functions or some functions will be limited.You should run cmd.exe program by clicking “start”—“run” and input “cmd” in “open” edit box of the popup dialog box,then click “OK” button.Or press “Windows”+ “R” to open “Run” dialog box.

In cmd.exe prompt dialog box you should change the current directory to installation directory of HTML Converter Command Line by DOS command “cd” .You can input “cd” and leave a space,then copy the directory you need and hit “Enter” button on the keyboard.

Next you should input the register code which you get when purchasing HTML Converter Command Line online and end with “Enter” button.

2.Input command line in cmd.exe dialog box.If the screen is a little disordered,you can clear the screen by the command “cls”.The command line is made up with called program,parameter,source file and target file.Please see the following template about the conversion of emf to raster picture.

htmltools.exe -rotate<int> “input.emf” output.bmp

where

(1)htmltools.exe  is the called program which locates in the folder of HTML Converter Command Line.

(2)-rotate<int>  is the rotation angle of source file.You can set the value as 90,180 and 270.

(3)“input.emf”  is the source file.

(4)output.bmp  is the target file.

There is an example which can explain the template better.

"C:\Documents and Settings\admin\Local Settings\Temp\htmltools\htmltools.exe" -rotate 180 "C:\Documents and Settings\admin\Desktop\New Folder\test0001.emf" test.bmp

where

(1)"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.

(2)-rotate 180  means the source file will rotate clockwise by 180°.

(3)"C:\Documents and Settings\admin\Desktop\New Folder\test0001.emf"  is the path of source file,which can also be dragged.

(4)test.bmp  is the name of target file,including file name and extension name.

3.Find your target file in the current directory if you don’t specify the path for it in the command line like the example.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Random Posts

This entry was posted in HTML Converter (htmltools). 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!