asposeslidescloud 21.4.0 → 21.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +106 -88
- package/api.js +11390 -11170
- package/internal/configuration.js +60 -60
- package/internal/objectSerializer.js +184 -184
- package/internal/requestHelper.js +247 -244
- package/model.js +3522 -3332
- package/package.json +1 -1
- package/requests.js +0 -1271
package/README.md
CHANGED
|
@@ -1,88 +1,106 @@
|
|
|
1
|
-
     [](https://github.com/aspose-slides-cloud/aspose-slides-cloud-nodejs/blob/master/LICENSE)
|
|
2
|
-
|
|
3
|
-
# Nodejs REST API to Process Presentation in Cloud
|
|
4
|
-
This repository contains Aspose.Slides Cloud SDK for Nodejs source code. This SDK allows you to [process & manipulate PPT, PPTX, ODP, OTP](https://products.aspose.cloud/slides/nodejs) using Aspose.slides Cloud REST APIs in your Nodejs applications.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
**
|
|
25
|
-
**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*
|
|
33
|
-
* New **
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
* New **
|
|
37
|
-
* New
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
* New **
|
|
47
|
-
* **
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
1
|
+
     [](https://github.com/aspose-slides-cloud/aspose-slides-cloud-nodejs/blob/master/LICENSE)
|
|
2
|
+
|
|
3
|
+
# Nodejs REST API to Process Presentation in Cloud
|
|
4
|
+
This repository contains Aspose.Slides Cloud SDK for Nodejs source code. This SDK allows you to [process & manipulate PPT, PPTX, ODP, OTP](https://products.aspose.cloud/slides/nodejs) using Aspose.slides Cloud REST APIs in your Nodejs applications.
|
|
5
|
+
|
|
6
|
+
You may want to check out Aspose free [PowerPoint to Word Converter](https://products.aspose.app/slides/conversion/ppt-to-word) because it is a live implementation of one of the most popular conversion processes.
|
|
7
|
+
|
|
8
|
+
## Presentation Processing Features
|
|
9
|
+
|
|
10
|
+
- Fetch presentation images in any of the supported file formats.
|
|
11
|
+
- Copy the layout side or clone the master slide from the source presentation.
|
|
12
|
+
- Process slides shapes, slides notes, placeholders, colors & font theme info.
|
|
13
|
+
- Programmatically create a presentation from HTML & export it to various formats.
|
|
14
|
+
- Merge multiple presentations or split the single presentation into multiple ones.
|
|
15
|
+
- Extract and replace text from a specific slide or an entire presentation.
|
|
16
|
+
|
|
17
|
+
## Read & Write Presentation Formats
|
|
18
|
+
|
|
19
|
+
**Microsoft PowerPoint:** PPT, PPTX, PPS, PPSX, PPTM, PPSM, POTX, POTM
|
|
20
|
+
**OpenOffice:** ODP, OTP, FODP
|
|
21
|
+
|
|
22
|
+
## Save Presentation As
|
|
23
|
+
|
|
24
|
+
**Fixed Layout:** PDF, PDF/A, XPS
|
|
25
|
+
**Images:** JPEG, PNG, BMP, TIFF, SVG
|
|
26
|
+
**Web:** HTML/HTML5
|
|
27
|
+
**Other:** SWF (export whole presentations)
|
|
28
|
+
|
|
29
|
+
## Enhancements in Version 21.12
|
|
30
|
+
* New **ThreeDFormat**, **Camera**, **LightRig** and **ShapeBevel** classes allow to get and set 3D effects for shapes. New **ThreeDFormat** property of **ShapeBase** class allows to access those objects.
|
|
31
|
+
* The declaration of **GetAnimation** and **GetSpecialSlideAnimation** methods is changed. New **paragraphIndex** parameter allows to get effects for a specific paragraph. New **ParagraphIndex** property of **Effect** class allows to set effects for a specific paragraph.
|
|
32
|
+
* You can now use **Html5** value for **format** parameter in conversion methods and export presentations to HTML5 format.
|
|
33
|
+
* New **Width** and **Height** parameters were added to **ExportOptions** class. You can now set custom size when convertion your documents.
|
|
34
|
+
|
|
35
|
+
## Enhancements in Version 21.9
|
|
36
|
+
* New **options** parameter for **Convert**, **ConvertAndSave**, **DownloadSlideOnline**, **SaveSlideOnline**, **DownloadShapeOnline** and **SaveShapeOnline** methods that allows to specify options when converting presentations from request body.
|
|
37
|
+
* New methods to manage shapes and animation for special slide types: master, layout and notes slides. The new methods are **GetSpecialSlideShapes**, **GetSpecialSlideSubshapes, **GetSpecialSlideShape**, **GetSpecialSlideSubshape**, **GetSpecialSlideParagraphs**, **GetSpecialSlideSubshapeParagraphs**, **GetSpecialSlideParagraph**, **GetSpecialSlideSubshapeParagraph**, **GetSpecialSlidePortions**, **GetSpecialSlideSubshapePortions**, **GetSpecialSlidePortion**, **GetSpecialSlideSubshapePortion**, **CreateSpecialSlideShape**, **CreateSpecialSlideSubshape**, **CreateSpecialSlideParagraph**, **CreateSpecialSlideSubshapeParagraph**, **CreateSpecialSlidePortion**, **CreateSpecialSlideSubshapePortion**, **UpdateSpecialSlideShape**, **UpdateSpecialSlideSubshape**, **UpdateSpecialSlideParagraph**, **UpdateSpecialSlideSubshapeParagraph**, **UpdateSpecialSlidePortion**, **UpdateSpecialSlideSubshapePortion**, **DeleteSpecialSlideShapes**, **DeleteSpecialSlideSubshapes**, **DeleteSpecialSlideShape**, **DeleteSpecialSlideSubshape**, **DeleteSpecialSlideParagraphs**, **DeleteSpecialSlideSubshapeParagraphs**, **DeleteSpecialSlideParagraph**, **DeleteSpecialSlideSubshapeParagraph**, **DeleteSpecialSlidePortions**, **DeleteSpecialSlideSubshapePortions**, **DeleteSpecialSlidePortion**, **DeleteSpecialSlideSubshapePortion**, **DownloadSpecialSlideShape**, **DownloadSpecialSlideSubshape**, **SaveSpecialSlideShape**, **SaveSpecialSlideSubshape**, **AlignSpecialSlideShapes**, **GetSpecialSlideAnimation**, **SetSpecialSlideAnimation**, **CreateSpecialSlideAnimationInteractiveSequence**, **CreateSpecialSlideAnimationEffect**, **CreateSpecialSlideAnimationInteractiveSequenceEffect**, **UpdateSpecialSlideAnimationEffect**, **UpdateSpecialSlideAnimationInteractiveSequenceEffect**, **DeleteSpecialSlideAnimation**, **DeleteSpecialSlideAnimationMainSequence**, **DeleteSpecialSlideAnimationInteractiveSequences**, **DeleteSpecialSlideAnimationInteractiveSequence**, **DeleteSpecialSlideAnimationEffect**, **DeleteSpecialSlideAnimationInteractiveSequenceEffect**.
|
|
38
|
+
|
|
39
|
+
## Enhancements in Version 21.8
|
|
40
|
+
* New **slides** parameter for **Convert**, **ConvertAndSave**, **DownloadPresentation** and **SavePresentation** methods that allows to convert a specified set of slides in the presentation.
|
|
41
|
+
|
|
42
|
+
## Enhancements in Version 21.6
|
|
43
|
+
* New **CreateComment**, **CreateCommentOnline**, **DeleteComments**, **DeleteCommentsOnline**, **DeleteSlideComments** and **DeleteSlideCommentsOnline** methods to add or delete comments in presentations.
|
|
44
|
+
|
|
45
|
+
## Enhancements in Version 21.4
|
|
46
|
+
* New **CreateWatermark**, **CreateWatermarkOnline**, **CreateImageWatermark**, **CreateImageWatermarkOnline**, **DeleteWatermark** and **DeleteWatermarkOnline** methods to add or delete and remove watermark in presentations.
|
|
47
|
+
* New **SetProtection**, **DeleteProtection**, **SetProtectionOnline** and **DeleteProtectionOnline** methods to set or clear presentation protection properties like read/write password, readonly flag.
|
|
48
|
+
|
|
49
|
+
## Enhancements in Version 21.3
|
|
50
|
+
* New **MergeOnline** and **MergeAndSaveOnline** methods to merge presentations from multipart request body.
|
|
51
|
+
* New **SplitOnline** and **SplitAndSaveOnline** methods to split presentation from request body.
|
|
52
|
+
* New **DownloadSlideOnline**, **DownloadShapeOnline**, **DownloadImageDefaultFormatOnline**, **DownloadImageOnline**, **SaveSlideOnline** and **SaveShapeOnline** methods to convert slides, shapes and images to spefified format using presentation from request body.
|
|
53
|
+
* New **DownloadImagesDefaultFormat**, **DownloadImages**, **DownloadImagesDefaultFormatOnline** and **DownloadImagesDefaultFormatOnline** methods to download all images from presentation as a ZIP archive.
|
|
54
|
+
* New **ReplacePresentationTextOnline** and **ReplaceSlideTextOnline** methods to replace text in presentation from request body.
|
|
55
|
+
* New **AlignShapes** method to align shapes in a slide.
|
|
56
|
+
* Simplified method declarations. See the [Release notes](https://docs.aspose.cloud/slides/aspose-slides-cloud-21-3-release-notes/) for details. Old method declarations are deprecated and will be deleted in 21.6 release.
|
|
57
|
+
|
|
58
|
+
## Enhancements in Version 21.2
|
|
59
|
+
* New **Map** value of **ChartTypeEnum** type to manage map charts.
|
|
60
|
+
* New **SketchFromat** property of **LineFormat** class.
|
|
61
|
+
|
|
62
|
+
## Enhancements in Version 21.1
|
|
63
|
+
* New **PostSlidesDocumentFromPdf** method allows creating presentations or adding slides to it using a PDF file as a source.
|
|
64
|
+
* New **GetSlidesSlideProperties**, **GetSlidesProtectionProperties**, **PutSlidesSlideProperties**, **PutSlidesProtectionProperties** allow to get/set presentaion properties like slide size, orientaion, read-only etc.
|
|
65
|
+
* **PutSlidesDocumentFromHtml** method is deprecated and will be deleted in 21.4 release. Use **PostSlidesDocumentFromHtml** method instead.
|
|
66
|
+
* **PutSlidesSlideSize** method is deprecated and will be deleted in 21.4 release. Use **PutSlidesProtectionProperties** method instead.
|
|
67
|
+
|
|
68
|
+
## Licensing
|
|
69
|
+
All Aspose.Slides Cloud SDKs are licensed under MIT License.
|
|
70
|
+
|
|
71
|
+
## How to use the SDK?
|
|
72
|
+
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get [NPM package](https://www.npmjs.com/package/asposeslidescloud) (recommended).
|
|
73
|
+
|
|
74
|
+
## Prerequisites
|
|
75
|
+
To use Aspose Slides Cloud NodeJS SDK you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
|
|
76
|
+
|
|
77
|
+
### Installation
|
|
78
|
+
|
|
79
|
+
From the command line:
|
|
80
|
+
|
|
81
|
+
npm install asposeslidescloud --save
|
|
82
|
+
|
|
83
|
+
### Sample usage
|
|
84
|
+
|
|
85
|
+
The example code below converts a PowerPoint document to PDF format using asposeslidescloud library:
|
|
86
|
+
```js
|
|
87
|
+
const api = require("asposeslidescloud");
|
|
88
|
+
const fs = require('fs');
|
|
89
|
+
|
|
90
|
+
const slidesApi = new api.SlidesApi("MyClientId", "MyClientSecret");
|
|
91
|
+
slidesApi.convert(fs.createReadStream("MyPresentation.pptx"), 'pdf').then((response) => {
|
|
92
|
+
fs.writeFile("MyPresentation.pdf", response.body, (err) => {
|
|
93
|
+
if (err) throw err;
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
```
|
|
97
|
+
You can check more [Examples](Examples) of using the SDK.
|
|
98
|
+
|
|
99
|
+
## Aspose.Slides Cloud SDKs in Popular Languages
|
|
100
|
+
|
|
101
|
+
| .NET | Java | PHP | Python | Ruby | Node.js | Android | Swift|Perl|Go|
|
|
102
|
+
|---|---|---|---|---|---|---|--|--|--|
|
|
103
|
+
| [GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-dotnet) | [GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-java) | [GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-php) | [GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-python) | [GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-ruby) | [GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-nodejs) | [GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-android) | [GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-swift)|[GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-perl) |[GitHub](https://github.com/aspose-slides-cloud/aspose-slides-cloud-go) |
|
|
104
|
+
| [NuGet](https://www.nuget.org/packages/Aspose.slides-Cloud/) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides-cloud) | [Composer](https://packagist.org/packages/aspose/slides-sdk-php) | [PIP](https://pypi.org/project/asposeslidescloud/) | [GEM](https://rubygems.org/gems/aspose_slides_cloud) | [NPM](https://www.npmjs.com/package/asposeslidescloud) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides-cloud) | [Cocoapods](https://cocoapods.org/pods/AsposeslidesCloud)|[Meta Cpan](https://metacpan.org/release/AsposeSlidesCloud-SlidesApi) | [Go.Dev](https://pkg.go.dev/github.com/aspose-slides-cloud/aspose-slides-cloud-go/) |
|
|
105
|
+
|
|
106
|
+
[Product Page](https://products.aspose.cloud/slides/nodejs) | [Documentation](https://docs.aspose.cloud/display/slidescloud/Home) | [API Reference](https://apireference.aspose.cloud/slides/) | [Code Samples](https://github.com/aspose-slides-cloud/aspose-slides-cloud-nodejs) | [Blog](https://blog.aspose.cloud/category/slides/) | [Free Support](https://forum.aspose.cloud/c/slides) | [Free Trial](https://dashboard.aspose.cloud/#/apps)
|