jQuery in Action, 3rd edition
The moose likes Other Open Source Projects and the fly likes API for file conversion? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "API for file conversion?" Watch "API for file conversion?" New topic

API for file conversion?

Jason Bock

Joined: Dec 27, 2008
Posts: 19
I'm interested in converting TXTs into PDF, DOC, or maybe even PPT
Are there any APIs that make this possible?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
DOC and PPT are supported by the Apache POI library, while for PDF there's iText. These are sizeable APIs, though - the code would have to deal with pages (or slides), paragraphs etc. See the iTextExample and CreateWordDocument samples in http://faq.javaranch.com/java/CodeBarnLibrariesAndFrameworks for an idea of how those libraries work.
I agree. Here's the link: http://aspose.com/file-tools
subject: API for file conversion?
jQuery in Action, 3rd edition