pdfspine
API reference

Drawing & text

API for the Shape vector-drawing canvas and the Font and TextWriter glyph and text-layout primitives.

Shape is a reusable vector-drawing canvas for a page (Page.new_shape()). Font and TextWriter provide low-level glyph and text-layout primitives.

Shape

Full API for pdfspine.Shape — methods, signatures, and docstrings — is generated from source. See the pdfspine API reference or your editor's autocomplete.

Font

Full API for pdfspine.Font — methods, signatures, and docstrings — is generated from source. See the pdfspine API reference or your editor's autocomplete.

TextWriter

Full API for pdfspine.TextWriter — methods, signatures, and docstrings — is generated from source. See the pdfspine API reference or your editor's autocomplete.

On this page