Flash Paper支持Office文檔(.doc,.xls,.ppt)直接轉換為PDF或SWF,速度很快,效果較好。可惜,F(xiàn)lash Paper V2.2后沒有再更新了。安裝Flash Paper后,可以直接使用命令調用FlashPrinter.exe,實現(xiàn)批量轉換。
例如:C:\FlashPaper2.2\FlashPrinter.exe C:\Flex技術簡介.ppt -o C:\Flex技術簡介.pdf
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(flashPrinter);
if (String.IsNullOrEmpty(outputFileFullName))
{ return ; }
Int32 intLastDot = outputFileFullName.LastIndexOf(".");
//*********Temp Programming****************************************
Int32 intLast = outputFileFullName.LastIndexOf("\\");
String path = outputFileFullName.Substring(0, intLast);
String tempFileName = path + "\\PdfToSwf20080923.pdf";
//*****************************************************************
String swfFileName = String.Concat(path, "\\PdfToSwf20080923.swf");
startInfo.Arguments = String.Concat(tempFileName, " -o ", swfFileName);
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo = startInfo;
Boolean isStart = process.Start();
process.WaitForExit();
process.Close();
}
catch(Exception ex) { throw ex; }
}
在線瀏覽的SWF開發(fā),可以采用開源的Flex Paper.swc.
現(xiàn)在分享Flash Paper破解版:下載