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

PDF Document Creation Features

Aspose.Pdf for Java API supports creating PDF documents in Java applications. It offers the facility to specify different bookmark levels for headings contained within a document as well as the compression level of the document, default document open action (fit to page or fit box), document open mode and appearance of thumbnails & bookmarks.

Section & Paragraph Features

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.

Text Formatting Features

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.

Aspose.Pdf for Java is also a great product when it comes to text extraction, text replacement and insertion of new text inside an existing PDF document.

Graph & Imaging Capabilities

Aspose.Pdf for Java provides support for many different types of graphs: graphs can be drawn on any page location specified by coordinates and existing graphs can be rotated and scaled to suit your requirements. You may also try converting images residing on disk, memory or web location, to PDF format. Along with conventional image types, CCITT (fax) images, multi-page TIFF images and transparent GIF images are also supported.

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.

Add Table to PDF Documents

Programmers can add tables to PDF documents, specifying table border style, margin and padding information, column widths and spanning options, row splitting attributes of tables can also be controlled. Table cloning is supported in two forms - clone and complete clone. You can import data from an object array, DataTable or DataView into the tables.

Default cell formatting can be applied to all table cells, individual rows and columns as well as the ability to format nested tables. Tables can be placed inside the main PDF document or inside its header or footer.

Hyperlink & Attachments Features

Aspose.Pdf for Java allows you to add:

  • Hyperlink shortcuts to other pages within a PDF document
  • Hyperlinks to pages in other PDF documents
  • Hyperlinks to non-PDF files
  • Hyperlinks to web locations

Files of any type can be attached to a PDF document where note annotations can also be attached and you can specify the exact position and the size of the note's popup window.

Form Field Features

With Aspose.Pdf for Java, form fields can be programmatically created inside PDF documents. Just order the position of the form fields as per a table or by custom positioning, and the form fields will be placed in the exact position every time.

PDF Security Features

Aspose.Pdf for Java offers the facility to encrypt PDF documents with either 40-bit or 128-bit encryption. 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.

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.


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