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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 42959
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 for an idea of how those libraries work.
Don't get me started about those stupid light bulbs.
subject: API for file conversion?
It's not a secret anymore!