Word转PDF及SWF在线浏览——Flash Paper
生活随笔
收集整理的這篇文章主要介紹了
Word转PDF及SWF在线浏览——Flash Paper
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
http://flexpaper.devaldi.com/?ref=FlexPaper
之前在項目中研究使用了一套word轉PDF,然后將PDF轉成SWF的方法,最終實現SWF的在線瀏覽。自己還有些洋洋得意,昨晚在瀏覽網頁搜集資料時發現:原來在2004年左右就有Flash Paper,已經很容易地實現上面的過程。
???? Flash Paper支持Office文檔(.doc,.xls,.ppt)直接轉換為PDF或SWF,速度很快,效果較好??上?#xff0c;Flash Paper V2.2后沒有再更新了。安裝Flash Paper后,可以直接使用命令調用FlashPrinter.exe,實現批量轉換。
???? 例如:C:\FlashPaper2.2\FlashPrinter.exe C:\Flex技術簡介.ppt? -o C:\Flex技術簡介.pdf
?public?static?void?ConvertPdfToSwf(HttpRequest?reqeust,?String?styFileName,?String[]?dataFileNames,?String?outputFileFullName)?{?
try?
{?String?flashPrinter?=?String.Concat(AppDomain.CurrentDomain.BaseDirectory,?"FlashPrinter.exe");//FlashPrinter.exe?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開發,可以采用開源的Flex Paper.swc.????
???? 現在分享Flash Paper破解版:下載
再談:Word轉PDF及SWF在線瀏覽——Flash Paper
轉載于:https://www.cnblogs.com/liulf/archive/2011/05/11/2043546.html
總結
以上是生活随笔為你收集整理的Word转PDF及SWF在线浏览——Flash Paper的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c语言复习笔记(2)--标准库中的I/O
- 下一篇: JS循环绑定对象或变量