看到一个开源的好东西,记录一下。
JODConverter可以调用OpenOffice的服务来转换文档的格式。支持多种Office文档格式的转换。下面是它支持的格式:
From (any of) | To (any of) |
Text Formats | |
OpenDocument Text (*.odt) OpenOffice.org 1.0 Text (*.sxw) Rich Text Format (*.rtf) Microsoft Word (*.doc) WordPerfect (*.wpd) Plain Text (*.txt) HTML1 (*.html) | Portable Document Format (*.pdf) OpenDocument Text (*.odt) OpenOffice.org 1.0 Text (*.sxw) Rich Text Format (*.rtf) Microsoft Word (*.doc) Plain Text (*.txt) HTML2 (*.html) MediaWiki wikitext (*.wiki) |
Spreadsheet Formats | |
OpenDocument Spreadsheet (*.ods) OpenOffice.org 1.0 Spreadsheet (*.sxc) Microsoft Excel (*.xls) Comma-Separated Values (*.csv) Tab-Separated Values (*.tsv) | Portable Document Format (*.pdf) OpenDocument Spreadsheet (*.ods) OpenOffice.org 1.0 Spreadsheet (*.sxc) Microsoft Excel (*.xls) Comma-Separated Values (*.csv) Tab-Separated Values (*.tsv) HTML2 (*.html) |
Presentation Formats | |
OpenDocument Presentation (*.odp) OpenOffice.org 1.0 Presentation (*.sxi) Microsoft PowerPoint (*.ppt) | Portable Document Format (*.pdf) Macromedia Flash (*.swf) OpenDocument Presentation (*.odp) OpenOffice.org 1.0 Presentation (*.sxi) Microsoft PowerPoint (*.ppt) HTML2 (*.html) |
Drawing Formats | |
OpenDocument Drawing (*.odg) | Scalable Vector Graphics (*.svg) Macromedia Flash (*.swf) |
Guide:
http://www.artofsolving.com/opensource/jodconverter/guide