# danfickle/openhtmltopdf

An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!

Repository: https://github.com/danfickle/openhtmltopdf
Canonical: https://ross.abutalabs.com/products/openhtmltopdf
Homepage: https://danfickle.github.io/pdf-templates/index.html
Language: Java
License: NOASSERTION
License Family: other
Topics: java, html, css, pdf, pdfbox, svg, accessibility, pdf-generation
Last push: 2024-06-14T18:05:00+00:00

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

## Adoption (not part of the score)
Stars 2176, forks 419 (observed 2026-08-28T04:06:22.217929+00:00)

## What it is
A pure-Java library that renders well-formed XHTML/HTML5 with CSS 2.1+ layout and outputs PDF documents (or images), built on Apache PDFBox. It supports SVG and MathML plugins, PDF/A compliance, and accessible PDFs (WCAG, Section 508, PDF/UA).

## Use cases
- generate pdf invoices from html templates
- convert html reports to pdf in java
- create accessible pdf documents that meet section 508
- render server-side pdf from xhtml with css
- generate pdf/a compliant documents
- produce pdfs with svg images embedded

## When to choose
- you need PDF generation on the JVM without native dependencies
- accessibility compliance (PDF/UA, WCAG, Section 508) is required
- you want PDF/A standards compliance and SVG support
- you can craft HTML/CSS specifically for the engine

## When to avoid
- you need to faithfully render arbitrary modern HTML5+ web pages
- you rely on OpenType font features
- you need heavy RTL/bidirectional text support

## Facets
- artifact type: library
- maturity: maintenance
- function: pdf, templating, image-processing
- domain: pdf, web-development, developer-tools
- platform: jvm, cross-platform
- tags: html-to-pdf, pdfbox, css-paged-media, accessible-pdf, pdf-ua, pdf-a, svg-support, java-library

## Member repositories
- danfickle/openhtmltopdf (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:22.217929+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-30T02:48:52.354965+00:00, confidence not recorded.
  - readme: https://github.com/danfickle/openhtmltopdf (fetched 2026-08-28T04:06:22.217929+00:00, sha 6c3644d3f873)
  - homepage: https://danfickle.github.io/pdf-templates/index.html (fetched 2026-08-29T10:28:52.068371+00:00, sha ebb8bd9bb2fc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
