pdfspine
API reference

API reference

Overview of the complete public pdfspine API, with a map of how the reference pages are organised.

This reference documents the complete public API of pdfspine — every name exported from the top-level package (pdfspine.__all__). Each class, function and constant is rendered directly from its docstring, so the reference never drifts from the implementation.

import pdfspine

Methods that exist but raise PdfUnsupportedError are documented as such in their docstrings; see Migrating from PyMuPDF for the deferred / out-of-scope surface.

How this reference is organised

PageCovers
Documents & pagesDocument, Page
Text extractionTextPage
RenderingPixmap, DisplayList
Annotations & formsAnnot, Widget
Drawing & textShape, Font, TextWriter
TablesTable, TableFinder
NavigationLink, linkDest, Outline
ColorColorspace
ToolsTools
GeometryRect, IRect, Point, Matrix, Quad
Functionsopen, install_fitz_shim, identity_matrix, helpers
ExceptionsPdfError hierarchy
ConstantsPDF_* / TEXT_* / STAMP_* values, colorspace singletons

On this page