asposeslidescloud 22.1.1 → 22.2.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 CHANGED
@@ -1,76 +1,87 @@
1
- ![](https://img.shields.io/badge/api-v3.0-lightgrey) ![npm](https://img.shields.io/npm/v/asposeslidescloud) ![npm bundle size](https://img.shields.io/bundlephobia/min/asposeslidescloud) ![node-current](https://img.shields.io/node/v/asposeslidescloud) ![npm type definitions](https://img.shields.io/npm/types/asposeslidescloud) [![GitHub license](https://img.shields.io/github/license/aspose-slides-cloud/aspose-slides-cloud-nodejs)](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 [PPT to PDF](https://products.aspose.app/slides/conversion), [PPT to Word](https://products.aspose.app/slides/conversion/ppt-to-word), and [PPT to JPG](https://products.aspose.app/slides/conversion/ppt-to-jpg) converters because they are live implementations of 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 22.1
30
- * New **MathParagraph** property of **Portion** class allows to get and set math formulas. A set of **MathElement** subclasses allows to specify complex mathematical expressions.
31
- * New **DownloadPortionAsMathMl** and **SavePortionAsMathMl** methods allow to export math formulas to MathML format.
32
- * New **HyperlinkClick** and **HyperlinkMouseOver** methods of **ShapeBase** and **Portion** classes enable creation and manipulating hyperlinks for shapes and portions.
33
- * New methods **GetShapeGeometryPath** and **SetShapeGeometryPath** can be used to get or set geometry paths for shapes. You can use lines, arcs and curves to specify custom shape boundaries.
34
- * New **AlignSubshapes** method enables aligning shapes within a shape group.
35
- * New **PlayAcrossSlides** and **RewindAudio** properties are added to **AudioFrame** class.
36
- * Added **InClickSequence** to the list of allowable values for **AudioPlayModePreset** and **AudioPlayModePreset** enum types.
37
-
38
- ## Licensing
39
- All Aspose.Slides Cloud SDKs are licensed under MIT License.
40
-
41
- ## How to use the SDK?
42
- 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).
43
-
44
- ## Prerequisites
45
- 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).
46
-
47
- ### Installation
48
-
49
- From the command line:
50
-
51
- npm install asposeslidescloud --save
52
-
53
- ### Sample usage
54
-
55
- The example code below converts a PowerPoint document to PDF format using asposeslidescloud library:
56
- ```js
57
- const api = require("asposeslidescloud");
58
- const fs = require('fs');
59
-
60
- const slidesApi = new api.SlidesApi("MyClientId", "MyClientSecret");
61
- slidesApi.convert(fs.createReadStream("MyPresentation.pptx"), 'pdf').then((response) => {
62
- fs.writeFile("MyPresentation.pdf", response.body, (err) => {
63
- if (err) throw err;
64
- });
65
- });
66
- ```
67
- You can check more [Examples](Examples) of using the SDK.
68
-
69
- ## Aspose.Slides Cloud SDKs in Popular Languages
70
-
71
- | .NET | Java | PHP | Python | Ruby | Node.js | Android | Swift|Perl|Go|
72
- |---|---|---|---|---|---|---|--|--|--|
73
- | [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) |
74
- | [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/) |
75
-
76
- [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)
1
+ ![](https://img.shields.io/badge/api-v3.0-lightgrey) ![npm](https://img.shields.io/npm/v/asposeslidescloud) ![npm bundle size](https://img.shields.io/bundlephobia/min/asposeslidescloud) ![node-current](https://img.shields.io/node/v/asposeslidescloud) ![npm type definitions](https://img.shields.io/npm/types/asposeslidescloud) [![GitHub license](https://img.shields.io/github/license/aspose-slides-cloud/aspose-slides-cloud-nodejs)](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 [PPT to PDF](https://products.aspose.app/slides/conversion), [PPT to Word](https://products.aspose.app/slides/conversion/ppt-to-word), and [PPT to JPG](https://products.aspose.app/slides/conversion/ppt-to-jpg) converters because they are live implementations of 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
+ **Other**: PDF, PDF/A
22
+
23
+ ## Save Presentation As
24
+
25
+ **Fixed Layout:** XPS
26
+ **Images:** JPEG, PNG, BMP, TIFF, GIF, SVG
27
+ **Web:** HTML/HTML5
28
+ **Other:** MPEG4, SWF (export whole presentations)
29
+
30
+ ## Enhancements in Version 22.2
31
+ * Added **Mpeg4** to the list of allowed values for **ExportFormat** type. You can now convert presentations to video.
32
+ * New **HighlightShapeText** and **HighlightShapeRegex** methods.
33
+ * New **DeleteUnusedLayoutSlides** and **DeleteUnusedLayoutSlides** methods.
34
+ * New **ZoomFrame** and **ZoomObject** classes with a number of subclasses.
35
+ * Added **TextFrameFormat** property to **Shape** class to support WordArt.
36
+ * Added **XYSeries** class as a supercalss for **ScatterSeries** and **BubbleSeries** methods.
37
+ * Added **None** to the list of allowed values for **TimeUnitType** enum type.
38
+ * **Level** property of **Category** class is deprecated and will be removed after v22.4.
39
+
40
+ ## Enhancements in Version 22.1
41
+ * New **MathParagraph** property of **Portion** class allows to get and set math formulas. A set of **MathElement** subclasses allows to specify complex mathematical expressions.
42
+ * New **DownloadPortionAsMathMl** and **SavePortionAsMathMl** methods allow to export math formulas to MathML format.
43
+ * New **HyperlinkClick** and **HyperlinkMouseOver** methods of **ShapeBase** and **Portion** classes enable creation and manipulating hyperlinks for shapes and portions.
44
+ * New methods **GetShapeGeometryPath** and **SetShapeGeometryPath** can be used to get or set geometry paths for shapes. You can use lines, arcs and curves to specify custom shape boundaries.
45
+ * New **AlignSubshapes** method enables aligning shapes within a shape group.
46
+ * New **PlayAcrossSlides** and **RewindAudio** properties are added to **AudioFrame** class.
47
+ * Added **InClickSequence** to the list of allowable values for **AudioPlayModePreset** and **AudioPlayModePreset** enum types.
48
+
49
+ ## Licensing
50
+ All Aspose.Slides Cloud SDKs are licensed under MIT License.
51
+
52
+ ## How to use the SDK?
53
+ 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).
54
+
55
+ ## Prerequisites
56
+ 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).
57
+
58
+ ### Installation
59
+
60
+ From the command line:
61
+
62
+ npm install asposeslidescloud --save
63
+
64
+ ### Sample usage
65
+
66
+ The example code below converts a PowerPoint document to PDF format using asposeslidescloud library:
67
+ ```js
68
+ const api = require("asposeslidescloud");
69
+ const fs = require('fs');
70
+
71
+ const slidesApi = new api.SlidesApi("MyClientId", "MyClientSecret");
72
+ slidesApi.convert(fs.createReadStream("MyPresentation.pptx"), 'pdf').then((response) => {
73
+ fs.writeFile("MyPresentation.pdf", response.body, (err) => {
74
+ if (err) throw err;
75
+ });
76
+ });
77
+ ```
78
+ You can check more [Examples](Examples) of using the SDK.
79
+
80
+ ## Aspose.Slides Cloud SDKs in Popular Languages
81
+
82
+ | .NET | Java | PHP | Python | Ruby | Node.js | Android | Swift|Perl|Go|
83
+ |---|---|---|---|---|---|---|--|--|--|
84
+ | [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) |
85
+ | [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/) |
86
+
87
+ [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)
package/api.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import http = require("http");
2
+ import { Readable } from 'stream';
2
3
  import { Configuration } from "./internal/configuration";
3
4
  import * as model from "./model";
4
5
  export * from "./model";
@@ -71,7 +72,7 @@ export declare class SlidesApi {
71
72
  * @param slides The indices of the slides to be converted. If not specified, all slides are converted by default.
72
73
  * @param options Export options.
73
74
  */
74
- convert(document: Buffer, format: model.ExportFormat, password?: string, storage?: string, fontsFolder?: string, slides?: Array<number>, options?: model.ExportOptions): Promise<{
75
+ convert(document: Readable, format: model.ExportFormat, password?: string, storage?: string, fontsFolder?: string, slides?: Array<number>, options?: model.ExportOptions): Promise<{
75
76
  response: http.ClientResponse;
76
77
  body: Buffer;
77
78
  }>;
@@ -86,7 +87,7 @@ export declare class SlidesApi {
86
87
  * @param slides The indices of the slides to be converted. If not specified, all slides are converted by default.
87
88
  * @param options Export options.
88
89
  */
89
- convertAndSave(document: Buffer, format: model.ExportFormat, outPath: string, password?: string, storage?: string, fontsFolder?: string, slides?: Array<number>, options?: model.ExportOptions): Promise<{
90
+ convertAndSave(document: Readable, format: model.ExportFormat, outPath: string, password?: string, storage?: string, fontsFolder?: string, slides?: Array<number>, options?: model.ExportOptions): Promise<{
90
91
  response: http.ClientResponse;
91
92
  }>;
92
93
  /**
@@ -260,7 +261,7 @@ export declare class SlidesApi {
260
261
  * @param dto Comment DTO.
261
262
  * @param password Document password.
262
263
  */
263
- createCommentOnline(document: Buffer, slideIndex: number, dto: model.SlideComment, password?: string): Promise<{
264
+ createCommentOnline(document: Readable, slideIndex: number, dto: model.SlideComment, password?: string): Promise<{
264
265
  response: http.ClientResponse;
265
266
  body: Buffer;
266
267
  }>;
@@ -281,7 +282,7 @@ export declare class SlidesApi {
281
282
  * @param folder Document folder.
282
283
  * @param storage Document storage.
283
284
  */
284
- createImageWatermark(name: string, image?: Buffer, pictureFrame?: model.PictureFrame, password?: string, folder?: string, storage?: string): Promise<{
285
+ createImageWatermark(name: string, image?: Readable, pictureFrame?: model.PictureFrame, password?: string, folder?: string, storage?: string): Promise<{
285
286
  response: http.ClientResponse;
286
287
  }>;
287
288
  /**
@@ -291,7 +292,7 @@ export declare class SlidesApi {
291
292
  * @param pictureFrame PictureFrame DTO.
292
293
  * @param password Document password.
293
294
  */
294
- createImageWatermarkOnline(document: Buffer, image?: Buffer, pictureFrame?: model.PictureFrame, password?: string): Promise<{
295
+ createImageWatermarkOnline(document: Readable, image?: Readable, pictureFrame?: model.PictureFrame, password?: string): Promise<{
295
296
  response: http.ClientResponse;
296
297
  body: Buffer;
297
298
  }>;
@@ -348,7 +349,7 @@ export declare class SlidesApi {
348
349
  * @param folder Document folder.
349
350
  * @param storage Document storage.
350
351
  */
351
- createPresentation(name: string, data?: Buffer, inputPassword?: string, password?: string, folder?: string, storage?: string): Promise<{
352
+ createPresentation(name: string, data?: Readable, inputPassword?: string, password?: string, folder?: string, storage?: string): Promise<{
352
353
  response: http.ClientResponse;
353
354
  body: model.Document;
354
355
  }>;
@@ -641,7 +642,7 @@ export declare class SlidesApi {
641
642
  * @param fontColor Watermark font color.
642
643
  * @param password Document password.
643
644
  */
644
- createWatermarkOnline(document: Buffer, shape?: model.Shape, fontHeight?: number, text?: string, fontName?: string, fontColor?: string, password?: string): Promise<{
645
+ createWatermarkOnline(document: Readable, shape?: model.Shape, fontHeight?: number, text?: string, fontName?: string, fontColor?: string, password?: string): Promise<{
645
646
  response: http.ClientResponse;
646
647
  body: Buffer;
647
648
  }>;
@@ -793,7 +794,7 @@ export declare class SlidesApi {
793
794
  * @param author Author of comments.
794
795
  * @param password Document password.
795
796
  */
796
- deleteCommentsOnline(document: Buffer, author?: string, password?: string): Promise<{
797
+ deleteCommentsOnline(document: Readable, author?: string, password?: string): Promise<{
797
798
  response: http.ClientResponse;
798
799
  body: Buffer;
799
800
  }>;
@@ -924,7 +925,7 @@ export declare class SlidesApi {
924
925
  * @param document Document data.
925
926
  * @param password Presentation password.
926
927
  */
927
- deleteProtectionOnline(document: Buffer, password: string): Promise<{
928
+ deleteProtectionOnline(document: Readable, password: string): Promise<{
928
929
  response: http.ClientResponse;
929
930
  body: Buffer;
930
931
  }>;
@@ -1012,7 +1013,7 @@ export declare class SlidesApi {
1012
1013
  * @param author Author of comments.
1013
1014
  * @param password Document password.
1014
1015
  */
1015
- deleteSlideCommentsOnline(document: Buffer, slideIndex: number, author?: string, password?: string): Promise<{
1016
+ deleteSlideCommentsOnline(document: Readable, slideIndex: number, author?: string, password?: string): Promise<{
1016
1017
  response: http.ClientResponse;
1017
1018
  body: Buffer;
1018
1019
  }>;
@@ -1386,6 +1387,26 @@ export declare class SlidesApi {
1386
1387
  response: http.ClientResponse;
1387
1388
  body: model.Shapes;
1388
1389
  }>;
1390
+ /**
1391
+ * Removes unused layout slides.
1392
+ * @param name Document name.
1393
+ * @param password Document password.
1394
+ * @param folder Document folder.
1395
+ * @param storage Document storage.
1396
+ */
1397
+ deleteUnusedLayoutSlides(name: string, password?: string, folder?: string, storage?: string): Promise<{
1398
+ response: http.ClientResponse;
1399
+ body: model.LayoutSlides;
1400
+ }>;
1401
+ /**
1402
+ * Removes unused layout slides.
1403
+ * @param document Document data
1404
+ * @param password Document password.
1405
+ */
1406
+ deleteUnusedLayoutSlidesOnline(document: Readable, password?: string): Promise<{
1407
+ response: http.ClientResponse;
1408
+ body: Buffer;
1409
+ }>;
1389
1410
  /**
1390
1411
  * Removes shapes with name \&quot;watermark\&quot; from the presentation.
1391
1412
  * @param name Document name.
@@ -1403,7 +1424,7 @@ export declare class SlidesApi {
1403
1424
  * @param shapeName Name of the watermark shape. If null, default value \"watermark\"is used.
1404
1425
  * @param password Document password.
1405
1426
  */
1406
- deleteWatermarkOnline(document: Buffer, shapeName?: string, password?: string): Promise<{
1427
+ deleteWatermarkOnline(document: Readable, shapeName?: string, password?: string): Promise<{
1407
1428
  response: http.ClientResponse;
1408
1429
  body: Buffer;
1409
1430
  }>;
@@ -1448,7 +1469,7 @@ export declare class SlidesApi {
1448
1469
  * @param index Image index.
1449
1470
  * @param password Document password.
1450
1471
  */
1451
- downloadImageDefaultFormatOnline(document: Buffer, index: number, password?: string): Promise<{
1472
+ downloadImageDefaultFormatOnline(document: Readable, index: number, password?: string): Promise<{
1452
1473
  response: http.ClientResponse;
1453
1474
  body: Buffer;
1454
1475
  }>;
@@ -1459,7 +1480,7 @@ export declare class SlidesApi {
1459
1480
  * @param format Export format (png, jpg, gif).
1460
1481
  * @param password Document password.
1461
1482
  */
1462
- downloadImageOnline(document: Buffer, index: number, format: model.ImageExportFormat, password?: string): Promise<{
1483
+ downloadImageOnline(document: Readable, index: number, format: model.ImageExportFormat, password?: string): Promise<{
1463
1484
  response: http.ClientResponse;
1464
1485
  body: Buffer;
1465
1486
  }>;
@@ -1491,7 +1512,7 @@ export declare class SlidesApi {
1491
1512
  * @param document Document data.
1492
1513
  * @param password Document password.
1493
1514
  */
1494
- downloadImagesDefaultFormatOnline(document: Buffer, password?: string): Promise<{
1515
+ downloadImagesDefaultFormatOnline(document: Readable, password?: string): Promise<{
1495
1516
  response: http.ClientResponse;
1496
1517
  body: Buffer;
1497
1518
  }>;
@@ -1501,7 +1522,7 @@ export declare class SlidesApi {
1501
1522
  * @param format Export format (png, jpg, gif).
1502
1523
  * @param password Document password.
1503
1524
  */
1504
- downloadImagesOnline(document: Buffer, format: model.ImageExportFormat, password?: string): Promise<{
1525
+ downloadImagesOnline(document: Readable, format: model.ImageExportFormat, password?: string): Promise<{
1505
1526
  response: http.ClientResponse;
1506
1527
  body: Buffer;
1507
1528
  }>;
@@ -1531,7 +1552,7 @@ export declare class SlidesApi {
1531
1552
  * @param password Document password.
1532
1553
  * @param fontsFolder Storage folder containing custom fonts to be used with the document.
1533
1554
  */
1534
- downloadNotesSlideOnline(document: Buffer, slideIndex: number, format: model.NotesSlideExportFormat, width?: number, height?: number, password?: string, fontsFolder?: string): Promise<{
1555
+ downloadNotesSlideOnline(document: Readable, slideIndex: number, format: model.NotesSlideExportFormat, width?: number, height?: number, password?: string, fontsFolder?: string): Promise<{
1535
1556
  response: http.ClientResponse;
1536
1557
  body: Buffer;
1537
1558
  }>;
@@ -1598,7 +1619,7 @@ export declare class SlidesApi {
1598
1619
  * @param fontsFolder Fonts folder.
1599
1620
  * @param options Export options.
1600
1621
  */
1601
- downloadShapeOnline(document: Buffer, slideIndex: number, shapeIndex: number, format: model.ShapeExportFormat, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, storage?: string, fontsFolder?: string, options?: model.IShapeExportOptions): Promise<{
1622
+ downloadShapeOnline(document: Readable, slideIndex: number, shapeIndex: number, format: model.ShapeExportFormat, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, storage?: string, fontsFolder?: string, options?: model.IShapeExportOptions): Promise<{
1602
1623
  response: http.ClientResponse;
1603
1624
  body: Buffer;
1604
1625
  }>;
@@ -1631,7 +1652,7 @@ export declare class SlidesApi {
1631
1652
  * @param fontsFolder Storage folder containing custom fonts to be used with the document.
1632
1653
  * @param options Export options.
1633
1654
  */
1634
- downloadSlideOnline(document: Buffer, slideIndex: number, format: model.SlideExportFormat, width?: number, height?: number, password?: string, storage?: string, fontsFolder?: string, options?: model.ExportOptions): Promise<{
1655
+ downloadSlideOnline(document: Readable, slideIndex: number, format: model.SlideExportFormat, width?: number, height?: number, password?: string, storage?: string, fontsFolder?: string, options?: model.ExportOptions): Promise<{
1635
1656
  response: http.ClientResponse;
1636
1657
  body: Buffer;
1637
1658
  }>;
@@ -1890,7 +1911,7 @@ export declare class SlidesApi {
1890
1911
  * @param slideIndex Slide index.
1891
1912
  * @param password Document password.
1892
1913
  */
1893
- getNotesSlideOnline(document: Buffer, slideIndex: number, password?: string): Promise<{
1914
+ getNotesSlideOnline(document: Readable, slideIndex: number, password?: string): Promise<{
1894
1915
  response: http.ClientResponse;
1895
1916
  body: model.NotesSlide;
1896
1917
  }>;
@@ -2457,6 +2478,40 @@ export declare class SlidesApi {
2457
2478
  response: http.ClientResponse;
2458
2479
  body: model.ViewProperties;
2459
2480
  }>;
2481
+ /**
2482
+ * Highlight all matches of sample in text frame text using specified color.
2483
+ * @param name Document name.
2484
+ * @param slideIndex Slide index.
2485
+ * @param shapeIndex Shape index.
2486
+ * @param regex Regular expression.
2487
+ * @param color Highlighting color.
2488
+ * @param wholeWordsOnly Match only whole words.
2489
+ * @param ignoreCase True to search ignoring char case.
2490
+ * @param password Document password.
2491
+ * @param folder Document folder.
2492
+ * @param storage Document storage.
2493
+ */
2494
+ highlightShapeRegex(name: string, slideIndex: number, shapeIndex: number, regex: string, color: string, wholeWordsOnly?: boolean, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
2495
+ response: http.ClientResponse;
2496
+ body: model.Shape;
2497
+ }>;
2498
+ /**
2499
+ * Highlight all matches of sample in text frame text using specified color.
2500
+ * @param name Document name.
2501
+ * @param slideIndex Slide index.
2502
+ * @param shapeIndex Shape index.
2503
+ * @param text Text sample to highlight.
2504
+ * @param color Highlighting color.
2505
+ * @param wholeWordsOnly Match only whole words.
2506
+ * @param ignoreCase True to search ignoring char case.
2507
+ * @param password Document password.
2508
+ * @param folder Document folder.
2509
+ * @param storage Document storage.
2510
+ */
2511
+ highlightShapeText(name: string, slideIndex: number, shapeIndex: number, text: string, color: string, wholeWordsOnly?: boolean, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
2512
+ response: http.ClientResponse;
2513
+ body: model.Shape;
2514
+ }>;
2460
2515
  /**
2461
2516
  * Create presentation document from html.
2462
2517
  * @param name Document name.
@@ -2477,7 +2532,7 @@ export declare class SlidesApi {
2477
2532
  * @param folder Document folder.
2478
2533
  * @param storage Document storage.
2479
2534
  */
2480
- importFromPdf(name: string, pdf?: Buffer, password?: string, folder?: string, storage?: string): Promise<{
2535
+ importFromPdf(name: string, pdf?: Readable, password?: string, folder?: string, storage?: string): Promise<{
2481
2536
  response: http.ClientResponse;
2482
2537
  body: model.Document;
2483
2538
  }>;
@@ -2500,7 +2555,7 @@ export declare class SlidesApi {
2500
2555
  * @param request Merge request.
2501
2556
  * @param storage Document storage.
2502
2557
  */
2503
- mergeAndSaveOnline(outPath: string, files?: Array<Buffer>, request?: model.OrderedMergeRequest, storage?: string): Promise<{
2558
+ mergeAndSaveOnline(outPath: string, files?: Array<Readable>, request?: model.OrderedMergeRequest, storage?: string): Promise<{
2504
2559
  response: http.ClientResponse;
2505
2560
  }>;
2506
2561
  /**
@@ -2509,7 +2564,7 @@ export declare class SlidesApi {
2509
2564
  * @param request Merge request.
2510
2565
  * @param storage Document storage.
2511
2566
  */
2512
- mergeOnline(files?: Array<Buffer>, request?: model.OrderedMergeRequest, storage?: string): Promise<{
2567
+ mergeOnline(files?: Array<Readable>, request?: model.OrderedMergeRequest, storage?: string): Promise<{
2513
2568
  response: http.ClientResponse;
2514
2569
  body: Buffer;
2515
2570
  }>;
@@ -2578,7 +2633,7 @@ export declare class SlidesApi {
2578
2633
  * @param slideIndex Slide index.
2579
2634
  * @param password Document password.
2580
2635
  */
2581
- notesSlideExistsOnline(document: Buffer, slideIndex: number, password?: string): Promise<{
2636
+ notesSlideExistsOnline(document: Readable, slideIndex: number, password?: string): Promise<{
2582
2637
  response: http.ClientResponse;
2583
2638
  body: model.EntityExists;
2584
2639
  }>;
@@ -2609,7 +2664,7 @@ export declare class SlidesApi {
2609
2664
  * @param pipeline A Pipeline object.
2610
2665
  * @param files Files to upload with the pipeline
2611
2666
  */
2612
- pipeline(pipeline: model.Pipeline, files?: Array<Buffer>): Promise<{
2667
+ pipeline(pipeline: model.Pipeline, files?: Array<Readable>): Promise<{
2613
2668
  response: http.ClientResponse;
2614
2669
  body: Buffer;
2615
2670
  }>;
@@ -2648,7 +2703,7 @@ export declare class SlidesApi {
2648
2703
  * @param ignoreCase True if character case must be ignored.
2649
2704
  * @param password Document password.
2650
2705
  */
2651
- replacePresentationTextOnline(document: Buffer, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string): Promise<{
2706
+ replacePresentationTextOnline(document: Readable, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string): Promise<{
2652
2707
  response: http.ClientResponse;
2653
2708
  body: Buffer;
2654
2709
  }>;
@@ -2676,7 +2731,7 @@ export declare class SlidesApi {
2676
2731
  * @param ignoreCase True if character case must be ignored.
2677
2732
  * @param password Document password.
2678
2733
  */
2679
- replaceSlideTextOnline(document: Buffer, slideIndex: number, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string): Promise<{
2734
+ replaceSlideTextOnline(document: Readable, slideIndex: number, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string): Promise<{
2680
2735
  response: http.ClientResponse;
2681
2736
  body: Buffer;
2682
2737
  }>;
@@ -2744,7 +2799,7 @@ export declare class SlidesApi {
2744
2799
  * @param fontsFolder Fonts folder.
2745
2800
  * @param options Export options.
2746
2801
  */
2747
- saveShapeOnline(document: Buffer, slideIndex: number, shapeIndex: number, format: model.ShapeExportFormat, outPath: string, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, storage?: string, fontsFolder?: string, options?: model.IShapeExportOptions): Promise<{
2802
+ saveShapeOnline(document: Readable, slideIndex: number, shapeIndex: number, format: model.ShapeExportFormat, outPath: string, scaleX?: number, scaleY?: number, bounds?: model.ShapeThumbnailBounds, password?: string, storage?: string, fontsFolder?: string, options?: model.IShapeExportOptions): Promise<{
2748
2803
  response: http.ClientResponse;
2749
2804
  }>;
2750
2805
  /**
@@ -2777,7 +2832,7 @@ export declare class SlidesApi {
2777
2832
  * @param fontsFolder Storage folder containing custom fonts to be used with the document.
2778
2833
  * @param options Export options.
2779
2834
  */
2780
- saveSlideOnline(document: Buffer, slideIndex: number, format: model.SlideExportFormat, outPath: string, width?: number, height?: number, password?: string, storage?: string, fontsFolder?: string, options?: model.ExportOptions): Promise<{
2835
+ saveSlideOnline(document: Readable, slideIndex: number, format: model.SlideExportFormat, outPath: string, width?: number, height?: number, password?: string, storage?: string, fontsFolder?: string, options?: model.ExportOptions): Promise<{
2781
2836
  response: http.ClientResponse;
2782
2837
  }>;
2783
2838
  /**
@@ -2948,7 +3003,7 @@ export declare class SlidesApi {
2948
3003
  * @param dto Protection properties.
2949
3004
  * @param password Document password.
2950
3005
  */
2951
- setProtectionOnline(document: Buffer, dto: model.ProtectionProperties, password?: string): Promise<{
3006
+ setProtectionOnline(document: Readable, dto: model.ProtectionProperties, password?: string): Promise<{
2952
3007
  response: http.ClientResponse;
2953
3008
  body: Buffer;
2954
3009
  }>;
@@ -3061,7 +3116,7 @@ export declare class SlidesApi {
3061
3116
  * @param storage Document storage.
3062
3117
  * @param fontsFolder Custom fonts folder.
3063
3118
  */
3064
- splitAndSaveOnline(document: Buffer, format: model.SlideExportFormat, destFolder?: string, width?: number, height?: number, from?: number, to?: number, password?: string, storage?: string, fontsFolder?: string): Promise<{
3119
+ splitAndSaveOnline(document: Readable, format: model.SlideExportFormat, destFolder?: string, width?: number, height?: number, from?: number, to?: number, password?: string, storage?: string, fontsFolder?: string): Promise<{
3065
3120
  response: http.ClientResponse;
3066
3121
  body: model.SplitDocumentResult;
3067
3122
  }>;
@@ -3077,7 +3132,7 @@ export declare class SlidesApi {
3077
3132
  * @param storage Document storage.
3078
3133
  * @param fontsFolder Custom fonts folder.
3079
3134
  */
3080
- splitOnline(document: Buffer, format: model.SlideExportFormat, width?: number, height?: number, from?: number, to?: number, password?: string, storage?: string, fontsFolder?: string): Promise<{
3135
+ splitOnline(document: Readable, format: model.SlideExportFormat, width?: number, height?: number, from?: number, to?: number, password?: string, storage?: string, fontsFolder?: string): Promise<{
3081
3136
  response: http.ClientResponse;
3082
3137
  body: Buffer;
3083
3138
  }>;
@@ -3445,7 +3500,7 @@ export declare class SlidesApi {
3445
3500
  * @param file File to upload
3446
3501
  * @param storageName Storage name
3447
3502
  */
3448
- uploadFile(path: string, file: Buffer, storageName?: string): Promise<{
3503
+ uploadFile(path: string, file: Readable, storageName?: string): Promise<{
3449
3504
  response: http.ClientResponse;
3450
3505
  body: model.FilesUploadResult;
3451
3506
  }>;