百度文庫文檔播放器

來源:互聯網
上載者:User

播放器及組件:
http://code.google.com/p/flexpaper/downloads/list

源碼下載 需要使用svn 地址:
http://flexpaper.googlecode.com/svn/trunk/

用 JodConverter(Openoffice)可以在命令列下把

  1. OpenDocument Text
  2. (*.odt)
  3. OpenOffice.org 1.0 Text (*.sxw)
  4. Rich Text Format (*.rtf)
  5. Microsoft
  6. Word (*.doc)
  7. WordPerfect (*.wpd)
  8. Plain Text (*.txt)
  9. HTML1
  10. (*.html)

複製代碼

 

轉換成pdf

而swftools 可以把 pdf轉成swf

然後用flexpager播放器就可以了

 

通過調用JODConverter將格式為WORD的DOC檔案轉換成PDF格式檔案很容易,核心代碼只有幾句:
File inputFile = new File("C:\\Documents and Settings\\ccnustone\\案頭\\建立檔案夾\\資料採礦技術簡介.doc");
File outputFile = new File("C:\\Documents and Settings\\ccnustone\\案頭\\建立檔案夾\\資料採礦技術簡介.pdf");

// connect to an OpenOffice.org instance running on port 8100
OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100);
connection.connect();
// convert
DocumentConverter converter = new OpenOfficeDocumentConverter(connection);
converter.convert(inputFile, outputFile);
// close the connection
connection.disconnect();
先到http://sourceforge.net/project/showfiles.php?group_id=91849下載jodconverter-2.2.1.zip,接壓縮後,找到LIB檔案夾,將裡面的包配置到Build Path中,啟動OPEN OFFICE的服務就OK了。至於要實現其他格式轉換,可以參看裡面的API。

這裡主要是藉助 OpenOffice3.2,不需要安裝版,USB版也可以

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.