PyPDFForm is a Python library for programmatically filling, flattening, and manipulating PDF forms (AcroForms, XFA, etc.). Current version is 4.8.2, with active development and frequent releases (multiple versions per month). It supports Python >=3.10 and provides both a Python API and a CLI.
pip install pypdfformVerified import paths — ran on the pinned version, not inferred.
Basic usage: open a template PDF, set form field values, and write output. Use flatten() to make fields non-editable.
Use from pypdfform import PdfWrapper and avoid importing internal modules directly.
Remove defer parameter usage. If you need deferred operations, use the main update_field method without defer.
Check the widget's appearance dictionary; typically set pdf['checkbox_field'] = 'Yes' or pdf['radio_field'] = 'Choice1'.
No dependency data recorded yet.