Java PDF Manipulation APIs

Create, Process, Protect, Sign and Convert PDF files to various file formats without any Adobe Acrobat dependencies.

  Download Free Trial
Aspose.PDF for Java

Aspose.PDF for Java


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

Aspose.PDF for Java is an affordably priced, feature rich PDF 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 PDF documents.


Advanced Java PDF Parser API Features



Create PDF documents using the product API


Transform XML document into PDF format


Inter-convert PDF & images


Add text to the PDF document


Manipulate the style of text


Add graph objects & images


Add tables while creating PDF documents


Add headers & footers


Create bookmarks & add headings


Add headings


Add/Remove attachments and annotations


Specify security constraints


Set PDF encryption & passwords


Create PDF portfolio


Create PDF form Word documents


Create multiple column based PDF documents


Set page & margin size


Retrieve Raw Properties of Images


Set Locale


Easily use Latex script for mathematical formulas in the table cell


Annotation Title renamed after concatenation


Custom fonts on IBM iSeries


Save html file without fonts


Get all fonts from document


Extract paragraph's text from PDF


EPS to PDF conversion support

Convert PDF to Different Formats

With as little as 2-lines-of-code, you can implement robust PDF to Word, PDF to PowerPoint or PDF to HTML conversion features for your Java applications.

Save PDF in different formats - Java

// load the file to be converted
Document pdf = new Document(dir + "template.pdf");
// save in different formats + "output.docx", SaveFormat.DocX); + "output.pptx", SaveFormat.Pptx); + "output.html", SaveFormat.Html);

Dynamically Manage PDF Files

Aspose.PDF for Java offers the capability to create PDF documents from scratch as well as to manipulate existing PDF files and save the result in any of the supported file format including PDF/A compliant documents. When it comes to PDF generation, you can use its API or convert XML, PCL or image files to PDF format.

You can create tables as well as specify the table width, margin information, padding, row span, column span and default cell text. Aspose.PDF for Java also supports nested tables and integration of tables with data sources.

Content Formatting on Most Granular Level

Aspose.PDF for Java allows to apply text alignment, place contents in right-to-left languages such as Arabic, Hebrew and Urdu, create left hanging text paragraphs, preserve white space in text, set custom tab stops. You may also define text formatting for all segments of a document.

Along with the ability to specify horizontal alignment of the text, you can also specify vertical alignment of text segments such as baseline or topline. Text foreground and background colors can also be changed. You may use replaceable symbols which allow you to change the corresponding text content at runtime.

Protect PDF Files with Ease

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

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 + "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.

Aspose.PDF for Java also allows you to add, replace, extract or delete images already present in a PDF document. You may also add images as watermark while generating PDF documents or manipulating existing files.

Manipulate Sections & Paragraphs

Aspose.PDF for Java allows you to specify page size and page margin for each section within a document. API also facilitates to add page background images for each section and page header & footer sections. Moreover, unique IDs can be assigned to each section of the document. You may also add multiple paragraphs to each and every section of the document.

Process PDF Form Fields

Aspose.PDF for Java provides advanced features beyond simple form fields processing. With this single product, you get a bunch of features from simple addition & removal of form fields to advanced abilities 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: