This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41051
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
I agree. Here's the link:
subject: How to read .doc & .pdf file using Java API
Similar Threads
Read Word/PDF
Reading PDF from Java
how to read pdf from java
Hi Need suggestions
convert to pdf file format