PDF File Manipulation API for Java

Create, parse, protect, sign and convert PDF files to various file formats without requiring Adobe Acrobat.

  Download Free Trial
Aspose.PDF for Java

Aspose.PDF for Java


Aspose.PDF for Java is a fast and lightweight PDF processing API to generate, modify, convert, render, secure and print PDF documents without using Adobe Acrobat. API supports working with PDF, TXT, HTML, PCL, XML, XPS and image file formats.

Aspose.PDF for Java is an affordably priced, feature-rich API that offers PDF compression options, table creation and manipulation, graph support, image functions, extensive hyperlink functionality, extended security controls and custom font handling. Moreover, developers can create PDF documents directly through its API or via XML templates, and can create forms or manage form fields embedded in the documents.


Advanced Java PDF Parser API Features



Inter-convert PDF & images


Add text to the PDF documents


Add graph objects & images


Add tables while creating PDF documents


Create bookmarks & add headings


Add/Remove attachments and annotations


Set PDF encryption & passwords


Create PDF from Word documents


Create multiple columns based PDF documents


Add, update, delete text & images


Easily use Latex script for mathematical formulas in the table cell


Extract paragraph's text from PDF

Convert PDF to Different Formats

Aspose.PDF for Java allows converting PDF to any of different supported format like Word, HTML, PowerPoint etc within Java applications is easy with just a few lines of code.

Save PDF in different formats - Java

// load the file to be converted
Document pdf = new Document(dir + "template.pdf");
// Convert PDF to DOCX, HTML and PPTX
pdf.save(dir + "output.docx", SaveFormat.DocX);
pdf.save(dir + "output.pptx", SaveFormat.Pptx);
pdf.save(dir + "output.html", SaveFormat.Html);

Dynamically Manage PDF Files

Aspose.PDF for Java API not only creates files from scratch but also manipulates and saves PDF documents to multiple formats including PDF/A compliant documents. Moreover, API also supports PDF generation from XML, PCL or image files.

Few of the files manipulation capabilities of API are table creation, specifying the table width, margin information, padding, row span, column-span, default cell text and much more. Nested tables, as well as the integration of tables with data sources, also supported.

Content Formatting on Most Granular Level

Aspose.PDF for Java has the ability to align text horizontally as well as vertically. Within horizontal alignment, one can easily change content alignment from left to right with respect to languages such as Arabic, Hebrew, and Urdu and can handle white spaces in the text, set custom tab stops and much more. For vertical alignment, one can adjust text segments such as baseline or topline.

Furthermore, API supports defining text formatting for all segments of a document, changing text foreground and background colors and usage of replaceable symbols which allows changing the corresponding text content at runtime.

Protect PDF Files with Ease

Aspose.PDF for Java offers the facility to encrypt documents with a verity of encryption algorithms and key sizes. You may also set master and user passwords for further security. Content modification in documents such as content copying, printing, form field completion, degraded printing, annotation modification as well as PDF document assembly can all be restricted by using this library.

Encrypt PDF document - Java

// load PDF to be encrypted
Document pdf = new Document(dir + "template.pdf");
// encrypt the PDF document
pdf.encrypt("userPassword", "ownerPassword", 0, CryptoAlgorithm.AESx256);
// save the encrypted PDF
pdf.save(dir + "output.pdf");

Enhance PDF Reports with Graphs & Images

Aspose.PDF for Java supports graphs, which can be drawn on any page specified by coordinates. You may also choose to rotate or scale the existing graphs to suit your requirements.

API allows images insertion, replacement and deletion, present within PDF files as well as enables to use images as watermark while generating PDF documents or manipulating existing files.

Process PDF Form Fields

Beyond simple form fields processing like addition & removal of form fields, PDF API provides advanced features such as converting Dynamic XFA form to Standard AcroForm, getting form fields from a specific region of PDF document, adding tooltips and setting custom fonts for the form fields.

Adobe Acrobat Automation - Not Needed

Aspose.PDF for Java APIs are built using managed code that can be installed and deployed without needing Adobe Acrobat installed. It is easier and flexible to use as compared to Adobe Acrobat automation.

What People Are Saying

Don't just take our word for it. See what users have to say about Aspose.PDF APIs.

View Case Studies

Support and Learning Resources


Aspose.PDF offers individual PDF APIs for other popular development environments as listed below: