<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-pdf-cloud</artifactId>
    <version>19.5.0</version>
</dependency>
copied!  
compile(group: 'com.aspose', name: 'aspose-pdf-cloud', version: '19.5.0')
copied!  
<dependency org="com.aspose" name="aspose-pdf-cloud" rev="19.5.0">
    <artifact name="aspose-pdf-cloud" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.aspose" % "aspose-pdf-cloud" % "19.5.0"
copied!  

Java REST API to Process PDF in Cloud

banner

Product Page | Documentation | Live Demo | Swagger UI | Code Samples | Blog | Free Support | Free Trial

PDF Cloud Processing Features

  • Create empty PDF or create PDF from HTML, XML, & images.
  • Convert PDF to various supported formats: – Convert PDF to DOC and DOCX – Convert PDF to HTMLConvert PDF Document to PDF/A – Convert PDF to TIFF – Convert PDF to SVG – Convert PDF to ePUB – Convert PDF to PPTX – Convert PDF to TeX – Convert PDF to MobiXML – Convert PDF to XFA – Convert PDF to XML – Convert PDF to XPS – Convert PDF to XLS
  • Convert other file formats to PDF – Convert EPUB to PDF – Convert Web to PDF – Convert TeX to PDF – Convert MHT to PDF – Convert HTML to PDF – Convert PS to PDF – Convert XslFo to PDF – Convert XPS to PDF – Convert SVG to PDF – Convert DOC and DOCX to PDF – Convert PCL to PDF – Convert XML to PDF – Convert Markdown to PDF
  • Ability to convert PDF from remote server into other supported formats.
  • Merge multiple PDF files into a single PDF document.
  • Split a PDF file into multiple documents.
  • Apply PFX signature to PDF documents.
  • Import data from various format files (XML, FDF, XFDF) into PDF documents.
  • Work with PDF Form fields (TextBoxes, CheckBoxes, RadioBoxes, ComboxBox).
  • Work with PDF tables, annotations, stamps, bookmarks, links, & attachments.
  • Create searchable documents from scanned PDF Files.
  • Supports encryption & decryption of cloud PDF files.

PDF Cloud Storage Features

  • Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default).
  • Create, copy, move and delete folders.
  • Copy and move files and folders accross separate storages in scope of a single operation.
  • Check if certain file, folder or storage exists.

Read & Write Cloud PDF Formats

Fixed Layout: PDF, PDF_A_3A (PDF/A-3), XPS
Forms: FDF, XFDF
eBook: EPUB
Web: HTML, XML
Typesetting: TeX
Vector: SVG

Save Cloud PDF As

Microsoft Word®: DOC, DOCX
Microsoft Excel®: XLS, XLSX
Microsoft PowerPoint®: PPTX
eBook: MobiXML
Images: JPEG, PNG, BMP, GIF, TIFF
Metafile: EMF

Read Cloud PDF Formats

MHT
PCL (Printer Control Language)
PS (Postscript)
XSLFO
MD (Mardown)
TXT (Text)

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven

Prerequisites

To use Aspose.PDF Cloud SDK for Java you need to register an account with Aspose Cloud and lookup/create Client ID and Client Secret at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.

Installation

Install from Maven

Add Aspose Cloud repository to your application pom.xml

<repository>
    <id>aspose-cloud</id>
    <name>Aspose Cloud Repository</name>
    <url>https://releases.aspose.cloud/java/repo/</url>
</repository>

Install from source

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project’s POM:

<dependency>
  <groupId>com.aspose</groupId>
  <artifactId>aspose-pdf-cloud</artifactId>
  <version>21.11.0</version>
  <scope>compile</scope>
</dependency>

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/aspose-pdf-cloud-21.11.0.jar
  • target/lib/*.jar

Example

import com.aspose.asposecloudpdf.*;
import com.aspose.asposecloudpdf.model.*;
import com.aspose.asposecloudpdf.api.PdfApi;

import java.io.File;
import java.util.*;

public class PdfApiExample {

    public static void main(String[] args) {
        // Get App key and App SID from https://cloud.aspose.com
        PdfApi apiInstance = new PdfApi("app_key", "app_sid");
        String name = "name_example"; // String | The document name.
        String fieldName = "fieldName_example"; // String | The field name/
        String storage = "storage_example"; // String | The document storage.
        String folder = "folder_example"; // String | The document folder.
        try {
            SaaSposeResponse result = apiInstance.deleteField(name, fieldName, storage, folder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PdfApi#deleteField");
            e.printStackTrace();
        }
    }
}

Licensing

All Aspose.PDF Cloud SDKs, helper scripts and templates are licensed under MIT License.

Authorization & Authentication

Authentication schemes defined for the API is as follows:

JWT

Recommendation

It’s recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Product Page | Documentation | Live Demo | Swagger UI | Code Samples | Blog | Free Support | Free Trial

VersionRelease Date
24.12.0December 18, 2024
24.11.0November 22, 2024
24.9.0September 20, 2024
24.8.0August 23, 2024
24.7.0July 23, 2024
24.6.0July 1, 2024
24.5.0May 21, 2024
24.4.0April 22, 2024
24.3.0March 27, 2024
24.2.0February 26, 2024
24.1.0January 26, 2024
23.12.0December 21, 2023
23.11.0November 24, 2023
23.10.0October 27, 2023
23.9.0September 21, 2023
23.8.0August 28, 2023
23.7.0July 21, 2023
23.6.0July 3, 2023
23.5.0May 30, 2023
21.11.0November 25, 2021
21.1.0February 9, 2021
20.12.0December 16, 2020
20.9.0September 17, 2020
20.8.0August 28, 2020
20.7.0July 29, 2020
20.6.0June 24, 2020
20.5.0May 28, 2020
1.0.0May 12, 2020
1.0.1May 12, 2020
18.11.0May 12, 2020
19.1.0May 12, 2020
19.10.0May 12, 2020
19.11.0May 12, 2020
19.12.0May 12, 2020
19.2.0May 12, 2020
19.3.0May 12, 2020
19.4.0May 12, 2020
19.5.0May 12, 2020
19.7.0May 12, 2020
19.8.0May 12, 2020
19.9.0May 12, 2020
20.1.0May 12, 2020
20.2.0May 12, 2020
20.4.0May 12, 2020