Created
January 14, 2015 17:42
-
-
Save frederik-elwert/1a46f82fce5d3deb7842 to your computer and use it in GitHub Desktop.
SWF export extension for Inkscape
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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