19 Aug
2007
19 Aug
'07
3:56 a.m.
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