Registry / utility / itextpdf

itextpdf

JSON →
library5.5.13javamavenunverified

A free Java-PDF library for creating and manipulating PDF documents programmatically.

<dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.13</version> </dependency>
INSTALL
IMPORT
SIG · ITEXTPDF
I
itextpdf
utilityjavav5.5.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Document
com.itextpdf.text.Document

Minimal example of creating a PDF with a paragraph of text.

import com.itextpdf.text.Document; import com.itextpdf.text.Paragraph; import com.itextpdf.text.pdf.PdfWriter; public class Main { public static void main(String[] args) throws Exception { Document document = new Document(); PdfWriter.getInstance(document, new java.io.FileOutputStream("test.pdf")); document.open(); document.add(new Paragraph("Hello, World!")); document.close(); } }
Debug
Known issues
gotchaiText 5.x is the last AGPL-licensed version; later versions (iText 7+) require a commercial license for closed-source use.
fix
If you need a permissive license, consider using iText 7 with a commercial license or an alternative like Apache PDFBox.
affects: >=5.0.0
Upgrade
Version history
5.5.13latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
itextpdf — mvn dependency:get itextpdf · libregistry