• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Read doc and PDF format file in java ?

 
Greenhorn
Posts: 27
Hibernate Oracle Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
I am delveloping desk top application , i need to read doc and pdf format file i can read txt format files but i can't read pdf and doc format
is there any method ? let me know ?

Thanks in advance
Kumaresan N
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are various third party libraries for doing this.
Java can not read these proprietary formats on it's own.

IText and POI are two that come to mind.
Google will help you find others.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Reading PDFs is hard. The best you can do is try extract the text. This wiki page lists a number of options.

For Word, there's POI as Ben pointed out, but it is no longer actively developed, but may be worth a try.
 
reply
    Bookmark Topic Watch Topic
  • New Topic