When you need to convert EMF to SVG by command line, this article may help you. Here I will introduce one method of converting EMF to SVG and specify margins in four directions. The tool I used in this method is VeryDOC EMF to SVG Command Line Converter, which also can be used to convert EMF and WMF to other image file formats like BMP, GIF, JPEG, PNG, TGA, PCX, PNM, RAS, PBM, TIFF etc.
Some Knowledge About SVG
Here I will share some knowledge about SVG file format, hoping it will be helpful for you in future use of this software. SVG is short for Scalable Vector Graphics which is an XML-based vector image format for two-dimensional graphics that has support for interactivity and animation.
Compare with other image file formats, SVG can be edited and modified. Now this file format is widely used on website design. SVG is text-based and when you use a graphics editor to produce an image, the program takes a picture of your completed artwork. If you use SVG, situation will go different. SVG can be edited by some applications like editing image by text.
Convert EMF to SVG
- Please download EMF to SVG Command Line Converter. Once downloading finishes, there will be a zip file in downloading folder. Please extract it to some folder then you can check elements in it.
- When you use this software, please refer to the usage and examples.
Usage: emf2pdf [options] <emf-file> [<out-file>]
- When you need to convert EMF to SVG and specify margins, please refer to the following command line template.
emf2vec.exe -margin 100x100x100x100 C:\in.emf C:\out.svg
Parameter Related - Meanwhile, you can also specify width and height to control output size.
emf2vec.exe -width 612 -height 792 C:\in.emf C:\out.svg
margin <string> : Set page margin to output file
-margin 10 : Set margin to 10pt to left
-margin 10x10 : Set margin to 10pt to left,top
-margin 10x10x10 : Set margin to 10pt to left,top,right
-margin 10x10x10x10 : Set margin to 10pt to left,top,right,bottom
By the above parameters, you can specify output svg margins in four directions.
-width <int> : Set page width to output file
-height <int> : Set page height to output file
By this software, you can also convert EMF file other file formats by the following examples.
emf2vec.exe C:\in.emf C:\out.pdf
emf2vec.exe C:\in.wmf C:\out.pdf
emf2vec.exe C:\in.emf C:\out.emf
emf2vec.exe C:\in.emf C:\out.wmf
emf2vec.exe C:\in.emf C:\out.ps
emf2vec.exe C:\in.emf C:\out.eps
If you need to know more examples, please visit readme.txt file. During the using, if you have any question, please contact us as soon as possible.