jQuery in Action, 2nd edition
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
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply 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: 35440
    
    9
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.


Android appsImageJ pluginsJava web charts
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to read .doc & .pdf file using Java API
 
Similar Threads
Reading PDF from Java
Hi Need suggestions
how to read pdf from java
Read Word/PDF
convert to pdf file format