We need EPS, Adobe SVG, and PDF in/out support. We really need to import/export the following formats:
- Adobe SVG (must be interoperable!)
- Adobe Illustrator File Formats (Newer ones are PDF 1.4 documents)
To really be considered a successful application, we must take these file formats in and be able to save them out.
Other useful formats might be:
- Enhanced Windows Metafile (emf)
- Computer Graphics Metafile (cgm)
Existing Conversion Tools
Scripts and other applications that provide conversions, and might be useful to investigate as solutions to this dilemma.
- PS to other formats page
- Cenon has importers/exporters and source to match
- EPD to SVG
- SVG to SWF - for Flash
- font to SVG
- libsvgtoswf - Another Flash converter
- SGI Irix FTI vector icons to SVG
- Graphviz - popular text format for describing graphs. Can export SVG.
- pstoedit - converts Postscript into SVG (and other editablke formats
OpenOffice can export *to* SVG, although it does not import SVG. Possibly a filter could be created for Inkscape from their code, to enable at least being able to load OODraw's SXD file format into Inkscape.
Browsing through OO's sourcecode, this appears to be the parts that do the SVG writing:
SOTranscoder.java svgfilter.cxx svgimport.cxx svgwriter.hxx exports.map svgfilter.hxx svgscript.hxx makefile.mk svgfontexport.cxx svguno.cxx svgexport.cxx svgfontexport.hxx svgwriter.cxx
You can download the OpenOffice sourcecode from one of the OpenOffice mirrors. E.g.:
There is a webpage with some info about a new SVG exporter, here:
This includes a java sample test, that could perhaps be used as a starting point for a filter...
Perhaps that could be recast into C++ so that a compiled filter could be made of it.
The page also includes a binary svgexport.so package. Perhaps if this is fairly stand-alone, a filter program could be written in C++ based on the above java testcode that links against svgexport.so and provides its functionality on the commandline as a sxd2svg tool.
nm reports that it provides the following functions:
00005f9c T component_getFactory 00005d28 T component_getImplementationEnvironment 00005d44 T component_writeInfo
ldd reports that this .so has the following dependency requirements:
linux-gate.so.1 => (0xffffe000) libsvx645li.so => not found libxo645li.so => not found libgo645li.so => not found libj645li_g.so => not found libvcl645li.so => not found libutl645li.so => not found libtl645li.so => not found libcomphelp3gcc3.so => not found libcppuhelpergcc3.so.3 => not found libcppu.so.3 => not found libsal.so.3 => not found libdl.so.2 => /lib/libdl.so.2 (0x4003d000) libpthread.so.0 => /lib/libpthread.so.0 (0x40040000) libm.so.6 => /lib/libm.so.6 (0x40091000) libstlport_gcc.so => not found libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x400b4000) libc.so.6 => /lib/libc.so.6 (0x4017d000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x40291000)