Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

API for file conversion?

 
Jason Bock
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm interested in converting TXTs into PDF, DOC, or maybe even PPT
Are there any APIs that make this possible?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic