pypdftk
Python wrapper for PDFTK
What it is and what it does
pypdftk is a Python wrapper around the pdftk command-line tool, exposing its PDF manipulation capabilities through a Python API. It lets you fill PDF forms with data, merge multiple PDFs, extract or rearrange pages, split documents into individual pages, apply stamps, and perform compression operations—all by calling Python functions rather than invoking pdftk directly.
The package has no Python runtime dependencies and relies entirely on pdftk being available as a system binary. It was last updated in 2021 and is now abandoned, meaning no active maintenance or bug fixes are happening. While it still works if pdftk is installed, the lack of updates means it may not handle edge cases in modern PDFs or adapt to changes in pdftk itself.
Use it for:
- Batch-fill PDF forms with data from a database or spreadsheet in a web application.
- Merge generated report PDFs into a single document for distribution.
- Extract specific pages from large PDF files for selective processing or archival.
- Split a multi-page PDF into individual page files for downstream processing.
- Apply watermarks or stamps to PDFs as part of a document workflow.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python wrapper that drives the pdftk binary to fill PDF forms, merge PDFs, extract pages, split documents, and perform other PDF manipulation tasks.
Yes-with-conditions. Install only if you already have pdftk running on your system and need straightforward Python bindings to its core functions. Do not install if you need active maintenance, bug fixes, or support for edge cases—the package is abandoned and has not been updated since 2021. Consider alternatives if you require modern PDF handling or plan to rely on this for production systems.
Install
pypdftk on PyPI
pip
pip install pypdftkuv
uv add pypdftkpoetry
poetry add pypdftkInstalling pypdftk
Before you install
High install friction: requires the pdftk binary to be installed separately on the system. Package itself has not been updated since 2021 and is marked abandoned, with no recent maintenance activity.
License in practice
Licensed under BSD (permissive), which allows commercial and private use with minimal restrictions.
Quickstart
pip install pypdftk
import pypdftk
# Fill a PDF form
output = pypdftk.fill_form('template.pdf', {'field_name': 'value'})
# Merge PDFs
output = pypdftk.concat(['file1.pdf', 'file2.pdf'])
pdftk binary must be installed on the system separately; pypdftk is only a Python wrapper and will not function without it.
Verify before relying
- Whether pdftk binary is still actively maintained or available for all target operating systems.
- Compatibility with modern Python versions and current pdftk releases.
- Whether the package works reliably with contemporary PDF standards and encryption.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,951 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 216,971/month — #9,369 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pypdftk-0.5.tar.gz
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
fillpdfFills, flattens, and manipulates PDF forms by…
permissive · top 15,000 on PyPI
PyPDFFormPyPDFForm creates, inspects, styles, and fills…
permissive · top 15,000 on PyPI
pdfrwpdfrw reads, writes, and manipulates PDF files…
permissive · top 5,000 on PyPI
PyPDF3PyPDF3 is a pure-Python PDF toolkit for…
permissive · top 15,000 on PyPI
PyPDF4PyPDF4 is a pure-Python PDF toolkit for…
permissive · top 15,000 on PyPI
pdfrw2pdfrw2 reads, writes, and manipulates PDF files…
permissive · top 15,000 on PyPI
pdftextExtracts plain text or structured blocks,…
permissive · top 15,000 on PyPI
pikepdfpikepdf reads, writes, repairs, and transforms…
copyleft · top 5,000 on PyPI
python-documentcloudA Python wrapper for the DocumentCloud API that…
permissive · top 15,000 on PyPI
PyPDF2PyPDF2 is a pure-Python library for reading,…
permissive · top 1,000 on PyPI