# Parse Pdf with image/text in elasticsearch using java?

**URL:** <https://discuss.elastic.co/t/parse-pdf-with-image-text-in-elasticsearch-using-java/84686>\
**Category:** Elasticsearch\
**Created:** [May 5, 2017, 9:57am UTC](https://discuss.elastic.co/t/parse-pdf-with-image-text-in-elasticsearch-using-java/84686 "2017-05-05T09:57:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolfghost](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfghost/32/15500_2.png) [@wolfghost](https://discuss.elastic.co/u/wolfghost)\
**Post date:** [May 5, 2017, 9:57am UTC](https://discuss.elastic.co/t/parse-pdf-with-image-text-in-elasticsearch-using-java/84686/1 "2017-05-05T09:57:28Z")

</div>

How to parse pdf with text and images in elasticsearch using eclipse?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 5, 2017, 12:15pm UTC](https://discuss.elastic.co/t/parse-pdf-with-image-text-in-elasticsearch-using-java/84686/2 "2017-05-05T12:15:21Z")

</div>

You can look at ingest-attachment plugin which can extract text and metadata from your PDF docs.

---

<div class="post-metadata">

**Author:** ![wolfghost](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfghost/32/15500_2.png) [@wolfghost](https://discuss.elastic.co/u/wolfghost)\
**Post date:** [May 9, 2017, 9:23am UTC](https://discuss.elastic.co/t/parse-pdf-with-image-text-in-elasticsearch-using-java/84686/3 "2017-05-09T09:23:36Z")

</div>

I also wants to index text on images.

I used Tesseract OCR but it is indexing only images(not pdf images).  
I used tika jar but it is indexing only pdf text.

Is there any way that i can parse pdf images/text or both.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 6, 2017, 9:32am UTC](https://discuss.elastic.co/t/parse-pdf-with-image-text-in-elasticsearch-using-java/84686/4 "2017-06-06T09:32:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
