Skip to content
SPECIFICTION
Get listed

OpenPDF

github.com

Free plan WindowsmacOSLinuxAndroidSelf-hosted
Visit github.com
Spec score 7.9 #14 of 31 in PDF SDKs

Spec sheet

What it does
OpenPDF is an open-source Java library for creating, editing, rendering, and encrypting PDFs, including generating PDFs from HTML.Read 9 Oct 2026 · github.com
Compression
It can read and write Brotli-compressed PDF streams, while default compression remains FlateDecode for compatibility with older PDF readers.Read 9 Oct 2026 · github.com
Distribution
The README shows use as a Maven dependency and identifies the latest listed dependency version as 3.0.5.Read 9 Oct 2026 · github.com
Document features
The library supports text and font handling, text extraction, images, graphics, tables, encryption, and page layout settings.Read 9 Oct 2026 · github.com
HTML to PDF
The openpdf-html module generates PDFs from HTML/CSS content, including styled reports, invoices, and documents from web templates.Read 9 Oct 2026 · github.com
Java and Kotlin
OpenPDF is a Java library and provides a Kotlin module for creating PDF files using Kotlin.Read 9 Oct 2026 · github.com
Java requirements
The README lists Java 21 or later for version 2.1.x and later, Java 17 or later for 2.0.x, Java 11 or later for 1.4.x, and Java 8 or later for 1.3.x.Read 9 Oct 2026 · github.com
Licensing
The core library is dual-licensed under Mozilla Public License 2.0 or GNU Lesser General Public License 2.1; the HTML and renderer modules are LGPL 2.1 only.Read 9 Oct 2026 · github.com
Optional dependencies
BouncyCastle is recommended for PDF signing, and Apache FOP is listed as an optional dependency for complex glyph substitution.Read 9 Oct 2026 · github.com
PDF editing
It can modify existing PDFs by adding or removing pages and modifying text.Read 9 Oct 2026 · github.com
PDF standard
The project lists PDF 2.0 support (ISO 32000-2).Read 9 Oct 2026 · github.com
Rendering
The openpdf-renderer module renders PDF pages as images or displays them in Java webapp, Swing, or JavaFX applications.Read 9 Oct 2026 · github.com
Security limits
OpenPDF does not validate or sandbox input; developers are responsible for ensuring inputs are trusted, sanitized, and safe.Read 9 Oct 2026 · github.com
Security risks
The security policy calls out risks including local file access, SSRF, path traversal, unsafe Base64 content, and memory exhaustion from large or malformed PDFs.Read 9 Oct 2026 · github.com
Support and contributions
The project welcomes pull requests and bug reports through its GitHub repository, and links to examples, JavaDoc, and a work-in-progress tutorial.Read 9 Oct 2026 · github.com

Plans and prices

OpenPDF Free Open-source Java library · dual-licensed MPL-2.0 OR LGPL-2.1+ Read 9 Oct 2026 · github.com

Every OpenPDF plan and price →

Where Specifiction places it

Alternatives to OpenPDFAll alternatives →