# Store PDF documents page-wise in ES

**URL:** <https://discuss.elastic.co/t/store-pdf-documents-page-wise-in-es/205346>\
**Category:** Elasticsearch\
**Created:** [October 26, 2019, 9:49am UTC](https://discuss.elastic.co/t/store-pdf-documents-page-wise-in-es/205346 "2019-10-26T09:49:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmay](https://avatars.discourse-cdn.com/v4/letter/f/f07891/32.png) [@fmay](https://discuss.elastic.co/u/fmay)\
**Post date:** [October 26, 2019, 9:49am UTC](https://discuss.elastic.co/t/store-pdf-documents-page-wise-in-es/205346/1 "2019-10-26T09:49:05Z")

</div>

We have a business process in which we import a number of PDF-Documents and want to search this PDF Documents per page.

Means..

1. You import a lot of PDF documents - they should be stored in Elastic-Search
2. You index every page of every PDF Document
3. you write a text in a text-box
4. you start a search  
As query-input for the ES-Query you take the text from the input-box
5. You want to get back some of the PDF pages from the imported document (which matches the context of the text of your text-box)

My question now?  
When I import a PDF Document to ES - can I tell ES to extract every page of the PDF Document (index it) - that I can query all my PDF documents per page?

---

<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:** [October 26, 2019, 12:20pm UTC](https://discuss.elastic.co/t/store-pdf-documents-page-wise-in-es/205346/2 "2019-10-26T12:20:21Z")

</div>

You can index PDF documents with ingest attachment plugin but it does not extract by page but the whole document.

---

<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:** [November 23, 2019, 12:20pm UTC](https://discuss.elastic.co/t/store-pdf-documents-page-wise-in-es/205346/3 "2019-11-23T12:20:23Z")

</div>

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