
Can anybody explain why I can't get the SWF output extension working or even it to show in saving dialog.
You can find a link to this extension from: http://wiki.inkscape.org/wiki/index.php/ExtensionsRepository
I extracted the .inx file to extensions folder, but I can't see SWF file saving option when saving a file.
I compared the syntax of the swf_output.inx file to pdf_output.inx.txt file that I found from the same folder. I noticed that <name>, <filetypename> and <filetypetooltip> tags had an underscore in the pdf_output file. I tried to add underscores to swf_output with no success.
I also removed txt extension from pdf_output.inx file. After that corresponding saving option appeared to Inkscape. I also started to change pdf_output file to correspond to swf_output file. I could change name and id tags to
<_name>SWF Output</_name> <id>org.inkscape.output.swf</id>
in pdf_output.inx and it still shows up in save dialog. If I change anything else "Adobe PDF via postscript (*.pdf)" saving option won't show up. Any ideas?
-Juho-
swf_output.inx ------------------------------------------------- <inkscape-extension> <name>SWF Output</name> <id>org.inkscape.output.swf</id> <dependency type="extension">org.inkscape.output.pdf</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</helper_extension> </script> </inkscape-extension>
pdf_output.inx.txt ------------------------------------------------- <inkscape-extension> <_name>PDF Output</_name> <id>org.inkscape.output.pdf.via_gs</id> <dependency type="extension">org.inkscape.output.ps</dependency> <dependency type="executable" location="extensions">ps2pdf.sh</dependency> <dependency type="executable">ps2pdf</dependency> <output> <extension>.pdf</extension> <mimetype>image/x-portable-document-format</mimetype> <_filetypename>Adobe PDF via postscript (*.pdf)</_filetypename> <_filetypetooltip>Adobe Portable Document Format</_filetypetooltip> </output> <script> <command reldir="extensions">ps2pdf.sh</command> <helper_extension>org.inkscape.output.ps</helper_extension> </script> </inkscape-extension>

I'd guess one of the dependancies arent being met, did we rename the pdf output extension that its calling for? Try adding .via_gs to the org.inkscape.output.pdf in the dependancy and see if that works...
2008/6/4 Juho Viitasalo <jiviitas@...1993...>:
Can anybody explain why I can't get the SWF output extension working or even it to show in saving dialog.
You can find a link to this extension from: http://wiki.inkscape.org/wiki/index.php/ExtensionsRepository
I extracted the .inx file to extensions folder, but I can't see SWF file saving option when saving a file.
I compared the syntax of the swf_output.inx file to pdf_output.inx.txt file that I found from the same folder. I noticed that <name>, <filetypename> and <filetypetooltip> tags had an underscore in the pdf_output file. I tried to add underscores to swf_output with no success.
I also removed txt extension from pdf_output.inx file. After that corresponding saving option appeared to Inkscape. I also started to change pdf_output file to correspond to swf_output file. I could change name and id tags to
<_name>SWF Output</_name> <id>org.inkscape.output.swf</id>
in pdf_output.inx and it still shows up in save dialog. If I change anything else "Adobe PDF via postscript (*.pdf)" saving option won't show up. Any ideas?
-Juho-
swf_output.inx
<inkscape-extension> <name>SWF Output</name> <id>org.inkscape.output.swf</id> <dependency type="extension">org.inkscape.output.pdf</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</helper_extension> </script> </inkscape-extension>
pdf_output.inx.txt
<inkscape-extension> <_name>PDF Output</_name> <id>org.inkscape.output.pdf.via_gs</id> <dependency type="extension">org.inkscape.output.ps</dependency> <dependency type="executable" location="extensions">ps2pdf.sh</dependency> <dependency type="executable">ps2pdf</dependency> <output> <extension>.pdf</extension> <mimetype>image/x-portable-document-format</mimetype> <_filetypename>Adobe PDF via postscript (*.pdf)</_filetypename> <_filetypetooltip>Adobe Portable Document Format</_filetypetooltip> </output> <script> <command reldir="extensions">ps2pdf.sh</command> <helper_extension>org.inkscape.output.ps</helper_extension> </script> </inkscape-extension>
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel

On Wed, 2008-06-04 at 13:59 +0300, Juho Viitasalo wrote:
Can anybody explain why I can't get the SWF output extension working or even it to show in saving dialog.
Have you looked at your extensions errors log?
~/.inkscape/extension-errors.log
That might have information for you.
--Ted

Thanks, Ted!
I can't find any extension-errors.log. I'm using windows xp and I have Inkscape 0.46 that I normally downloaded from Inkscape.org. Is there some kind of developer version with errorlogs?
Ok. Now I got the SWF saving option to show up in saving dialog, but it still won't work. Even the SWF file is outputted, but it's empty. It seems that pdf2swf doesn't receive the pdf file.
swf_output.inx ---------------------------------------------------------- <inkscape-extension> <_name>SWF Output</_name> <id>org.inkscape.output.swf</id> <dependency type="extension">org.inkscape.output.pdf.via_gs_on_win32</dependency> <dependency type="executable" location="extensions">pdf2swf.cmd</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.cmd</command> <helper_extension>org.inkscape.output.pdf.via_gs_on_win32</helper_extension> </script> </inkscape-extension>
pdf2swf.cmd --------------------------------------- pdf2swf.exe %1 "%~dp1%~n1.swf" pause
I recall that you adviced me in this kind of problem before, but I can't get this to work. I tried everything I could. No success.
Saving as PDF works great. Also pdf2swf.cmd works great with drag'n'drop and with command line. So the problems seems to be why pdf2swf.exe isn't receiving the pdf file.
-Juho-
Ted Gould wrote:
On Wed, 2008-06-04 at 13:59 +0300, Juho Viitasalo wrote:
Can anybody explain why I can't get the SWF output extension working or even it to show in saving dialog.
Have you looked at your extensions errors log?
~/.inkscape/extension-errors.log
That might have information for you.
--Ted

Juho Viitasalo-2 wrote:
Can anybody explain why I can't get the SWF output extension working.
this sounds very similar to the problem with AI 8.0 Export in Windows, see https://bugs.launchpad.net/inkscape/+bug/235833
they both appear to be using helper-extensions, and in Windows (trying AI output) the best that I could get was the usual message : C:\Python25\APP>inkcl.py return code: 3 terminate called after throwing an instance of 'Glib::SpawnError'
I guess my question is, did this ever work before, and are there any examples of the successful implementation of a helper-extension?
Alvin Penner
participants (4)
-
Alvin Penner
-
john cliff
-
Juho Viitasalo
-
Ted Gould