Word转PDF及SWF在线浏览——Flash Paper
http://flexpaper.devaldi.com/?ref=FlexPaper
之前在項(xiàng)目中研究使用了一套word轉(zhuǎn)PDF,然后將PDF轉(zhuǎn)成SWF的方法,最終實(shí)現(xiàn)SWF的在線瀏覽。自己還有些洋洋得意,昨晚在瀏覽網(wǎng)頁搜集資料時(shí)發(fā)現(xiàn):原來在2004年左右就有Flash Paper,已經(jīng)很容易地實(shí)現(xiàn)上面的過程。
???? Flash Paper支持Office文檔(.doc,.xls,.ppt)直接轉(zhuǎn)換為PDF或SWF,速度很快,效果較好。可惜,Flash Paper V2.2后沒有再更新了。安裝Flash Paper后,可以直接使用命令調(diào)用FlashPrinter.exe,實(shí)現(xiàn)批量轉(zhuǎn)換。
???? 例如:C:\FlashPaper2.2\FlashPrinter.exe C:\Flex技術(shù)簡介.ppt? -o C:\Flex技術(shù)簡介.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開發(fā),可以采用開源的Flex Paper.swc.????
???? 現(xiàn)在分享Flash Paper破解版:下載
再談:Word轉(zhuǎn)PDF及SWF在線瀏覽——Flash Paper
轉(zhuǎn)載于:https://www.cnblogs.com/liulf/archive/2011/05/11/2043546.html
總結(jié)
以上是生活随笔為你收集整理的Word转PDF及SWF在线浏览——Flash Paper的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c语言复习笔记(2)--标准库中的I/O
- 下一篇: JS循环绑定对象或变量