pymupdf (@pymupdf) header
pymupdf (@pymupdf) profile picture

PDF → LLM-ready markdown. Built for RAG pipelines that actually work. Open source.

San Francisco
Joined January 2026
pymupdf retweeted
my top 5 python libraries this month: - requests - sqlite3 - tqdm - concurrent.futures - PyMuPDF
5
2
32
2,712
Needed to share bank statements but only the lines for one specific vendor. Asked Claude Code to black out everything else across 5 PDFs. It pulled in PyMuPDF, found the right rows, drew redaction boxes, and saved clean copies. Marker-on-paper, automated.
1
1
30
So how did I make it work? I extracted the PDF text with PyMuPDF, split it into chunks, turned them into embeddings with Sentence Transformers, and stored them in ChromaDB. PDF → chunks → embeddings → ChromaDB That was the basic setup
1
2
5
68
proposal for ending the document processing benchmark wars: 1. assume every benchmark is biased (alas) 2. test vendors on your own data 3. choose the one that works 4. everyone stops arguing and we go back to building thank you for coming to my ted talk
12
4
2
42
3,435
pymupdf retweeted
With PyMuPDF4LLM 1.28.2, we move to a fully AGPL v3 licensing with the PyMuPDF Layout package dependency and all the source goes public. The fastest CPU-only layout engine for PDF is now genuinely open source. Read more: pymupdf.io/blog/open-source-…
1
2
117
pymupdf retweeted
Sometimes an open source contribution starts as a problem in your own workflow. The author of this piece wanted PyMuPDF4LLM as a LangChain document loader, found it didn't exist, and built it. This is a great writeup of what followed, from first PR to standalone package: medium.com/@lakinduboteju/bu…
1
3
122
pymupdf retweeted
Replying to @bbddpp @GrablyR
J'utilise pymupdf4llm qui est adaptée de la librairie PyMuPDF. Pour des pdf avec du texte et des tableaux, ça marche très bien. Et on peut même demander au llm de fournir un script basé sur cette librairie pour faire le job de conversion
3
4
7
155
pymupdf retweeted
Tables can be one of the hardest problems in document intelligence. The latest PyMuPDF4LLM release majorly upgrades table extraction, and rebuilds table structure detection from the ground up: rows, columns, and full cell grids. Read more: pymupdf.io/blog/enhanced-tab…
1
3
94
pymupdf retweeted
PyMuPDF 1.28 is here! It brings four major upgrades, all built for the AI era: 📊 Better table extraction 🔍 Smarter adaptive OCR 📄 Native Markdown → PDF 📝 Native Office → Markdown You can now generate PDFs straight from .md with full control over fonts, colors, tables & layout via CSS. Learn more: pymupdf.io/blog/markdown-in-…
2
4
80
pymupdf retweeted
PyMuPDF makes it into the top 3 PDF parsers out there dude. This thing is magnificent, It also has PyMuPDF4LLM as an extension for converting PDFs into structured data for a RAG pipeline. Also has integrations with LangChain and LlamaIndex btw. Goated stuff.
2
3
10
312
pymupdf retweeted
Before you send a PDF page to OCR or an LLM, ask whether it needs to go at all. PyMuPDF reads char counts, image coverage, tables, and form widgets in milliseconds per page — enough to route each page and skip the spend. Code + walkthrough: artifex.com/blog/using-pymup…
2
1
3
117
pymupdf retweeted
If you're building anything that extracts data from PDFs with an LLM, you eventually hit the question: where on the page did this actually come from? PyMuPDF answers it with exact coordinates pulled from the PDF's own geometry. More about why this matters in document AI: artifex.com/blog/grounding-i…
3
3
85
Building this project made me realize that AI apps are really multiple tools working together behind the scenes. FastAPI, FAISS, Groq, SentenceTransformers, PyMuPDF each one solves a different problem, and together they power my RAG system. 🚀 #RAG #BuildInPublic #AI
🤖 Made with AI
2
2
6
149
Throwing newer models at a problem is not always the best solution. Obinna Iheanachor explains how combining PyMuPDF with GPT-4 Vision solved a large-scale extraction task faster and cheaper. towardsdatascience.com/from-…
3
7
1,410
Replying to @conorsen
do that locally. ask claude to help you install python and PyMuPDF (also known as fitz) (best open-source Python package for extracting contents from PDFs). zero dollars and will run on a CPU.
2
2
25
1,489
all depending on if you need OCR,work with embedded texts and or need a LLM to visually understand your PDF for me a mixture of tesseract, llm and simple layout detection / image extraction works the best. or github.com/pymupdf/pymupdf4l… for simple technical PDFs
1
2
55
pymupdf retweeted
(5/5) ⚙️ Built with React, FastAPI, CrewAI & PyMuPDF Exploring how multi-agent systems can simplify real-world healthcare workflows. Would love your feedback 🙌 #AI #Healthcare #FullStack #OpenSource
2
2
84
pymupdf retweeted
The pipeline: 1. Extract text from PDFs (PyMuPDF) and EPUBs (ebooklib) 2. Chunk into 4,602 segments, embed with sentence-transformers 3. Store in ChromaDB for semantic search 4. Extract 983 pasta shape entities, deduplicate down to 123 5. For each shape — multi-query retrieval across all 8 books 6. Generate 136 static pages with Astro The whole thing runs entirely locally: no API keys or external services.
2
2
3
95
Lesson 3: Hybrid beats pure LLM. Rule-based + ML fallback is king for tables/numbers. Regex + Camelot/PyMuPDF for structured data, then LLM only for semantic understanding. In production I've seen this push extraction F1 from ~0.72 → 0.91
1
2
2
48