# Tif files in fscrawler

**URL:** <https://discuss.elastic.co/t/tif-files-in-fscrawler/231880>\
**Category:** Elasticsearch\
**Created:** [May 10, 2020, 9:32am UTC](https://discuss.elastic.co/t/tif-files-in-fscrawler/231880 "2020-05-10T09:32:10Z")\
**Posts on this page:** 6\
**Page:** 2

<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 25, 2020, 9:36am UTC](https://discuss.elastic.co/t/tif-files-in-fscrawler/231880/21 "2020-05-25T09:36:53Z")

</div>

So I tried your document.  
To make OCR work, I had to install the Tesseract language pack. Did you install it as well?

Once I did, I was able to get text content. I just push a PR as a test that shows it in action.

> <https://github.com/dadoonet/fscrawler/pull/959>

---

<div class="post-metadata">

**Author:** ![avishai.d](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@avishai.d](https://discuss.elastic.co/u/avishai.d)\
**Post date:** [May 25, 2020, 10:38am UTC](https://discuss.elastic.co/t/tif-files-in-fscrawler/231880/22 "2020-05-25T10:38:19Z")

</div>

What is the command in windows ?  
Still getting the "PDF is not supported" -

```auto
E:\Tesseract-OCR>tesseract 15857372.pdf out -l heb
Tesseract Open Source OCR Engine v5.0.0-alpha.20200328 with Leptonica
Error in pixReadStream: Pdf reading is not supported
Error in pixRead: pix not read
Error during processing.

```

---

<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 25, 2020, 11:27am UTC](https://discuss.elastic.co/t/tif-files-in-fscrawler/231880/23 "2020-05-25T11:27:13Z")

</div>

As I said, Tesseract does not parse PDF.  
Tika parses PDF and for each embedded image, sends it to Tesseract for OCR.

> What is the command in windows ?

I believe you need to read the Tesseract project documentation? Tika also provides some advices. See [TikaOCR - TIKA - Apache Software Foundation](https://cwiki.apache.org/confluence/display/tika/TikaOCR)

---

<div class="post-metadata">

**Author:** ![avishai.d](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@avishai.d](https://discuss.elastic.co/u/avishai.d)\
**Post date:** [May 25, 2020, 12:48pm UTC](https://discuss.elastic.co/t/tif-files-in-fscrawler/231880/24 "2020-05-25T12:48:12Z")

</div>

Acording to tesseract documantation no need to install the language in windows only , downloading the appropriate training data -\> unpack it and copy the .traineddata file into the 'tessdata' directory  
which i did and still its not working..

> **[tesseract-ocr/tesseract](https://github.com/tesseract-ocr/tesseract/wiki)**
>
> Tesseract Open Source OCR Engine (main repository) - tesseract-ocr/tesseract

---

<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 25, 2020, 1:11pm UTC](https://discuss.elastic.co/t/tif-files-in-fscrawler/231880/25 "2020-05-25T13:11:24Z")

</div>

Then I don't know. Best guess is to check your tesseract installation.  
I'd generate an image from the pdf file you shared with me and try to manually send it to Tesseract to see if OCR is working well with Hebrew text.  
You told me that it works well with English content.

---

<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 22, 2020, 1:11pm UTC](https://discuss.elastic.co/t/tif-files-in-fscrawler/231880/26 "2020-06-22T13:11:41Z")

</div>

Closed on June 22, 2020, 1:11pm UTC

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

[Previous page](https://discuss.elastic.co/t/tif-files-in-fscrawler/231880.md?page=1)
