wood burning stoves
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 Building Microservices this week in the Design 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 ( 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

Joined: Mar 22, 2005
Posts: 42958
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: http://aspose.com/file-tools
subject: How to read .doc & .pdf file using Java API
It's not a secret anymore!