Java APIs to manipulate PDF documents

Create, read, edit PDF files and convert to various file formats. Protect, sign or print PDF documents without installing Adobe Acrobat.

  Download Free Trial
Aspose.PDF for Java

Aspose.PDF for Java

 
  

Aspose.PDF for Java is a PDF document creation API that enables Java applications to read, write and manipulate PDF documents without using Adobe Acrobat. It 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 Processing API Features

Delivering our very best, and getting better with each release.

 

Create PDF documents using the product API

 

Transform XML document into PDF format

 

Inter-convert PDF & images

 

Add text to the PDF document

 

Convert XPS file to PDF format

 

Manipulate the style of text

 

Add graph objects & images

 

Add tables while creating PDF documents

 

Add headers & footers

 

Create bookmarks & hyperlinks

 

Add headings

 

Add/Remove attachments & 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

Convert PDF to Word, PowerPoint & HTML 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
pdf.save(dir + "output.docx", SaveFormat.DocX);
pdf.save(dir + "output.pptx", SaveFormat.Pptx);
pdf.save(dir + "output.html", SaveFormat.Html);

Create & Manipulate PDF Documents On the Fly

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.

Format Contents 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.

Secure PDF Documents 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
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.

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: