<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.inkscape.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Alberto</id>
	<title>Inkscape Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.inkscape.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Alberto"/>
	<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/Special:Contributions/Alberto"/>
	<updated>2026-04-06T17:39:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki.inkscape.org/wiki/index.php?title=File_types&amp;diff=16809</id>
		<title>File types</title>
		<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/index.php?title=File_types&amp;diff=16809"/>
		<updated>2007-11-18T16:24:39Z</updated>

		<summary type="html">&lt;p&gt;Alberto: /* Existing Conversion Tools */ : Some links are broken.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We need EPS, Adobe SVG, and PDF in/out support. We really need to import/export the following formats:&lt;br /&gt;
&lt;br /&gt;
* EPS&lt;br /&gt;
* PDF&lt;br /&gt;
* Adobe SVG (must be interoperable!)&lt;br /&gt;
* Postscript&lt;br /&gt;
* Adobe Illustrator File Formats (Newer ones are PDF 1.4 documents)&lt;br /&gt;
&lt;br /&gt;
To really be considered a successful application, we must take these file formats in and be able to save them out.&lt;br /&gt;
&lt;br /&gt;
Other useful formats might be:&lt;br /&gt;
&lt;br /&gt;
* Enhanced Windows Metafile (emf)&lt;br /&gt;
* Windows Metafile (wmf) (there are a lot of clipart packages in this format)&lt;br /&gt;
* Computer Graphics Metafile (cgm)&lt;br /&gt;
* [http://lprng.sourceforge.net/DISTRIB/RESOURCES/HPGL_short_summary.html HP-GL2 ](plt)&lt;br /&gt;
* Embroidery file formats (Ksm, Melco, PCS, PES, Tajima,...) to export drawings on textiles. Lot of clips arts are already available in embroidery file formats. Some specifications are available on file formats dedicated web sites.&lt;br /&gt;
* CorelDRAW files (cdr). Their UI is quite similar to Inkscape's (owing to inspiration of both by Xara's ancient Artworks for the Acorn Archimedes); it suggests a path of least resistance for those seeking to convert.&lt;br /&gt;
* The newer Macromedia Freehand formats: .fh9, .fh10, and .fh11 (by file extension in Windows). At least the ability to read basic vectors, fill color, and stroke width (while possibly ignoring page layout for compatibility). Versions older than Freehand 8 might also be useful to revive those ancient drawings one made using the original Apple Macintoshes (prior to His Steveness' firing and subsequent rehiring).&lt;br /&gt;
&lt;br /&gt;
== Existing Conversion Tools ==&lt;br /&gt;
&lt;br /&gt;
Scripts and other applications that provide conversions, and might be useful to investigate as solutions to this dilemma.&lt;br /&gt;
&lt;br /&gt;
* [http://www.solidcode.net/pdf2svg/ pdf2svg] (broken link)&lt;br /&gt;
* [http://jeff.cs.mcgill.ca/~luc/PSto.html PS to other formats page] (link broken)&lt;br /&gt;
* [http://www.cenon.info/frame_gb.html Cenon has importers/exporters and source to match]&lt;br /&gt;
* [http://freshmeat.net/projects/epd2svg/ EPD to SVG]&lt;br /&gt;
* [http://freshmeat.net/projects/svg2swf/ SVG to SWF] - for Flash&lt;br /&gt;
* [http://freshmeat.net/projects/font2svg/ font to SVG]&lt;br /&gt;
* [http://freshmeat.net/projects/libsvgtoswf/ libsvgtoswf] - Another Flash converter&lt;br /&gt;
* [http://freshmeat.net/projects/fti2svg.pl/ SGI Irix FTI vector icons to SVG]&lt;br /&gt;
* [http://www.graphviz.org/ Graphviz] - popular text format for describing graphs. Can export SVG.&lt;br /&gt;
* [http://www.pstoedit.net/pstoedit pstoedit] - converts Postscript into SVG (and other editablke formats&lt;br /&gt;
* [http://www.wizards.de/~frank/pstill.html PStill] converts Postscript into PDF&lt;br /&gt;
* [http://homepage.ntlworld.com/r.inglis/PH/Rshi/svg/ ps2svg.ps] converts Postscript into SVG (free) (broken link)&lt;br /&gt;
* [http://www.gnu.org/software/hp2xx/ hp2xx] converts HPGL files into various formats, including SVG&lt;br /&gt;
&lt;br /&gt;
== OpenOffice OODraw-to-SVG ==&lt;br /&gt;
&lt;br /&gt;
OpenOffice can export '''to''' SVG, and import SVG using the following plug-in&lt;br /&gt;
&lt;br /&gt;
http://www.ipd.uni-karlsruhe.de/~hauma/svg-import/&lt;br /&gt;
  &lt;br /&gt;
Possibly a filter could be created for Inkscape from their code,&lt;br /&gt;
to enable at least being able to load OODraw's SXD file format into&lt;br /&gt;
Inkscape.  &lt;br /&gt;
&lt;br /&gt;
Workaround to use SVG-files created with Inkscape in Openoffice.org.&lt;br /&gt;
Download Skencil from www.skencil.org (formely sketch). It's a &lt;br /&gt;
vector drawing application written in Python. It can import SVG&lt;br /&gt;
and save as Computer Graphics Metafile (CGM). You can use the skconvert&lt;br /&gt;
commandline utility to batchconvert a number of files. Openoffice is&lt;br /&gt;
able to import CGM. Not all object types are supported and you might&lt;br /&gt;
get wrong colors, but the path look ok. I wrote a small article about&lt;br /&gt;
this: http://www.tokonoma.de/software/svg_to_ooo/svg_to_ooo.html&lt;br /&gt;
&lt;br /&gt;
Browsing through OO's sourcecode, this appears to be the parts&lt;br /&gt;
that do the SVG writing:&lt;br /&gt;
&lt;br /&gt;
OpenOffice/filter/source/svg&lt;br /&gt;
&lt;br /&gt;
 SOTranscoder.java  svgfilter.cxx      svgimport.cxx  svgwriter.hxx&lt;br /&gt;
 exports.map        svgfilter.hxx      svgscript.hxx&lt;br /&gt;
 makefile.mk        svgfontexport.cxx  svguno.cxx&lt;br /&gt;
 svgexport.cxx      svgfontexport.hxx  svgwriter.cxx&lt;br /&gt;
&lt;br /&gt;
You can download the OpenOffice sourcecode from one of the OpenOffice&lt;br /&gt;
mirrors.  E.g.:&lt;br /&gt;
&lt;br /&gt;
 http://www.mirror.ac.uk/downloads/sunsite.dk/openoffice/contrib/rc/1.1.4rc/OOo_1.1.4rc_source.tar.gz&lt;br /&gt;
&lt;br /&gt;
There is a webpage with some info about a new SVG exporter, here:&lt;br /&gt;
&lt;br /&gt;
 http://graphics.openoffice.org/svg/svg.htm&lt;br /&gt;
&lt;br /&gt;
This includes a java sample test, that could perhaps be used as a starting point&lt;br /&gt;
for a filter...&lt;br /&gt;
&lt;br /&gt;
 http://graphics.openoffice.org/svg/SVGExportTest.java&lt;br /&gt;
&lt;br /&gt;
Perhaps that could be recast into C++ so that a compiled filter could be&lt;br /&gt;
made of it.&lt;br /&gt;
&lt;br /&gt;
The page also includes a binary svgexport.so package.  Perhaps if this is fairly&lt;br /&gt;
stand-alone, a filter program could be written in C++ based on the above java&lt;br /&gt;
testcode that links against svgexport.so and provides its functionality on the&lt;br /&gt;
commandline as a sxd2svg tool.&lt;br /&gt;
&lt;br /&gt;
nm reports that it provides the following functions:&lt;br /&gt;
&lt;br /&gt;
 00005f9c T component_getFactory&lt;br /&gt;
 00005d28 T component_getImplementationEnvironment&lt;br /&gt;
 00005d44 T component_writeInfo&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ldd reports that this .so has the following dependency requirements:&lt;br /&gt;
&lt;br /&gt;
       linux-gate.so.1 =&amp;gt;  (0xffffe000)&lt;br /&gt;
        libsvx645li.so =&amp;gt; not found&lt;br /&gt;
        libxo645li.so =&amp;gt; not found&lt;br /&gt;
        libgo645li.so =&amp;gt; not found&lt;br /&gt;
        libj645li_g.so =&amp;gt; not found&lt;br /&gt;
        libvcl645li.so =&amp;gt; not found&lt;br /&gt;
        libutl645li.so =&amp;gt; not found&lt;br /&gt;
        libtl645li.so =&amp;gt; not found&lt;br /&gt;
        libcomphelp3gcc3.so =&amp;gt; not found&lt;br /&gt;
        libcppuhelpergcc3.so.3 =&amp;gt; not found&lt;br /&gt;
        libcppu.so.3 =&amp;gt; not found&lt;br /&gt;
        libsal.so.3 =&amp;gt; not found&lt;br /&gt;
        libdl.so.2 =&amp;gt; /lib/libdl.so.2 (0x4003d000)&lt;br /&gt;
        libpthread.so.0 =&amp;gt; /lib/libpthread.so.0 (0x40040000)&lt;br /&gt;
        libm.so.6 =&amp;gt; /lib/libm.so.6 (0x40091000)&lt;br /&gt;
        libstlport_gcc.so =&amp;gt; not found&lt;br /&gt;
        libstdc++.so.5 =&amp;gt; /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x400b4000)&lt;br /&gt;
        libc.so.6 =&amp;gt; /lib/libc.so.6 (0x4017d000)&lt;br /&gt;
        /lib/ld-linux.so.2 =&amp;gt; /lib/ld-linux.so.2 (0x80000000)&lt;br /&gt;
        libgcc_s.so.1 =&amp;gt; /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x40291000)&lt;br /&gt;
&lt;br /&gt;
== Other Conversion Tools ==&lt;br /&gt;
&lt;br /&gt;
When doing prepress work, its better to convert from ps to pdf on the commandline. there are several options available that make the result better fit the job, this is an example ps2pdf command:&lt;br /&gt;
&lt;br /&gt;
        ps2pdf12 -dProcessColorModel=/DeviceCMYK -dPDFSETTINGS=/prepress&lt;br /&gt;
                -dUseFlateCompression=true&lt;br /&gt;
                -dColorConversionStrategy=/UseDeviceDependentColor&lt;br /&gt;
                -dDownsampleColorImages=false&lt;br /&gt;
                -dDownsampleGrayImages=false&lt;br /&gt;
                -dDownsampleMonoImages=false&lt;br /&gt;
                -dAutoFilterColorImages=false&lt;br /&gt;
                -dAutoFilterGrayImages=false&lt;br /&gt;
                -dColorImageFilter=/FlateEncode&lt;br /&gt;
                -dGrayImageFilter=/FlateEncode&lt;br /&gt;
                -dMonoImageFilter=/FlateEncode&lt;br /&gt;
                input.ps output.pdf&lt;br /&gt;
&lt;br /&gt;
PSStill example: convert a grayscale 25x70 cm inkscape exported postscript file to pdf:&lt;br /&gt;
        pstill -i -2 -c -c -c -c -t -B -w 708,66 -h 1984,25 -o output.pdf input.ps&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer Discussion]]&lt;/div&gt;</summary>
		<author><name>Alberto</name></author>
	</entry>
</feed>