https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-node
Node.js SDK to communicate with the GroupDocs.Conversion REST API. Convert between 50+ document & image formats with zero initial cost.
https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-node
conversion-cloud-api convert-files djvu excel nodejs npm pdf powerpoint tiff visio word xps
Last synced: 11 months ago
JSON representation
Node.js SDK to communicate with the GroupDocs.Conversion REST API. Convert between 50+ document & image formats with zero initial cost.
- Host: GitHub
- URL: https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-node
- Owner: groupdocs-conversion-cloud
- License: mit
- Created: 2018-10-23T09:19:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-10T07:54:58.000Z (12 months ago)
- Last Synced: 2025-03-25T14:19:26.796Z (11 months ago)
- Topics: conversion-cloud-api, convert-files, djvu, excel, nodejs, npm, pdf, powerpoint, tiff, visio, word, xps
- Language: TypeScript
- Homepage: https://products.groupdocs.cloud/conversion/nodejs
- Size: 774 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GroupDocs.Conversion Cloud Node.js SDK
Node.js module for communicating with the GroupDocs.Conversion Cloud API
## Installation
A package `groupdocs-conversion-cloud` is available at [npmjs.com](https://www.npmjs.com/package/groupdocs-conversion-cloud). You can install it with:
```shell
npm install groupdocs-conversion-cloud
```
## Getting Started
Please follow the [installation](#installation) procedure and then run the following JavaScript code:
```js
// load the module
var GroupDocs = require('groupdocs-conversion-cloud');
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
// construct Api
var api = GroupDocs.InfoApi.fromKeys(appSid, appKey);
var request = new GroupDocs.GetSupportedConversionTypesRequest();
// retrieve supported conversion types
api.getSupportedConversionTypes(request)
.then(function (response) {
console.log("Supported file-formats:")
response.forEach(function (format) {
console.log(format.sourceFormat + ": [" + format.targetFormats.join(", ") + "]");
});
})
.catch(function (error) {
console.log("Error: " + error.message)
});
```
Or compile and run same written in TypeScript:
```ts
// load the module
import { INfoApi, GetSupportedConversionTypesRequest } from "groupdocs-conversion-cloud";
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
const appSid: string = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
const appKey: string = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
// construct Api
const api: InfoApi = InfoApi.fromKeys(appSid, appKey);
const request: GetSupportedConversionTypesRequest = new GetSupportedConversionTypesRequest();
// retrieve supported file-formats
api.getSupportedConversionTypes(request)
.then((result) => {
console.log("Supported file-formats:");
result.forEach((format) => {
console.log(format.sourceFormat + ": [" + format.targetFormats.join(", ") + "]");
});
})
.catch((error) => {
console.log("Error: " + error.message);
});
```
## Licensing
GroupDocs.Conversion Cloud Node.js SDK licensed under [MIT License](LICENSE).
## Resources
+[**Website**](https://www.groupdocs.cloud)
+[**Product Home**](https://products.groupdocs.cloud/conversion)
+[**Documentation**](https://docs.groupdocs.cloud/conversion)
+[**Free Support Forum**](https://forum.groupdocs.cloud/c/conversion)
+[**Blog**](https://blog.groupdocs.cloud/category/conversion)
## Contact Us
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/conversion).