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 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.
At A Glance
Some of the advanced capabilities of Aspose.PDF for Java.
- Create PDF from Scratch
- Update Existing PDF Files
- Save as PDF/A Format
- Manage Images
- Manage Attachments
- Manage Pages
- Create & Manage Forms
- Read Annotation from PDF
- Add Text Annotation
- Format Annotation Text
- Load Password Protected Files
- Digitally Sign Documents
- Text File
- XLS, XLSX
- DOC, DOCX
Aspose.PDF for Java is implemented using Java and it works with JDK 1.8 or above.
- JSP/JSF Application
- Desktop Application
Supported File Formats
Aspose.PDF for Java supports most popular file formats.
- Fixed Layout: PDF, PDF/A, XPS
- Books: EPUB
- Web: HTML, MHTML
- Others: TEX, CGM, XSLFO, XML, PCL, SVG
- Microsoft Office: DOC, DOCX, XLS, XLSX, PPTX
- Images: JPEG, PNG, BMP, TIFF
- Others: MobiXML, XML
- PostScript: PS
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/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
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 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 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 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.
The initial benefit was a reduction in licensing fees as Office no longer needed to be installed on each provided server. In addition to those immediate savings we saw an additional benefit in being able to programmatically lock and sign the PDF documents.Paul Allaire | Loryx Systems, USA
Aspose.PDF worked exactly as we needed it to by integrating seamlessly with the rest of our product’s functionality. We were successful in using Aspose.PDF to tackle all of our objectives while expending minimal resources.Mike Dearborn | CrewBridge Technologies, USA