From Juho Viitasalo Fri Aug 17 15:26:30 2007 From: Juho Viitasalo To: inkscape-user@lists.inkscape.org Subject: [Inkscape-user] Problem with swf extension Date: Sat, 18 Aug 2007 01:21:55 +0300 Message-ID: <46C61F83.3000508@...2334...> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6301479527159177362==" --===============6301479527159177362== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 ------------------------------------------------------ SWF Output org.inkscape.output.swf org.inkscape.output.pdf pdf2swf.cmd pdf2swf .swf application/x-shockwave-flash Flash SWF (*.swf) Flash movie shape ----------------------------------------------------- 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- --===============6301479527159177362==-- From Ted Gould Sat Aug 18 20:56:39 2007 From: Ted Gould To: inkscape-user@lists.inkscape.org Subject: Re: [Inkscape-user] Problem with swf extension Date: Sat, 18 Aug 2007 20:56:37 -0700 Message-ID: <1187495797.8776.4.camel@...2083...> In-Reply-To: <46C61F83.3000508@...2334...> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5138952600562347169==" --===============5138952600562347169== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 --===============5138952600562347169== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC42IChHTlUv TGludXgpCgppRDhEQlFCR3g3OTFMRTMzNXBSUEdwMFJBbytpQUtDUFJTRWYyTGVVUW1veDY5Q2c4 ZVJ6QVZOSml3Q2dsbG43CkRCNW1Sc0FOZkoybFd3ODk3REd1NTlvPQo9MjM2dAotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0K --===============5138952600562347169==--