Originally posted by: JC!
Yes. If you run the FlashPaper.exe file with the file to convert and specify the output file name with a -o flag, you can do it via the command line. What this does is launch Acrobat Reader, load the file, and print to SWF. It isn't elegant, but it works.
- FlashPaper.exe MyFile.pdf -o MyFile.swf
The problem with simply sticking this into a loop is that the command returns immediately, even though the conversion hasn't completed yet. Since Acrobat Reader is actually doing the conversion, you have to wait until the PDF file exists before you process the next file.
Here is a Perl script a co-worker found that basically does this for a folder, recursively. Move the source and output files elsewhere and pop the whole thing into another loop and it should go indefinitely. It is pretty simple, and should be easy to convert into the scripting language of your choice.
This script is provided as-is, with no guarantee that it will be appropriate for your use.