PyMuPDF Logo
Use CasesGroundingBenchmarkBlogLicensing
Contact UsGet Started

Ground AI answers in PDFs with PyMuPDF

Extract text, layout and page coordinates with PyMuPDF so every AI answer can cite and highlight the exact passage it came from.

Articles

Cite Claude's answers

Cite Claude's Answers at the Exact Spot in the PDF

November 10, 2026
AI and positional grounding

Grounding in document extraction

May 12, 2026
Documentation

PyMuPDF & Grounding

Learn three grounding patterns, starting with answer and citation grounding, and how PyMuPDF links every extracted claim back to its source document, page and region.

Read the docs

Cookbook recipes

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
PyMuPDF Logo

© 2026 Artifex Software Inc. All rights reserved.

PyMuPDFPyMuPDF OfficeLicensing
BlogForumDocumentationPrivacy PolicyChangelog

© 2026 Artifex Software Inc. All rights reserved.