Debian Codegraph @

freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMF2SVG.java

raw
1 // Copyright FreeHEP 2006-2007.
2 package org.freehep.graphicsio.emf;
3
4 import org.freehep.graphicsio.ImageConstants;
5
6 /**
7 * simple class that uses EMFConverter to convert emf to svg.
8 * Uses {@link org.freehep.graphicsio.emf.EMFConverter#export(String, String, String)}
9 * with type = SVG.
10 *
11 * @author Steffen Greiffenberg
12 * @version $Id: freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/EMF2SVG.java 10ec7516e3ce 2007/02/06 18:42:34 duns $
13 */
14 public class EMF2SVG extends EMFConverter {
15
16 /**
17 * starts the export
18 *
19 * @param args args[0] source file name, args[1] target file (can be empty)
20 */
21 public static void main(String[] args) {
22 if (args == null || args.length == 0 || args[0] == null || args[0].length() == 0) {
23 System.out.println("usage: EMF2SVG imput.emf [output.svg]");
24 return;
25 }
26
27 export(ImageConstants.SVG, args[0], args.length > 1 ? args[1] : null);
28 }
29 }