Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

PyPDFForm: Fire: The Python Library for PDF Forms

Дата публикации: 15-01-2026 23:05:25



Основное содержимое страницы с новостью.

logo.png

PDF Form Automation Simplified - Create, Inspect, Style, and Fill Forms in Python or from the Command Line.

68747470733a2f2f696d672e736869656c64732e696f2f707970692f762f7079706466666f726d3f6c6162656c3d76657273696f6e26636f6c6f723d6d6167656e7461 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6368696e6170616e64616d616e2f7079706466666f726d3f6c6162656c3d646f637326636f6c6f723d6379616e 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d677265656e 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6368696e6170616e64616d616e2f7079706466666f726d3f6c6162656c3d6c6963656e736526636f6c6f723d6f72616e6765 68747470733a2f2f696d672e736869656c64732e696f2f707970692f707976657273696f6e732f7079706466666f726d3f6c6162656c3d707974686f6e26636f6c6f723d676f6c64 68747470733a2f2f7374617469632e706570792e746563682f62616467652f7079706466666f726d2f6d6f6e7468

Introduction

PyPDFForm is a Python library and command line tool for working with PDF forms. It provides Python APIs and CLI commands for creating, inspecting, updating, and filling forms, plus common PDF utilities.

With PyPDFForm, you can:

  • Create PDF forms, form fields, and raw elements.
  • Inspect form fields, metadata, and values.
  • Update field styling, behavior, and scripts.
  • Fill PDF forms.
  • Extract pages and merge PDFs.

The goal is to make PDF form work straightforward, whether you are handling one document or building a larger workflow.

Installing

To use PyPDFForm as a Python library, install the base package with pip:

To use the CLI, install PyPDFForm with the cli extra using pipx:

pipx install "PyPDFForm[cli]"

Quick Example

Check out the GitHub repository for a live demo if you can't see it here.

The GIF above shows the CLI filling a PDF form. To try the same workflow with the Python library, download the sample PDF form and run:

from PyPDFForm import PdfWrapper

filled = PdfWrapper("sample_template.pdf", need_appearances=True).fill(
    {
        "test": "test_1",
        "check": True,
        "test_2": "test_2",
        "check_2": False,
        "test_3": "test_3",
        "check_3": True,
    },
)

filled.write("output.pdf")

After running this snippet, output.pdf will be written to the location you specified and should look like this.

Documentation

The official documentation can be found on the GitHub page of this repository.

Other Resources

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Nano-PDF - Edit PDF files with Nano Banana022.503-01-2026
2icalendar: icalendar Parser Library for Python06.9409-08-2026
3miniword: A WYSIWYG Word Processor in Python01007-05-2026
4PyInfra: Infrastructure Deserves Real Code in Python, Not YAML Soup01007-02-2026
5rendercv - CV/resume generator, from YAML to PDF01011-01-2026
6djangofmt - A fast, HTML aware, Django template formatter, written in Rust01021-02-2026
7Pyre: New JIT Python interpreter written in Rust01006-04-2026
8pyStrich: 1D and 2D Barcode Generator Library01018-07-2026
9OpenDocs - Turn Your README Into Documentation01020-03-2026
10django-nanopages - Django pages from Markdown026.6725-01-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 10. Источник: pythondigest.ru.