PDFs in your workflow is burning around your 3xtokens , save them for free using Microsoft's Markitdown

Reddit r/AI_Agents Tools

Summary

Microsoft's Markitdown tool converts PDFs to markdown, saving tokens and cost when feeding documents to AI models like Claude, but requires caution with scanned PDFs, charts, and complex tables.

A raw PDF often goes through two "doors" at once: it's rasterized to an image (you pay image tokens) *and* text-extracted (you pay text tokens). On Claude an image is \~(w×h)/750 ≈ 1,500 tokens/page; the actual text is only \~700–900. So a 10-page doc is \~23k tokens as a PDF vs \~8k as markdown — and markdown usually reads *more* accurately too. Easiest fix is Microsoft's MarkItDown — `pip install 'markitdown[all]'` then `markitdown report.pdf -o report.md`. One line and your doc takes the cheap door. Catch: don't convert blindly. Scanned PDFs (MarkItDown won't OCR by default — add the `markitdown-ocr` plugin or you get hallucinated numbers), charts (the trend lives in pixels), and gnarly tables (its basic extraction can scramble them — reach for Docling/Marker) are where the text door throws away your answer. For a free detailed article just dm or comment
Original Article

Similar Articles

@Ryrenz: Throwing PDFs directly into large models? Tables get garbled, formulas break, and scanned documents can't even be read. These 5 tools help you convert documents into a clean format that AI can digest. 1. Stirling-PDF — All-in-one local PDF toolbox, 85k stars. Merge, split, compress, add watermarks, convert formats, dozens of operations…

X AI KOLs Timeline

This article introduces 5 open-source tools for converting documents into AI-readable formats: Stirling-PDF, MinerU, docling, marker, and OCRmyPDF, respectively targeting PDF editing, complex document conversion to Markdown, structured document output, high-precision PDF to Markdown, and OCR for scanned documents.

@AYi_AInotes: https://x.com/AYi_AInotes/status/2058536443174158504

X AI KOLs Timeline

The author shares their three-year experience of feeding PDFs to AI, pointing out that Markdown is a better input format for AI than PDF, because PDF is essentially a mix of coordinates and characters. AI needs to parse the structure first, which is error-prone and consumes more tokens. The article provides specific cases and recommended tools (markitdown, pandoc, LlamaParse), and teases a new series called 'The Art of Feeding AI'.

@BlockInsight214: Before feeding papers, contracts, or scanned documents to AI, the hardest step is often "cleaning up the PDF." These open-source projects specialize in that: converting to Markdown/JSON, ready for RAG or agents. ① MarkItDown · Microsoft, Office/PDF/images to Markdown in one click...

X AI KOLs Timeline

Introduces five open-source tools (MarkItDown, MinerU, Docling, marker, surya) that convert PDFs, Office documents, etc., into Markdown or JSON for direct use with RAG or AI agents.