# PDF Scans \> TEXT in Default Data Loader (image pdf) processing

**URL:** <https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030>\
**Category:** Questions\
**Tags:** data-transformation, read-pdf\
**Created:** [May 5, 2025, 12:42pm UTC](https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030 "2025-05-05T12:42:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![buildscool](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/buildscool/32/75751_2.png) [@buildscool](https://community.n8n.io/u/buildscool)\
**Post date:** [May 5, 2025, 12:42pm UTC](https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030/1 "2025-05-05T12:42:27Z")

</div>

Hi everyone,

I am building a robust agent for loading data from GDRIVE → Vector storage.

Right now I am working on having it handle .PDFs. It loops through text PDFs fine, but seems to get stuck at PDF scans that are image-based and not text based.

I would like it to be able to handle both cases, any suggestions on how to process image PDFs and load their content into the DB with the text splitter?

 ![Screenshot 2025-05-05 144106](https://europe1.discourse-cdn.com/n8n/original/3X/6/6/66fd5b6d287ef3936136a42fbe08bbb3e98ccdf7.png)

---

<div class="post-metadata">

**Author:** ![Duarte\_Carreira](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/duarte_carreira/32/11960_2.png) [@Duarte\_Carreira](https://community.n8n.io/u/Duarte_Carreira)\
**Post date:** [May 7, 2025, 2:49pm UTC](https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030/2 "2025-05-07T14:49:04Z")

</div>

Hey, looking into the same… did you get it working?

---

<div class="post-metadata">

**Author:** ![buildscool](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/buildscool/32/75751_2.png) [@buildscool](https://community.n8n.io/u/buildscool)\
**Post date:** [May 9, 2025, 10:44am UTC](https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030/3 "2025-05-09T10:44:34Z")

</div>

No we decided to wait on image-only PDF support until the next version.

But From what I found so far:

You could build a workflow that identifies if the PDF is text OR image only, and route your workflow based on that check.

We already have the text-based workflow (standard) working.

Image based PDFs (for us we would still need to preserve the formatting information so we technically need both) my plan is to do something like this:

1. Convert the PDF to images, upload them to cloud (aws).
2. Optional: OCR the PDF (there are tools for this, recommendation was “tesseract”), then load to vector store as normal.
3. Combine image scan URLs and other metadata in a sidecar json file for each PDF.

This is specific to our case, you may not need everythign we have. Just know that to find out if a PDF is an image only or text PDF is farily straightforward, i havent tested it yet but will likely add it in a few days. You basically execute a free PDF\>Text converter script, and if it returns 0, you know its an image.

---

<div class="post-metadata">

**Author:** ![Duarte\_Carreira](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/duarte_carreira/32/11960_2.png) [@Duarte\_Carreira](https://community.n8n.io/u/Duarte_Carreira)\
**Post date:** [May 9, 2025, 11:16am UTC](https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030/4 "2025-05-09T11:16:09Z")

</div>

Thanks for the tips!  
I am now looking into using gdrive as a way to get a more or less universal converter, including ocr.  
This is a very nice template Im looking into:

> **[🤖 AI Powered RAG Chatbot for Your Docs + Google Drive + Gemini + Qdrant | n8n...](https://n8n.io/workflows/2982-ai-powered-rag-chatbot-for-your-docs-google-drive-gemini-qdrant/)**
>
> 🤖 AI-Powered RAG Chatbot with Google Drive IntegrationThis workflow creates a powerful RAG (Retrieval-Augmented Generation) chatbot that can process, store, an

---

<div class="post-metadata">

**Author:** ![Wouter\_Nigrini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wouter_nigrini/32/150261_2.png) [@Wouter\_Nigrini](https://community.n8n.io/u/Wouter_Nigrini)\
**Post date:** [May 9, 2025, 2:26pm UTC](https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030/5 "2025-05-09T14:26:51Z")

</div>

Why dont you try and use Mistral’s new OCR, which can pull images out of pdfs for you next to the text?

> **[Mistral OCR | Mistral AI](https://mistral.ai/news/mistral-ocr)**
>
> Introducing the world’s best document understanding API.

[https://docs.mistral.ai/capabilities/document/](https://docs.mistral.ai/capabilities/document/)

---

<div class="post-metadata">

**Author:** ![buildscool](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/buildscool/32/75751_2.png) [@buildscool](https://community.n8n.io/u/buildscool)\
**Post date:** [May 22, 2025, 11:55am UTC](https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030/6 "2025-05-22T11:55:21Z")

</div>

I had this problem and found this, which so far seems good but in the process of testing it right now.

> **[Unstructured Data Platform for GenAI | Unstructured](https://unstructured.io/)**
>
> Transform complex, unstructured data into clean, AI-ready inputs. Connect to any source, process 64+ file types, and power your GenAI projects. Start now.

A little more complex to set up, so depends on how robust you want your document handling to be.

---

<div class="post-metadata">

**Author:** ![Duarte\_Carreira](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/duarte_carreira/32/11960_2.png) [@Duarte\_Carreira](https://community.n8n.io/u/Duarte_Carreira)\
**Post date:** [May 22, 2025, 5:06pm UTC](https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030/7 "2025-05-22T17:06:46Z")

</div>

Hey thanks for the tip. Actually I had looked at unstructured and decided too much complexity for the present work…

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [June 17, 2025, 6:10pm UTC](https://community.n8n.io/t/pdf-scans-text-in-default-data-loader-image-pdf-processing/111030/8 "2025-06-17T18:10:04Z")

</div>

Closed on June 17, 2025, 6:10pm UTC

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