# Workplace Search - Text extraction from big pdf files

**URL:** https://discuss.elastic.co/t/workplace-search-text-extraction-from-big-pdf-files/257043
**Category:** Elastic Search
**Created:** [November 30, 2020, 9:55am UTC](https://discuss.elastic.co/t/workplace-search-text-extraction-from-big-pdf-files/257043 "2020-11-30T09:55:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sam1325](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sam1325](https://discuss.elastic.co/u/sam1325)
#### Post date: [November 30, 2020, 9:55am UTC](https://discuss.elastic.co/t/workplace-search-text-extraction-from-big-pdf-files/257043/1 "2020-11-30T09:55:29Z")

</div>

I added Dropbox as a content source to my Enterprise-search cloud instance. All files got indexed as expected and I can search across multiple sources. But I noticed that for big pdf files (30+ pages), only the first ~10 pages are searchable. So that if I search for text that is included at the end of file, no hits are returned.

Is this the expected behavior? Is there a setting I need to change to fix this?

---

<div class="post-metadata">

### Author: ![MadsOhm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/madsohm/32/69154_2.png) [@MadsOhm](https://discuss.elastic.co/u/MadsOhm)
#### Post date: [December 1, 2020, 7:15am UTC](https://discuss.elastic.co/t/workplace-search-text-extraction-from-big-pdf-files/257043/2 "2020-12-01T07:15:55Z")

</div>

Hi sam1325 👋

By default Workplace Search only indexes the first 100kb of files. This can be configured by changing this

```auto
workplace_search.custom_api_source.document_size.limit: 100kb

```

in your `enterprise-search.yml` file.

I guess the naming is a bit wrong, since this doesn't seem to apply to only the Custom API Source, but all sources. I will create an internal ticket to investigate further.

---

<div class="post-metadata">

### Author: ![sam1325](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sam1325](https://discuss.elastic.co/u/sam1325)
#### Post date: [December 1, 2020, 12:25pm UTC](https://discuss.elastic.co/t/workplace-search-text-extraction-from-big-pdf-files/257043/3 "2020-12-01T12:25:58Z")

</div>

Thank you for the answer. I changed the Setting in the yml file and it worked as expected!

---

<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 4, 2022, 8:18am UTC](https://discuss.elastic.co/t/workplace-search-text-extraction-from-big-pdf-files/257043/4 "2022-11-04T08:18:39Z")

</div>


