# py-pdf/pypdf

A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files

Repository: https://github.com/py-pdf/pypdf
Canonical: https://ross.abutalabs.com/products/pypdf
Homepage: https://pypdf.readthedocs.io/en/latest/
Language: Python
License: NOASSERTION
License Family: other
Topics: pypdf2, pdf, python, pdf-parser, pdf-parsing, pdf-manipulation, pdf-documents, help-wanted
Last push: 2026-08-26T19:15:19+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 5353, "days_push": 7, "days_rel": 10, "gap_med": 7.0, "n_releases_24m": 55}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10173, forks 1617 (observed 2026-08-28T04:10:39.749282+00:00)

## What it is
pypdf is a free, open-source, pure-Python library for manipulating PDF files. It supports splitting, merging, cropping, and transforming pages, as well as extracting text and metadata, adding annotations, watermarks, and encryption.

## Use cases
- merge multiple pdf files into one
- split a pdf into separate pages
- extract text from a pdf in python
- add a password to a pdf
- crop and rotate pdf pages
- read pdf metadata and annotations
- add a watermark to a pdf

## When to choose
- you need to manipulate PDFs programmatically in Python without external dependencies
- you want to merge, split, or transform PDF pages
- you need to extract text or metadata from PDFs
- you want to encrypt, decrypt, or annotate PDFs

## When to avoid
- you need to render PDFs visually or create complex PDF layouts from scratch
- you need a command-line tool (see pdfly instead)
- you need high-fidelity OCR of scanned documents

## Facets
- artifact type: library
- maturity: active
- function: pdf, parser, ocr
- domain: pdf, files, developer-tools
- platform: python, cross-platform
- tags: pdf-manipulation, pdf-parsing, text-extraction, encryption, merging, splitting, pure-python

## Member repositories
- py-pdf/pypdf (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:39.749282+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:39.576144+00:00, confidence not recorded.
  - readme: https://github.com/py-pdf/pypdf (fetched 2026-08-28T04:10:39.749282+00:00, sha ea60d3ebf81e)
  - homepage: https://pypdf.readthedocs.io/en/latest/ (fetched 2026-08-29T08:19:12.340851+00:00, sha ff990c974aca)
  - registry_pypi: https://pypi.org/pypi/pypdf/json (fetched 2026-08-29T08:19:12.350075+00:00, sha 75791d35b106)
- Data as of 2026-08-30T08:39:29.467469+00:00.
