# plutoprint/plutoprint

A Python Library for Generating PDFs and Images from HTML, powered by PlutoBook

Repository: https://github.com/plutoprint/plutoprint
Canonical: https://ross.abutalabs.com/products/plutoprint
Homepage: https://plutoprint.readthedocs.io
Language: Python
License: MIT
License Family: permissive
Topics: css, html, pdf, python, svg, pdf-generator, html-to-image, html-to-pdf, image-generator, plutobook
Last push: 2026-08-20T17:33:23+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 96, longevity 60
- inputs: {"age_days": 851, "days_push": 13, "days_rel": 29, "gap_med": 11, "n_releases_24m": 24}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1163, forks 43 (observed 2026-08-28T04:03:49.702138+00:00)

## What it is
PlutoPrint is a Python library for generating high-quality PDFs and PNG images from HTML or XML content, built on the PlutoBook rendering engine. It supports paged rendering with CSS, page-range exports, and a bundled command-line script.

## Use cases
- generate pdf invoices from html templates
- convert html to pdf in python
- render html reports as png images
- create printable tickets from html
- export specific page ranges from an html document
- snapshot web content as images

## When to choose
- you need paged, print-quality PDF output from HTML with CSS support
- you want a lightweight Python API without a headless browser
- you need both PDF and PNG rendering from the same HTML source

## When to avoid
- you need to execute JavaScript in the HTML before rendering
- you require pixel-perfect rendering of complex modern web pages as a browser would
- you need formats other than PDF and PNG

## Facets
- artifact type: library
- maturity: active
- function: pdf, image-processing, templating
- domain: pdf, web-development, files
- platform: python, windows, cli
- tags: html-to-pdf, html-to-image, pdf-generator, css-paged-media, svg, rendering-engine, linux, macos

## Member repositories
- plutoprint/plutoprint (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:49.702138+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-30T06:31:34.623246+00:00, confidence not recorded.
  - readme: https://github.com/plutoprint/plutoprint (fetched 2026-08-28T04:03:49.702138+00:00, sha b054555b9b7c)
  - registry_pypi: https://pypi.org/pypi/plutoprint/json (fetched 2026-08-29T12:36:23.590903+00:00, sha 8a92760bf92c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
