Citations on every block
The Python SDK extracts text, tables, and semantic structure from any PDF, and every returned block carries a citation anchor: its page index, a confidence score, and an optional bounding box. Semantic AST extraction reads a tagged PDF’s StructTree so structure travels with the content.
Two interchangeable backends
Extraction runs through one of two interchangeable backends. The remote backend is the default and talks to a NextPDF Connect server over HTTP; the local pypdf backend (beta) runs fully offline. Both backends use the same SDK call surface.
Built for AI agents
The SDK ships an MCP server that exposes its extraction tools directly to AI agents. For high throughput, AsyncNextPDF builds on httpx.AsyncClient with connection pooling to drive concurrent requests, and a CLI (nextpdf extract, info, ast) covers scripted and terminal workflows.