# PDF- ingest attachement plugin

**URL:** <https://discuss.elastic.co/t/pdf-ingest-attachement-plugin/122693>\
**Category:** Elasticsearch\
**Created:** [March 6, 2018, 10:20am UTC](https://discuss.elastic.co/t/pdf-ingest-attachement-plugin/122693 "2018-03-06T10:20:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akml\_kk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akml_kk/32/31069_2.png) [@akml\_kk](https://discuss.elastic.co/u/akml_kk)\
**Post date:** [March 6, 2018, 10:20am UTC](https://discuss.elastic.co/t/pdf-ingest-attachement-plugin/122693/1 "2018-03-06T10:20:10Z")

</div>

HELLO, I found that i need to use " ingest attachement plugin" to load a pdf to elasticsearch.

i found in documentation these code :

```
PUT _ingest/pipeline/attachment
{
  "description" : "Extract attachment information",
  "processors" : [
    {
  "attachment" : {
    "field" : "data"
    }
  }
 ]
}
PUT my_index/my_type/my_id?pipeline=attachment
{
  "data": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0="
} 

```

but where can i put the path to my pdf file to be charged ? in data ?

---

<div class="post-metadata">

**Author:** ![akml\_kk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akml_kk/32/31069_2.png) [@akml\_kk](https://discuss.elastic.co/u/akml_kk)\
**Post date:** [March 6, 2018, 10:51am UTC](https://discuss.elastic.co/t/pdf-ingest-attachement-plugin/122693/2 "2018-03-06T10:51:27Z")

</div>

Solved.  
I need to convert the PDF file to base 64 and then copy and paste the converstion in data field

---

<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:** [April 3, 2018, 10:52am UTC](https://discuss.elastic.co/t/pdf-ingest-attachement-plugin/122693/3 "2018-04-03T10:52:04Z")

</div>

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