iText for Java is a high-performance PDF library enabling developers to create, manipulate, and secure PDF documents programmatically.
iText for Java represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText can be a boon to nearly every workflow.
This tool is primarily used by developers who need to integrate PDF creation, editing, and digital signing capabilities into their Java applications. It supports workflows requiring PDF encryption, certificate management, and compliance auditing, making it suitable for enterprise document processing and secure data handling.
iText Core is licensed under AGPL, which requires open sourcing your application if distributed; commercial licenses are available for proprietary use. For cryptographic features, the bouncy-castle-adapter dependency must be included. Some PDF outputs may not render correctly in GitHub preview and should be viewed in dedicated PDF readers.
Add the itext.version property to your Maven pom.xml
Include the dependency for com.itextpdf:itext-core with the specified version
Include the dependency for com.itextpdf:bouncy-castle-adapter with the specified version
Refer to the official installation guidelines for advanced setup
Optionally build iText Community from source using the provided instructions
try (Document document = new Document(new PdfDocument(new PdfWriter("./hello-pdf.pdf")))) { document.add(new Paragraph("Hello PDF!")); }
Creates a simple PDF document with the text 'Hello PDF!'