EMF or Enhanced Metafile is a spool file format which can be used in printing by the Windows operating system. GIF or Graphical Interchange Format is a bitmap image format that is widely used on the World Wide Web due to its wide support and portability. A GIF image file may contain up to 256 indexed colors. The color limitation makes the GIF format unsuitable for reproducing color photographs, but it is well-suited for simpler images like graphics or logos with solid areas of color.
VeryPDF HTML Converter Command Lineis the right solution to your problem. Besides with ability to convert EMF to GIF, VeryPDF HTML Converter Command Line can also be used to convert EMF to PDF, PS (Postscript), TIF, TIFF,etc. Moreover, because it is unnecessary for you to open the interface, select output options, compared with the GUI (graphical user interface) version, VeryPDF HTML Converter Command Line is more effective.
When you use VeryPDF HTML Converter Command Line toand convert EMF to GIF via , it will take three steps as following.
1. Run the command prompt window
To run the command prompt window only requires four steps, which are also illustrated in the picture below.
- Click “Start”;
- Click “Run” on the home menu;
- Enter “cmd” in the “Run” dialog box;
- Click “OK”.
The following is the black and white command prompt window.
2. Type a
When you enter a command line, you should comply with the following two rules:
Rule 1: The command line should be composed of four factors:
Htmltools -rotate <int> < EMF file> <GIF file>
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 remember to leave a space between these factors.
- htmltools ---- the executable file
- -rotate <int> ---- the command which can be used to rotate pages. int means integer and. Hence you should type the command first, leave a space, and then type an integer. As for this command, the integer can only be 90,180, and 270.
- < EMF file> ---- the input EMF file(s)
- <GIF file> ---- the output GIF file(s)
Rule 2: The directories rather than only the names of the files should appear in the command line.
If only the names appear in the command line, the computer cannot recognize which are the files that are referring to. In contrast, the directories can clearly indicate which these files are. However, when all the files are placed on one disk, you may not need to enter all the directories. But this article won’t focus on this issue. I will write another article to account for it later. If you are interested, please visit my blog.
Example: The following is a typical example which consists of all the mentioned four factors; besides, the directories are used to represent the files. This command line can be used to batch convert EMF to GIF and.
D:\htmltools\htmltools.exe -rotate 90 C:\in\*.emf D:\out\*.gif
- 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 for rotating the page clockwise. 180 can be used to 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\*.gif---- the directory of output files. The file extension specifies GIF 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:
Now, it your turn to enter a command line in the command prompt window. You can replace the directories in the example with the directories of the executable file, the input files and the output files in your computer.
3. Hit “Enter”
Hit “Enter” on the keyboard. The computer will immediately convert EMF to GIF. If you are interested in other products of VeryPDF, please visit the home page of VeryPDF.