• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read .doc & .pdf file using Java API

 
arnav prateek
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to read .doc and write this file content into a .pdf file..
Do we have any java API for it?

Thanks in advance

Regards
 
Sanjaya Sugiarto
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Extract the ms office file: Apache POI ( http://jakarta.apache.org/poi/ )
Create PDF: PDFBox ( http://www.pdfbox.org/ ) or iText ( http://www.lowagie.com/iText/ )
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The DOC part of POI hasn't been under develoment for a while. If it can't do what you need it to do, check out the OpenOffice Java API.
 
Brendan Fosberry
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could also look into itext if you want. I dont know if its very good for importing pdf..but is great for exporting
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic