How to rotate the page when converting EMF to PNG?

EMF or Enhanced Metafile is a spool file format which can be used in printing by the Windows operating system. PNG or Portable Network Graphic Image file can be used to store a bitmap of indexed colors under a lossless compression. PNG is commonly used to store graphics for Web images. PNG allows the image colors to fade from opaque to transparent and it is now supported by most Web browser.

By means of VeryPDF HTML Converter Command Line, you can effectively and accurately convert EMF to PNG. VeryPDF HTML Converter Command Line also allows you to rotate the page while you are converting EMF to PNG in an easy way. The following will show you how to do it with three steps.

1. Run the command prompt window

The most popular way to run the command prompt window is

  • Click “Start”;
  • Click “Run” on the home menu;
  • Enter “cmd” in the “Run” dialog box;
  • Click “OK”.

. Run the command prompt window

The following is the black and white command prompt window.

command prompt window

2. Type a command line

When you are entering a command line, you should comply with the following two rules:

Rule 1: The command line should be made up of four factors:

  • Htmltools ---- the executable file
  • -rotate <int> ---- the command which can be used to rotate pages. int means integer and. As for this command, the integer can only be 90,180, and 270.
  • < EMF file> ---- the input EMF file(s)
  • <PNG file> ---- the output PNG file(s)

The angle brackets <> are usually used to mark the essential content. That is to say, you cannot leave out the contents in the angle brackets. Moreover, please make sure there is a space between these factors.

Rule 2: The directories rather than only the names of the files should appear in the command line.

Normally, only the names cannot be recognized by the computer. But the directories can help the computer find these files.

For example: The following is a perfect example what command line should it be. This command line consists of all the mentioned four factors; besides, the directories are used to represent the files.

D:\htmltools\htmltools.exe -rotate 90 C:\in\*.emf D:\out\*.png

  • D:\htmltools\htmltools.exe ---- the directory of the executable file htmltools.exe. The executable file is always placed in the folder htmltools after you decompressed the compressed file. In the example, the directory represents the executable file which is in the folder htmltools on disk D.
  • -rotate 90 ---- the command which can be used to rotate the page clockwise. 180 can be used to rotate the page up-side-down. And 270 can be used to rotate counterclockwise.
  • C:\in\*.emf ---- the directory of the input files. The wildcard * represents all the input EMF files in the folder in on disk C.
  • D:\out\*.png the directory of output files. The file extension specifies PNG as the output format. The whole directory indicates that all the result files should be placed in the folder out on disk D.

The following is the command prompt with the command line:

the command prompt with the command line

Now, it your turn to enter a command line in the command prompt window. You can replace the directories in the example respectively with the directories of the executable file, the input files and the output files in your computer.

3. Hit “Enter”

After you enter the proper command line, please hit “Enter” on the keyboard. The computer will prompt to convert EMF to PNG. If you are interested in other products of VeryPDF, please visit the home page of VeryPDF.

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!