Develop applications to convert documents of popular file formats back and forth using document conversion cloud SDK for Java & REST API.
Start Free TrialThe GroupDocs.Conversion Cloud SDK for Java has been developed to help you get started with using our document conversion REST API, allowing to seamlessly convert your documents to any format you need. With this single API, you can convert back and forth between over 50 types of documents and images, including all Microsoft Office and OpenDocument file formats, PDF documents, HTML, CAD, raster images and many more.
ConversionApi
using available AppSid
and AppKey
.ConvertSettings
to change our conversion settings.ConvertSettings.setFilePath
method.ConvertSettings.setFormat
method.ConvertSettings.setOutputPath
method.ConversionApi.convertDocument
method to start conversion.Check out GroupDocs.Conversion Cloud SDK for Java at GitHub if you are looking for the source code to convert file in the Cloud.
You can try GroupDocs.Conversion Low-Code Java APIs without any limitations.
GroupDocs.Conversion Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own services using GroupDocs.Conversion High-code APIs which currently drive our REST APIs.
GroupDocs.Conversion REST API has the capability to perform document conversions on a number of document formats. It converts accurately making sure that the details are preserved while converting the document. Word Processing Document can be quickly converted into spreadsheet using below mentioned few lines of code:
//Get your App SID and App Key at https://dashboard.groupdocs.cloud (free registration is required).
ConversionApi apiInstance = new ConversionApi("AppSID", "AppKey");
ConvertSettings settings = new ConvertSettings();
settings.setStorageName("Storage Name");
settings.setFilePath("documents/myDocument.docx");
settings.setFormat("xlsx");
// Load a Word Processing Document ( DOCX ) to convert into any supported format
DocxLoadOptions loadOptions = new DocxLoadOptions();
loadOptions.setPassword("password");
loadOptions.setHideWordTrackedChanges(true);
loadOptions.setDefaultFont("Arial");
settings.setLoadOptions(loadOptions);
// Conversion Settings to convert into a Spreadsheet document
XlsxConvertOptions convertOptions = new XlsxConvertOptions();
convertOptions.setFromPage(1);
convertOptions.setPagesCount(2);
convertOptions.setFromPage(1);
convertOptions.setPassword("password");
convertOptions.setUsePdf(true);
settings.setConvertOptions(convertOptions);
settings.setOutputPath("documents/converted-docs");
// Convert to Specified Format
List response = apiInstance.convertDocument(new ConvertDocumentRequest(settings));
With GroupDocs.Conversion Cloud API, you can start converting your files right away as there is no need to install anything. The API is clearly documented and comes with SDKs and live examples for all major languages. Our GroupDocs.Conversion SDKs along with working examples hosted at Github helps our users to get started in no time.
The GroupDocs.Conversion Cloud API is secured and requires authentication. You need to register at GroupDocs Cloud and get the app access key ID (appSID) and app secret access key. Authenticated requests require a signature and AppSID query parameters or OAuth 2.0 authorization header.
The easiest way to try out GroupDocs.Conversion Cloud API right away in your browser is by using GroupDocs Cloud Web API explorer, which is a collection of Swagger documentation for the GroupDocs Cloud APIs.It allows you to effortlessly interact and try out every single operation our APIs exposes.