wood burning stoves 2.0*
The moose likes Java in General and the fly likes How to read .doc & .pdf file using Java API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "How to read .doc & .pdf file using Java API" Watch "How to read .doc & .pdf file using Java API" New topic
Author

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

arnav prateek
Greenhorn

Joined: Apr 06, 2006
Posts: 17
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

Joined: Mar 25, 2004
Posts: 229
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/ )


<a href="http://www.wi.hs-furtwangen.de" target="_blank" rel="nofollow">Business Information Technology - Hochschule Furtwangen University, Germany</a>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42035
    
  64
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.


Ping & DNS - my free Android networking tools app
Brendan Fosberry
Ranch Hand

Joined: Dec 16, 2005
Posts: 33
You could also look into itext if you want. I dont know if its very good for importing pdf..but is great for exporting
 
GeeCON Prague 2014
 
subject: How to read .doc & .pdf file using Java API