{"library":"pypdfform","title":"PyPDFForm","description":"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.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pypdfform"],"cli":{"name":"pypdfform","version":"PyPDFForm CLI dependencies are not installed. Install them with: pip install 'PyPDFForm[cli]'"}},"imports":["from pypdfform import PdfWrapper"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pypdfform import PdfWrapper\n\n# Fill a PDF form\nwith open('template.pdf', 'rb') as f:\n    pdf = PdfWrapper(f)\npdf['field_name'] = 'value'\nwith open('output.pdf', 'wb') as f:\n    f.write(pdf.read())\n\n# Flatten the form (remove interactivity)\npdf.flatten()\nwith open('output_flattened.pdf', 'wb') as f:\n    f.write(pdf.read())","lang":"python","description":"Basic usage: open a template PDF, set form field values, and write output. Use flatten() to make fields non-editable.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}