Hey!
I just subscribed to this list because I have a problem that I can't solve myself.
I have following .inx file in extension directory
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.cmd</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.cmd</command> <helper_extension>org.inkscape.output.pdf</helper_extension> </script> </inkscape-extension> -----------------------------------------------------
In same directory I also have
pdf2swf.cmd ----------------------------------------------------- pdf2swf %1 "%~dp1%~n1.swf" pause -----------------------------------------------------
It creates the .swf file but it's empty. I think that it's not running my cmd file or it doesn't get the input. Can anybody tell me what is the problem? pdf2swf.cmd works nicely when dragging a pdf file on it.
-Juho-
On Sat, 2007-08-18 at 01:21 +0300, Juho Viitasalo wrote:
pdf2swf.cmd
pdf2swf %1 "%~dp1%~n1.swf" pause
It creates the .swf file but it's empty. I think that it's not running my cmd file or it doesn't get the input. Can anybody tell me what is the problem? pdf2swf.cmd works nicely when dragging a pdf file on it.
The problem is that you're implementing the interface wrong. The PDF data will be passed to your script via STDIN and the filename on %1 will be the flash file to write to. Assuming '-' is STDIN, you should have this:
pdf2swf - %1
--Ted
participants (2)
-
Juho Viitasalo
-
Ted Gould