skillfed

pypdftk

Python wrapper for PDFTK

pypdftk v0.5 217.0K downloads/30d#9,369 on PyPI150
Permissive license Abandoned released

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 pypdftk

uv

uv add pypdftk

poetry

poetry add pypdftk

Installing 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

Development Status :: 4 - BetaEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: Utilities

Tags

pdf form fillingmerge pdf filesextract pdf pagessplit pdf documentspdf manipulation wrapperpdftk python interfacepdf page extraction
pdf-manipulationwrapper-library

More Utilities packages