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

Document Conversion Java Cloud REST API

banner

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

GroupDocs.Conversion Cloud SDK for Java helps you build cloud Document Converter Java Apps that work without installing any 3rd party software. It is a wrapper around GroupDocs.Conversion Cloud REST APIs.

Cloud Document Conversion SDK Features

Supported Document Conversion File Formats

Microsoft Word®: DOC, DOCM, DOCX, DOT, DOTM, DOTX, RTF, TXT
OpenOffice Writer®: ODT, OTT
Microsoft Excel®: XLS, XLS2003, XLSB, XLSM, XLSX, CSV
OpenOffice Calc®: ODS
Microsoft PowerPoint®: PPS, PPSX, PPT, PPTX
OpenOffice Impress®: ODP
Microsoft Visio®: VDW, VDX, VSD, VSDX, VSS, VST, VSX, VTX
Microsoft Outlook®: EML, MSG
Apple® Mail: EMLX
Microsoft Project®: MPP, MPT
Adobe Photoshop®: PSD
CAD: DWG, DXF
Images: BMP, GIF, ICO, JPG, JPEG, PNG, TIF, TIFF
Vector Images: SVG
Markup: HTM, HTML, MHT
Fixed Layout: PDF, XPS

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven

Prerequisites

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

Install GroupDocs.Conversion-Cloud from Maven

Add GroupDocs Cloud repository to your application pom.xml

<repository>
    <id>repository.groupdocs.cloud</id>
    <name>repository.groupdocs.cloud</name>
    <url>https://releases.groupdocs.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.groupdocs</groupId>
    <artifactId>groupdocs-conversion-cloud</artifactId>
    <version>22.3</version>
    <type>pom</type>
</dependency>

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/groupdocs-conversion-cloud-22.3.jar
  • target/lib/*.jar

Get Started

Please follow the Quick Start instructions.

Sample Java Code to convert Cloud Document DOCX to Cloud PDF

// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java-samples
String MyClientSecret = ""; // Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
String MyClientId = ""; // Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud

Configuration configuration = new Configuration(MyClientId, MyClientSecret);

// Create API instance
ConvertApi apiInstance = new ConvertApi(configuration);

// Prepare convert settings
ConvertSettings settings = new ConvertSettings();
settings.setFilePath("WordProcessing/four-pages.docx");
settings.setFormat("pdf");
settings.setOutputPath("converted");

List<StoredConvertedResult> result = apiInstance.convertDocument(new ConvertDocumentRequest(settings));

Authorization & Authentication

Authentication schemes defined for the API is as follows:

JWT

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

VersionRelease Date
24.11November 7, 2024
24.8August 1, 2024
24.4April 5, 2024
24.3March 28, 2024
24.2February 20, 2024
24.1January 18, 2024
23.12December 21, 2023
23.10October 16, 2023
23.9September 13, 2023
23.8August 23, 2023
23.7July 19, 2023
23.6June 9, 2023
23.4April 4, 2023
23.2February 22, 2023
22.10October 6, 2022
22.3October 6, 2022
21.10January 25, 2022
21.12January 25, 2022
19.3January 25, 2022
19.4January 25, 2022
20.11January 25, 2022
20.3January 25, 2022
21.1October 8, 2021
21.9September 15, 2021
21.4April 1, 2021
20.2February 12, 2020
19.5May 30, 2019

GroupDocs Java REST API Maven SDK Java SDK Cloud REST REST API Cloud API MIT JWT oauth GroupDocs.Total Cloud GroupDocs.Conversion Cloud JAR document automation document automation cloud document DOC DOCM DOCX DOT DOTM DOTX RTF TXT ODT OTT XLS XLS2003 XLSB XLSM XLSX CSV ODS PPS PPSX PPT PPTX ODP VDW VDX VSD VSDX VSS VST VSX VTX EML MSG EMLX MPP MPT PSD DWG DXF BMP GIF ICO JPG JPEG PNG TIF TIFF SVG HTM HTML MHT PDF XPS DOCX to TIFF DOCX to TIF DOCX to JPG DOCX to JPEG DOCX to PNG DOCX to GIF DOCX to BMP DOCX to ICO DOCX to PSD DOCX to WMF DOCX to EMF DOCX to DCM DOCX to DICOM DOCX to WEBP DOCX to SVG DOCX to JP2 DOCX to EMZ DOCX to WMZ DOCX to SVGZ DOCX to TGA DOCX to PSB DOCX to HTML DOCX to HTM DOCX to MHT DOCX to MHTML DOCX to DOC DOCX to DOCM DOCX to DOCX DOCX to DOT DOCX to DOTM DOCX to DOTX DOCX to RTF DOCX to ODT DOCX to OTT DOCX to TXT DOCX to MD DOCX to PDF DOCX to EPUB DOCX to XPS DOCX to TEX DOCX to PPT DOCX to PPS DOCX to PPTX DOCX to PPSX DOCX to ODP DOCX to OTP DOCX to POTX DOCX to POT DOCX to POTM DOCX to PPTM DOCX to PPSM DOCX to FODP DOC to TIFF DOC to TIF DOC to JPG DOC to JPEG DOC to PNG DOC to GIF DOC to BMP DOC to ICO DOC to PSD DOC to WMF DOC to EMF DOC to DCM DOC to DICOM DOC to WEBP DOC to SVG DOC to JP2 DOC to EMZ DOC to WMZ DOC to SVGZ DOC to TGA DOC to PSB DOC to HTML DOC to HTM DOC to MHT DOC to MHTML DOC to DOC DOC to DOCM DOC to DOCX DOC to DOT DOC to DOTM DOC to DOTX DOC to RTF DOC to ODT DOC to OTT DOC to TXT DOC to MD DOC to PDF DOC to EPUB DOC to XPS DOC to TEX DOC to PPT DOC to PPS DOC to PPTX DOC to PPSX DOC to ODP DOC to OTP DOC to POTX DOC to POT DOC to POTM DOC to PPTM DOC to PPSM DOC to FODP PPTX to DOC PPTX to DOCM PPTX to DOCX PPTX to DOT PPTX to DOTM PPTX to DOTX PPTX to RTF PPTX to ODT PPTX to OTT PPTX to TXT PPTX to MD PPTX to PDF PPTX to EPUB PPTX to XPS PPTX to TEX PPTX to TIFF PPTX to TIF PPTX to JPG PPTX to JPEG PPTX to PNG PPTX to GIF PPTX to BMP PPTX to ICO PPTX to PSD PPTX to WMF PPTX to EMF PPTX to DCM PPTX to DICOM PPTX to WEBP PPTX to SVG PPTX to JP2 PPTX to EMZ PPTX to WMZ PPTX to SVGZ PPTX to TGA PPTX to PSB PPTX to PPT PPTX to PPS PPTX to PPTX PPTX to PPSX PPTX to ODP PPTX to OTP PPTX to POTX PPTX to POT PPTX to POTM PPTX to PPTM PPTX to PPSM PPTX to FODP PPTX to HTML PPTX to HTM PPTX to MHT PPTX to MHTML PPT to DOC PPT to DOCM PPT to DOCX PPT to DOT PPT to DOTM PPT to DOTX PPT to RTF PPT to ODT PPT to OTT PPT to TXT PPT to MD PPT to PDF PPT to EPUB PPT to XPS PPT to TEX PPT to TIFF PPT to TIF PPT to JPG PPT to JPEG PPT to PNG PPT to GIF PPT to BMP PPT to ICO PPT to PSD PPT to WMF PPT to EMF PPT to DCM PPT to DICOM PPT to WEBP PPT to SVG PPT to JP2 PPT to EMZ PPT to WMZ PPT to SVGZ PPT to TGA PPT to PSB PPT to PPT PPT to PPS PPT to PPTX PPT to PPSX PPT to ODP PPT to OTP PPT to POTX PPT to POT PPT to POTM PPT to PPTM PPT to PPSM PPT to FODP PPT to HTML PPT to HTM PPT to MHT PPT to MHTML XLS to HTML XLS to HTM XLS to MHT XLS to MHTML XLS to XLS XLS to XLSX XLS to XLSM XLS to XLSB XLS to ODS XLS to XLTX XLS to XLT XLS to XLTM XLS to TSV XLS to XLAM XLS to CSV XLS to FODS XLS to DIF XLS to SXC XLS to XML XLS to JSON XLS to PDF XLS to EPUB XLS to XPS XLS to TEX XLSX to HTML XLSX to HTM XLSX to MHT XLSX to MHTML XLSX to XLS XLSX to XLSX XLSX to XLSM XLSX to XLSB XLSX to ODS XLSX to XLTX XLSX to XLT XLSX to XLTM XLSX to TSV XLSX to XLAM XLSX to CSV XLSX to FODS XLSX to DIF XLSX to SXC XLSX to XML XLSX to JSON XLSX to PDF XLSX to EPUB XLSX to XPS XLSX to TEX PDF to PPT PDF to PPS PDF to PPTX PDF to PPSX PDF to ODP PDF to OTP PDF to POTX PDF to POT PDF to POTM PDF to PPTM PDF to PPSM PDF to FODP PDF to TIFF PDF to TIF PDF to JPG PDF to JPEG PDF to PNG PDF to GIF PDF to BMP PDF to ICO PDF to PSD PDF to WMF PDF to EMF PDF to DCM PDF to DICOM PDF to WEBP PDF to SVG PDF to JP2 PDF to EMZ PDF to WMZ PDF to SVGZ PDF to TGA PDF to PSB PDF to HTML PDF to HTM PDF to MHT PDF to MHTML PDF to PDF PDF to EPUB PDF to XPS PDF to TEX PDF to DOC PDF to DOCM PDF to DOCX PDF to DOT PDF to DOTM PDF to DOTX PDF to RTF PDF to ODT PDF to OTT PDF to TXT PDF to MD Visio to EPUB Visio to XPS Visio to TEX Visio to DOC Visio to DOCM Visio to DOCX Visio to DOT Visio to DOTM Visio to DOTX Visio to RTF Visio to ODT Visio to OTT Visio to TXT Visio to MD Visio to TIFF Visio to TIF Visio to JPG Visio to JPEG Visio to PNG Visio to GIF Visio to BMP Visio to ICO Visio to PSD Visio to WMF Visio to EMF Visio to DCM Visio to DICOM Visio to WEBP Visio to SVG Visio to JP2 Visio to EMZ Visio to WMZ Visio to SVGZ Visio to TGA Visio to PSB Visio to VisioX Visio to VSX Visio to VTX Visio to VDX Visio to VSSX Visio to VSTX Visio to VisioM Visio to VSSM Visio to VSTM Visio to PPT Visio to PPS Visio to PPTX Visio to PPSX Visio to ODP Visio to OTP Visio to POTX Visio to POT Visio to POTM Visio to PPTM Visio to PPSM Visio to FODP Visio to HTML Visio to HTM Visio to MHT Visio to MHTML JPEG to PPT JPEG to PPS JPEG to PPTX JPEG to PPSX JPEG to ODP JPEG to OTP JPEG to POTX JPEG to POT JPEG to POTM JPEG to PPTM JPEG to PPSM JPEG to FODP JPEG to TIFF JPEG to TIF JPEG to JPG JPEG to JPEG JPEG to PNG JPEG to GIF JPEG to BMP JPEG to ICO JPEG to PSD JPEG to WMF JPEG to EMF JPEG to DCM JPEG to DICOM JPEG to WEBP JPEG to SVG JPEG to JP2 JPEG to EMZ JPEG to WMZ JPEG to SVGZ JPEG to TGA JPEG to PSB PNG to PPT PNG to PPS PNG to PPTX PNG to PPSX PNG to ODP PNG to OTP PNG to POTX PNG to POT PNG to POTM PNG to PPTM PNG to PPSM PNG to FODP PNG to TIFF PNG to TIF PNG to JPG PNG to JPEG PNG to PNG PNG to GIF PNG to BMP PNG to ICO PNG to PSD PNG to WMF PNG to EMF PNG to DCM PNG to DICOM PNG to WEBP PNG to SVG PNG to JP2 PNG to EMZ PNG to WMZ PNG to SVGZ PNG to TGA PNG to PSB GIF to PPT GIF to PPS GIF to PPTX GIF to PPSX GIF to ODP GIF to OTP GIF to POTX GIF to POT GIF to POTM GIF to PPTM GIF to PPSM GIF to FODP GIF to TIFF GIF to TIF GIF to JPG GIF to JPEG GIF to PNG GIF to GIF GIF to BMP GIF to ICO GIF to PSD GIF to WMF GIF to EMF GIF to DCM GIF to DICOM GIF to WEBP GIF to SVG GIF to JP2 GIF to EMZ GIF to WMZ GIF to SVGZ GIF to TGA GIF to PSB BMP to PPT BMP to PPS BMP to PPTX BMP to PPSX BMP to ODP BMP to OTP BMP to POTX BMP to POT BMP to POTM BMP to PPTM BMP to PPSM BMP to FODP BMP to TIFF BMP to TIF BMP to JPG BMP to JPEG BMP to PNG BMP to GIF BMP to BMP BMP to ICO BMP to PSD BMP to WMF BMP to EMF BMP to DCM BMP to DICOM BMP to WEBP BMP to SVG BMP to JP2 BMP to EMZ BMP to WMZ BMP to SVGZ BMP to TGA BMP to PSB