---
title: "Comment by Ahmet Özel on \"Converting PDFs to Clean Markdown for RAG and LLM Pipelines\" | Hashnode"
description: "The arXiv result demonstrates the native-text path, but ocrPages: 0 cannot validate auto mode's decision on a bad text layer. A PDF can contain extractable char"
url: "https://hashnode.com/posts/converting-pdfs-to-clean-markdown-for-rag-and-llm-pipelines/6ae4f83ca7f435a537df2d97/comment/6ae79118b1e56f7a74748882"
---

[Discussion](https://hashnode.com/posts/converting-pdfs-to-clean-markdown-for-rag-and-llm-pipelines/6ae4f83ca7f435a537df2d97)

Comment [Converting PDFs to Clean Markdown for RAG and LLM Pipelines](https://hashnode.com/posts/converting-pdfs-to-clean-markdown-for-rag-and-llm-pipelines/6ae4f83ca7f435a537df2d97)

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Nov 1](https://hashnode.com/posts/converting-pdfs-to-clean-markdown-for-rag-and-llm-pipelines/6ae4f83ca7f435a537df2d97/comment/6ae79118b1e56f7a74748882)

The arXiv result demonstrates the native-text path, but ocrPages: 0 cannot validate auto mode's decision on a bad text layer. A PDF can contain extractable characters that are garbled or ordered incorrectly, which is different from having no text layer at all.

I would add three small fixtures: a clean text page, an image-only scan, and an image with a deliberately unusable embedded text layer. Checking both the selected extraction path and expected words would distinguish successful routing from merely returning Markdown. That would also give the OCR limitations a directly reproducible example.
