Java SDK to manipulate PDF documents in Cloud

Create, Manipulate, Convert or Sign PDF documents using Aspose.PDF Cloud SDK.

  Start Free Trial
Aspose.PDF Cloud SDK for Java

Aspose.PDF Cloud SDK for Java

 
 

Aspose.PDF Cloud SDK for Java is based on Cloud API enabling you to create, edit and convert PDF files in the cloud. It also allows you to create PDF documents from a number of other file formats including PCL, HTML, XML and images. At the same time, you can also convert PDF documents to various other formats including HTML, DOC, JPEG, TIFF, TXT and so on.

Manipulate PDF files and their Elements in Cloud

Apart from PDF file manipulation, you can also work with individual elements of a PDF document like text, annotations, watermarks, signatures, bookmarks, stamps form fields etc. The SDK allows you to manage images, hyperlinks and attachments as well as facilities in common operations such as manipulation of PDF document properties, splitting, merging & signing of PDF documents.

 

 

 

Advanced PDF documents manipulation Features

 

 

Create new PDF documents

 

Split PDF document into single page documents

 

Merge multiple PDF documents

 

Convert HTML pages to PDF documents

 

Transform XML & XSL-FO document to PDF

 

Convert images to PDF

 

Convert PDF documents to different formats

 

Convert SVG files to PDF documents

 

Add text, image, PDF page or page number as stamps

 

Extract & update text & images in PDF documents

 

Extract annotations, signatures, bookmarks, fragments, fields

 

Move PDF pages within one PDF file

PDF Creation & Conversion

Aspose.PDF Cloud SDK for Java offers the capabilities to to quickly and reliably create new PDF files, edit and manipulate existing PDF files or convert to and from various supported document formats with a high degree of precision. In order to create a document you can even convert an image to PDF or convert PDF to different formats like DOC, XPS, TIFF, PDF/A, PDF/A-1a, PDF/A-1b etc. You also get the ability to convert PDF pages to images like PNG, JPEG, GIF, BMP, TIFF and much more.

Save HTML in PDF format - Java


// Instantiate Aspose Words API SDK
PdfApi pdfApi = new PdfApi(Configuration.apiKey, Configuration.appSID, true);
// Upload source file to aspose cloud storage
storageApi.PutCreate("Resultant.html", "", "", "input.pdf");
// Invoke API to create PDF from HTML
DocumentResponse apiResponse = pdfApi.PutCreateDocument(fileName, templateFile, dataFile, templateType, storage, folder);

Digitally Sign PDF Documents & Encryption in Cloud

Aspose.PDF Cloud SDK for Java helps you secure PDF file using different methods. You can add encryption, set up owner and user passwords as well as sign a PDF file using signature to protect the PDF file. You can also remove the signatures and de-crypt the PDF files.

Digitally Sign PDF document - Java


Signature body = new Signature();
body.setAuthority( "John Doe");
body.setLocation ( "USA");
body.setContact(  "This email address is being protected from spambots. You need JavaScript enabled to view it.");
body.setDate  ("06/24/2015 2:00:00.000 AM");
body.setFormFieldName ( "Signature1");
body.setPassword ( "aspose");
body.setSignaturePath( "pkc7-sample.pfx");
body.setSignatureType ( "PKCS7");
body.setVisible(true);
// Instantiate Aspose PDF API SDK
PdfApi pdfApi = new PdfApi(Configuration.apiKey, Configuration.appSID, true);
// Upload input PDF to Aspose cloud storage
storageApi.PutCreate("sample-input.pdf", "", "", inputFile.toFile());
storageApi.PutCreate("pkc7-sample.pfx", "", "", signitureFilePath.toFile());
// Invoke Aspose.PDF Cloud SDK to sign PDF document
SaaSposeResponse apiResponse = pdfApi.PostSignPage("sample-input.pdf", 1, ", "", body);

Split & Merge PDFs

Aspose.PDF Cloud SDK for Java allows you to Split all or specific pages of a PDF to a new PDF or you can also merge multiple PDF files into a single PDF document.

Split PDF pages - Java


// Instantiate Aspose PDF API SDK
PdfApi pdfApi = new PdfApi(Configuration.apiKey, Configuration.appSID, true);
// Upload input PDF to Aspose cloud storage
storageApi.PutCreate("sample-input.pdf", "", "", inputFile.toFile());
// Invoke Aspose.PDF Cloud SDK for Java to split PDF file
SplitResultResponse apiResponse = pdfApi.PostSplitDocument("sample-input.pdf", "pdf", 1, 3, "", "");

Handle PDF Textual Contents via RESTful APIs

Aspose.PDF Cloud SDK for Java provides you all the features you need to handle text in a PDF file. Most useful operation include find and replace text, remove or extract text from PDF and replace text using a regular expression and so on.

Manage PDF Forms & Fields using RESTful API

Aspose.PDF Cloud SDK for Java well manages PDF Forms and Form Fields within a PDF file including: Text fields, Dropdown, Checkbox, Radio Button, Submit Button as well as extracting PDF form field values.

Get all Form Fields from PDF Document - Java


// Instantiate Aspose PDF API SDK
PdfApi pdfApi = new PdfApi(Configuration.apiKey, Configuration.appSID, true);
// Upload input PDF to Aspose cloud storage
storageApi.PutCreate("sample-input.pdf", "", "", inputFile.toFile());
// Invoke Aspose.PDF Cloud SDK to get all fields from pdf document
FieldsResponse apiResponse = pdfApi.GetFields("sample-field.pdf", "", "");

if (apiResponse != null && apiResponse.getStatus().equals("OK"))
{
    for (Field field : apiResponse.getFields().getList())
    {
        System.out.println("Name:" + field.getName());
        System.out.println("Value:" + field.getValues().get(0));
    }
}
 

Support and Learning Resources