Batch Processing word docs to FlashPaper
Recently for work I have had to convert quite a few word docs to the FlashPaper format.
Realising how long this would take I looked into an undocumented feature of the FlashPrinter.exe of calling it from the command line and passing the required arguments.
You can easily take my code and get any language like Java or even Ant to do the following.
The command you need to run is:
FlashPrinter.exe {PATH TO DOCUMENT} -o {OUTPUT PATH & FILE with SWF extention}
All the CF code below does is filter on the directory query looking for word documents. If you have any changes or suggestions contace me here
<!--- Path to Flash Paper exe --->
<cfset flashPrinter = "C:\Program Files\Macromedia\FlashPaper 2\FlashPrinter.exe">
<!--- Path to documents --->
<cfset originalPath = expandPath(".") />
<!--- Can be either doc|pdf --->
<cfset filter = "doc">
<!--- Path to the exported swf's' --->
<cfset outputPath = expandPath(".") />
<!--- get a query list of all the fiels --->
<cfdirectory action="list" name="qry" directory="#originalPath#" filter="*.#filter#" />
<cfoutput>
<cfloop query="qry">
<cfset fileLoc = qry.directory&"\"&qry.name />
<cfset outputFile = outputPath & "\" & replace(qry.name, ".#filter#", ".swf")>
<!--- Set the arguments to be passed to CFEXECUTE --->
<cfset args = '"#flashPrinter#" "#fileLoc#" -o "#outputFile#"' />
<!--- Output the args to the screen to see what got passed --->
#args#
<hr/>
<!--- Use the command line to execute the function --->
<cfexecute name = "#flashPrinter#"
arguments = "#args#">
</cfexecute>
</cfloop>
</cfoutput>


http://www.darronschall.com/weblog/archives/000250... - That's my ANT version of a batch PDF to FlashPaper cnoverter.