Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SWF export extension for Inkscape
#! /bin/sh
rc=0
pdf2swf -qq -s transparent "$1" -o /tmp/temp.swf
cat < /tmp/temp.swf || rc=1
rm -f /tmp/temp.swf
exit $rc
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>SWF Output</_name>
<id>org.inkscape.output.swf</id>
<dependency type="extension">org.inkscape.output.pdf.cairorenderer</dependency>
<dependency type="executable" location="extensions">pdf2swf.sh</dependency>
<dependency type="executable">pdf2swf</dependency>
<output>
<extension>.swf</extension>
<mimetype>application/x-shockwave-flash</mimetype>
<_filetypename>Flash SWF (*.swf)</_filetypename>
<_filetypetooltip>Flash movie shape</_filetypetooltip>
</output>
<script>
<command reldir="extensions">pdf2swf.sh</command>
<helper_extension>org.inkscape.output.pdf.cairorenderer</helper_extension>
</script>
</inkscape-extension>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.