Export to GitHub

evoluspencil - issue #260

Allow SVG export


Posted on Jan 3, 2011 by Helpful Cat

Could you enable the export of multiple or single sheets to SVG format?

Comment #1

Posted on Jan 24, 2011 by Grumpy Kangaroo

I would love to have this through the UI, but until then I've written a small XSLT-Sheet that basically only strips everything from the http://www.evolus.vn/Namespace/Pencil namespace (Mostly management data not needed in an export anyway). The resulting file should work fine in Firefox (where the foreignObject tag of SVG is well supported), but libraries like batik (used in apache fop for example) will have trouble with the XHTML, XUL or XLink in it. I intend to extend the sheet to support at least a few of those elements I encounter, but I won't make promises I can't keep ;-)

The file attached can also be found as part of my collection of tools (used to generate DocBook and then PDF for my projects): https://github.com/Robert-Kosten/de.robertkosten.tools/blob/master/xsl/ep2svg.xsl

It is currently under GPLv3, but I'd be willing to release it under GPLv2 so no-one has to invoke "any later version" should anyone wish to include it in their software ;-)

Attachments

Comment #2

Posted on Nov 7, 2011 by Quick Panda

SVG export would be great! In this way further manipulation of the image would be possible with tools like Inkscape. In addition starting from SVG other vector format could be obtained with proper conversion software.

Comment #3

Posted on May 30, 2014 by Helpful Ox

This tool turned out to be useful for me. The github repository of the author is no longer available so I have posted it here: https://github.com/ReAzem/ep2svg

Comment #4

Posted on Jun 1, 2014 by Grumpy Kangaroo

I had changed my github username inbetween, but I have recently re-added that file as a gist when I became aware that people were using it ;-)

https://gist.github.com/robertkosten/11111486

Comment #5

Posted on Jun 4, 2014 by Happy Cat

First, thanks for hosting the scripts!

Unfortunately this doesn't work for me. I can not see any captions of the shapes after converting, though i can find them in the source of the svg-file.

(captions: e.g. when you double click any shape and then enter a text content).

Comment #6

Posted on Jun 6, 2014 by Grumpy Kangaroo

Hi Thomas,

I'll have a look into that on the weekend ;-) I haven't used the script in years, but I suspect the captions are either in the namespace that it drops or are an attribute, which it might miss completely...

Status: New

Labels:
Type-Defect Priority-Medium