EMF or Windows Metafile is a graphics file format on Microsoft Windows systems. It was originally designed to be a portable format between applications and may contain both vector graphics and bitmap components. It is a Windows vector graphics format which can be recognized by many image-editing applications. RTF or Rich Text Format is a file format that can store information including text style, size, and color. RTF format is a universal format, which can be read by nearly all word processors.
After you install this software application in the computer, please go on reading and follow the steps below to rotate the page and convert RTF to EMF via command line.
Step 1: Open the command prompt window
It will only require four steps to open the command prompt window: Click “Start” in the lower left corner of the screen; > then, click “Run” on the menu to open the “Run” dialog box.> Enter “cmd” in the “Run” dialog box;> and then click “OK” to open the command prompt window.
Step 2: Type a command line
In a word, the command line you are going to type should consist of the command for rotating the page and the directories of three files including the executable file, the input file and the output file.
htmltools -rotate <int> <RTF file> <EMF file>
Look at the following example, this command line includes the command and the three files which are represented by the directories.
D:\htmltools\htmltools.exe -rotate 90 C:\in\*.rtf D:\out\*.emf
- D:\htmltools\htmltools.exe ---- the directory of the executable file. In the example, it stands for the executable file htmltools.exe located in the folder htmltools on disk D.
- -rotate 90 ---- the command that can be used to rotate the page clockwise through an angle of 90 degree. The number 90 can be substituted by 180 or 270.
- C:\in\*.rtf ---- the directory of the input files. The wildcard * represents all the input RTF files in the folder in on disk C. The file extension specifies RTF as the input format.
- D:\out\*.emf---- the directory of output files. This directory indicates that all the result files should be placed in the folder out on disk D. The file extension specifies EMF as the output format.
The above command line can be used to batch convert RTF to EMF. If you want to convert RTF to EMF files in your computer, you can replace all the directories in the example with the directories of the files on your computer. If you want to convert only one file from RTF to EMF, you can replace the wildcard * with the name of that file. You can also change the angle degree 90 to either 180 or 270.
Step 3: Press “Enter”
Press the key “Enter”. Your computer will prompt to convert RTF to EMF. The conversion time will be displayed on the command prompt window. If you want to get more information about how to convert RTF to other files, please read related articles at the knowledge base of VeryPDF. If you are interested in other products, please visit the home page of VeryPDF.