• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read images in PDF document

 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to read PDF files in Java. I have used PDFBox.jar file and have successfully read the contents of the PDF file.

But I want to read the text content in the Images present in the PDF File. I am not able to achieve this.

I used both iText and PDFBox to read the images in the PDF file. Could you please suggest a way to read the text content of images in PDF file?
 
Rob Spoor
Sheriff
Pie
Posts: 20546
56
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The text isn't stored as text in the PDF, so you can't retrieve it as text from the PDF. You'll need OCR (Optical Character Recognition) to extract text from this (or any) image.
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rob,

OCR (Optical Character Recognition) - can this be done using java? if yes is there any jar files you can suggest?
 
Rob Spoor
Sheriff
Pie
Posts: 20546
56
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It probably can be done, but I haven't done it myself before.
 
Wim Vanni
Ranch Hand
Posts: 96
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ron Cemer's Java OCR

This one could be of use. Haven't tried it myself, so any feedback of your own experience when trying this out is surely welcome on this forum!

Cheers,
Wim
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tested Asprise version??

http://asprise.net/product/javapdf/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic