Meaningless Drivel is fun!
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

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

arnav prateek

Joined: Apr 06, 2006
Posts: 17

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

Sanjaya Sugiarto
Ranch Hand

Joined: Mar 25, 2004
Posts: 229
Extract the ms office file: Apache POI ( )
Create PDF: PDFBox ( ) or iText ( )

<a href="" target="_blank" rel="nofollow">Business Information Technology - Hochschule Furtwangen University, Germany</a>
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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

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
I agree. Here's the link:
subject: How to read .doc & .pdf file using Java API
It's not a secret anymore!