Enhance your tools & applications with document and image conversion features using REST API and Node.js Cloud SDK.
Start Free TrialThe GroupDocs.Conversion Cloud SDK for Node.js has been developed to help you get started with our document conversion REST API, which lets you 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.
import
or require
GroupDocs.Conversion Cloud SDK for Node.js groupdocs-conversion-cloud
.ConvertApi.fromKeys
with AppSID
and AppKey
.ConvertSettings
.ConvertSettings.filePath
property.ConvertSettings.format
property.ConvertSettings.outputPath
property.async
function convertDocument
using instances of ConvertDocumentRequest
and ConvertSettings
as arguments.Check out GroupDocs.Conversion Cloud SDK for Node.js at GitHub if you are looking for the source code to convert file in the Cloud.
You can try GroupDocs.Conversion Low-Code Node.js 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 conversion on a number of document formats. All the file formats supported by the API can be obtained using the code mentioned below:
// Get your App SID and App Key at https://dashboard.groupdocs.cloud (free registration is required).
// Load module and set credentials
var GroupDocs = require('groupdocs-conversion-cloud');
var appSid = "XXXXXXXX";
var appKey = "XXXXXXXX";
// Retrieve all the supported file formats
// construct ConversionApi
var conversionApi = GroupDocs.ConversionApi.fromKeys(appSid, appKey);
var request = new GroupDocs.GetSupportedConversionTypesRequest();
conversionApi.getSupportedConversionTypes(request)
.then(function (response) {
console.log("== Supported File Formats ==");
response.forEach(function (format) {
console.log(format.sourceFormat + " - to - " + format.targetFormats + "\n");
});
})
.catch(function (error) {
console.log("Error: " + error.message);
});
GroupDocs.Conversion Cloud API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the REST API calls and lets you use GroupDocs.Conversion Cloud API features in a native way for your preferred language.
The GroupDocs.Conversion Cloud API is secured and requires authentication. Users need to register at GroupDocs Cloud and get their 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.
GroupDocs.Conversion Cloud SDK is 100% tested and out of the box running. The SDK is open source and has an MIT license. You can use it, and even customize it for absolutely free of charge.