Cookbook
Runnable recipes for PDF to Markdown, chunking, RAG and document processing with PyMuPDF. Open any recipe in Colab or download the notebook.
AICitationsPDFGrounding
Cite Claude Answers
Sends a PDF to Claude with citations enabled, locates each cited passage on the page with PyMuPDF, highlights it, and exports coordinates for a web viewer.
Intermediate · 3 min read
AICitationsPDFGrounding
Ask a PDF and Highlight the Evidence
Answer questions from a PDF with page citations, verify each quoted passage, and create a copy with the evidence highlighted using PyMuPDF.
Intermediate · 7 min read
EmailPDFPyMuPDF
Convert an email to a PDF
Turn an email into a PDF document using PyMuPDF.
Intermediate · 4 min read
MarkdownRAGChunking
Convert a PDF to Markdown for RAG
Turn a PDF into structured Markdown and token-sized chunks ready for embedding, using PyMuPDF locally with no GPU or API key.
Beginner · 2 min read
ClaudeCitationsPDF
PDF Highlighting with Citations
Use Claude to analyze a PDF and highlight the passages that support its answers.
External cookbook