OpenPDF
The facts below are what the maker publishes about OpenPDF, checked and dated. Our editors have not written about it yet.
Plans and prices
From OpenPDF's own pricing page, checked 9 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| OpenPDF | Free | Open-source Java library · dual-licensed MPL-2.0 OR LGPL-2.1+ |
The facts
Each one read from OpenPDF's own pages, with the date it was checked.
What it does
- Compression
- It can read and write Brotli-compressed PDF streams, while default compression remains FlateDecode for compatibility with older PDF readers.checked 9 Oct 2026
- Distribution
- The README shows use as a Maven dependency and identifies the latest listed dependency version as 3.0.5.checked 9 Oct 2026
- Document features
- The library supports text and font handling, text extraction, images, graphics, tables, encryption, and page layout settings.checked 9 Oct 2026
- HTML to PDF
- The openpdf-html module generates PDFs from HTML/CSS content, including styled reports, invoices, and documents from web templates.checked 9 Oct 2026
- Java and Kotlin
- OpenPDF is a Java library and provides a Kotlin module for creating PDF files using Kotlin.checked 9 Oct 2026
- 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.checked 9 Oct 2026
- 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.checked 9 Oct 2026
- Optional dependencies
- BouncyCastle is recommended for PDF signing, and Apache FOP is listed as an optional dependency for complex glyph substitution.checked 9 Oct 2026
- PDF editing
- It can modify existing PDFs by adding or removing pages and modifying text.checked 9 Oct 2026
- PDF standard
- The project lists PDF 2.0 support (ISO 32000-2).checked 9 Oct 2026
- Rendering
- The openpdf-renderer module renders PDF pages as images or displays them in Java webapp, Swing, or JavaFX applications.checked 9 Oct 2026
- Security limits
- OpenPDF does not validate or sandbox input; developers are responsible for ensuring inputs are trusted, sanitized, and safe.checked 9 Oct 2026
- 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.checked 9 Oct 2026
- 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.checked 9 Oct 2026
- What it does
- OpenPDF is an open-source Java library for creating, editing, rendering, and encrypting PDFs, including generating PDFs from HTML.checked 9 Oct 2026
Alternatives to OpenPDF
- 1

MuPDF
Free planAndroidiOSWebLinux7.7From $299 a month - 2
ComPDFKit PDF SDK
Free planAndroidiOSWebAPI7.4From $240 a year - 3
Spire.PDF
Free planAndroidiOSWebAPI7.3$999 one-time - 4

Aspose.PDF
AndroidWebAPILinux6.9$1,199 one-time - 5
WeasyPrint
Free planAPILinuxmacOSSelf-hosted6.9From €150 a year - 6
PDFsharp
Free planLinuxmacOSSelf-hostedWindows6.8$499 one-time
