Skip to content

Commit 544a41e

Browse files
committed
Updated sources
0 parents  commit 544a41e

53 files changed

Lines changed: 12558 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# node.js
2+
wwwroot/*.js
3+
node_modules
4+
typings
5+
lib
6+
7+
# vs code
8+
.vscode

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/*
2+
!lib/**/*
3+
!package.json
4+
!LICENSE
5+
!README.md

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2003-2018 Aspose Pty Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# GroupDocs.Viewer Cloud Node.js SDK
2+
Node.js module for communicating with the GroupDocs.Viewer Cloud API
3+
4+
## Installation
5+
6+
A package `groupdocs-viewer-cloud` is available at [npmjs.com](https://www.npmjs.com/package/groupdocs-viewer-cloud). You can install it with:
7+
8+
```shell
9+
npm install groupdocs-viewer-cloud
10+
```
11+
12+
## Getting Started
13+
14+
Please follow the [installation](#installation) procedure and then run the following JavaScript code:
15+
16+
```js
17+
// load the module
18+
var GroupDocs = require('groupdocs-viewer-cloud');
19+
20+
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
21+
var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
22+
var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
23+
24+
// construct ViewerApi
25+
var viewerApi = GroupDocs.ViewerApi.fromKeys(appSid, appKey);
26+
27+
// retrieve supported file-formats
28+
viewerApi.getSupportedFileFormats()
29+
.then(function (response) {
30+
console.log("Supported file-formats:")
31+
response.formats.forEach(function (format) {
32+
console.log(format.fileFormat + " (" + format.extension + ")");
33+
});
34+
})
35+
.catch(function (error) {
36+
console.log("Error: " + error.message)
37+
});
38+
```
39+
40+
Or compile and run same written in TypeScript:
41+
42+
```ts
43+
// load the module
44+
import { ViewerApi } from "groupdocs-viewer-cloud";
45+
46+
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
47+
const appSid: string = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
48+
const appKey: string = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
49+
50+
// construct ViewerApi
51+
const viewerApi: ViewerApi = ViewerApi.fromKeys(appSid, appKey);
52+
53+
// retrieve supported file-formats
54+
viewerApi.getSupportedFileFormats()
55+
.then((result) => {
56+
console.log("Supported file-formats:");
57+
result.formats.forEach((format) => {
58+
console.log(format.fileFormat + " (" + format.extension + ")");
59+
});
60+
})
61+
.catch((error) => {
62+
console.log("Error: " + error.message);
63+
});
64+
```
65+
66+
67+
## Licensing
68+
GroupDocs.Viewer Cloud Node.js SDK licensed under [MIT License](LICENSE).
69+
70+
## Resources
71+
+ [**Website**](https://www.groupdocs.cloud)
72+
+ [**Product Home**](https://products.groupdocs.cloud/viewer)
73+
+ [**Documentation**](https://docs.groupdocs.cloud/display/viewercloud/Home)
74+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/viewer)
75+
+ [**Blog**](https://blog.groupdocs.cloud/category/viewer)
76+
77+
## Contact Us
78+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/viewer).

0 commit comments

Comments
 (0)