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 (JPEG, PNG, TIFF, BMP, SVG, GIF, EMF, WMF, ICON, EXIF).

Aspose.PDF for Java is an affordably priced PDF API that offers an incredible wealth of features like: PDF compression options, table creation and manipulation, graph support, image functions, extensive hyperlink functionality, extended security controls and custom font handling.

Aspose.Pdf for Java allows you to create PDF files directly through the provided API and XML templates. Using Aspose.Pdf for Java will also enable you to add PDF capabilities to your applications in no time.


Advanced Java PDF Processing API Features

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


Create new PDF documents using the product API


Transform an XML document into PDF format


Convert an image file into PDF format or convert PDF file to Image format


Add text to the PDF document


Convert XPS file to PDF format


Manipulate the style of text while adding it to a PDF document


Adding graph objects while creating PDF documents


Add tables while creating PDF documents


Add headers and footers during PDF generation


Create bookmarks during PDF document creation


Add headings during PDF creation


Add/Remove attachments & annotations from PDF


Specify security constraints during PDF generation


Set PDF encryption and passwords during PDF creation


Create PDF portfolio


Create PDF form documents


Add watermarks during PDF generation


Create multiple column based PDF documents


Set page and margin size during PDF generation

PDF Document Creation Features

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

Section And Paragraph Features

Aspose.Pdf allows you to specify page size and page margin size of each section within a document. Page background images for each section, page header and footer sections can also be set. Unique IDs can be assigned to each section of the document and Aspose.Pdf for Java facilitates the addition of multiple paragraphs to each and every section of the document. You can also specify the exact margin of each paragraph.

Text Features

With Aspose.Pdf for Java - certain text customization features like: right, left, center text alignment, justify or full justify can be applied to all text within a PDF document, left hanging text paragraphs can be created, white space in text can be preserved, text format can be set and inherited from child nodes of the PDF DOM (Document Object Model), text formatting for all segments of a document including the ability to change text to underline, overline or strikeout.

Replaceable symbols are also supported to allow you to change the corresponding text content at runtime, Right-to-left languages such as Arabic, Hebrew and Urdu for example are also supported in the latest Beta version of the Aspose.Pdf for Java.

Graph And Imaging Capabilities

Aspose.Pdf for Java API provides support for many different types of graphs that can be drawn on any page location specified by coordinates and graphs can be also rotated and scaled to suit your requirements.

With Aspose.Pdf for Java - images can be inserted into documents from disk or memory, web images can also be added by providing their URL. Along with conventional image types, CCITT (fax) images, multi-page TIFF images and transparent GIF images are also supported.

Add Table To PDF Documents

Using Aspose.Pdf for Java API - 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 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 And 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 by way of a table or by custom positioning and 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, master and user passwords can also be set 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 compared to Adobe Acrobat automation.


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