asposeslidescloud 22.11.0 → 23.1.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 +3 -90
- package/api.d.ts +19 -0
- package/api.js +61 -0
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +18 -4
- package/model.js +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,96 +27,9 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
|
|
|
27
27
|
**Web:** HTML/HTML5
|
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
|
29
29
|
|
|
30
|
-
## Enhancements in Version
|
|
31
|
-
|
|
32
|
-
*
|
|
33
|
-
* Added new **SetEmbeddedFontFromRequest** and **SetEmbeddedFontFromRequestOnline** that allow to embed fonts without uploading them to the storage.
|
|
34
|
-
* Added an optional **fontsFolder** parameter to **SetEmbeddedFont** and **SetEmbeddedFontOnline** methods to enable using custom fonts with those methods.
|
|
35
|
-
* Added **FontSubstRules** property to **ExportOptions** class to allow specifying font substitution rules in conversion methods.
|
|
36
|
-
* Added an optional **group** parameter to **ImportImagesFromSvg** method to allow importing SVG images as a GroupShape.
|
|
37
|
-
* Added new **CreateSmartArtNode** and **DeleteSmartArtNode** methods to manage individual nodes in SmartArt shapes.
|
|
38
|
-
* Added **FillFomat**, **LineFormat**, **EffectFormat** and **ThreeDFormat** properties to **DataPoint** class that allow formatting individual chart data points.
|
|
39
|
-
|
|
40
|
-
## Enhancements in Version 22.8
|
|
41
|
-
|
|
42
|
-
* With new **GetFonts** and **GetFontsOnline** methods you can get a list for fonts used in the presentation.
|
|
43
|
-
* Added new **SetEmbeddedFont**, **SetEmbeddedFontOnline**, **DeleteEmbeddedFont** and **DeleteEmbeddedFontOnline** methods to embed/unembed presentation fonts.
|
|
44
|
-
* Added new **ImportImagesFromSvg** method to import SVG images as individual geometry shapes.
|
|
45
|
-
|
|
46
|
-
## Enhancements in Version 22.7
|
|
47
|
-
|
|
48
|
-
* Added **Html**, **Pdf**, **Xps**, **Pptx**, **Odp**, **Otp**, **Ppt**, **Pps**, **Ppsx**, **Pptm**, **Ppsm**, **Potx**, **Pot**, **Potm**, **Svg**, **Fodp**, **Xaml**, **Html5** to the list of allowed values for **SlideExportFormat** enum. You can now export slide notes to those formats.
|
|
49
|
-
* Added **Html5** to the list of allowed values for **SlideExportFormat** enum. You can now export individual slides to HTML5.
|
|
50
|
-
* Added **Url** to the list of allowed values for **PresentationToMerge.SourceEnum** enum. You can now merge presentations from external URLs.
|
|
51
|
-
* New **DeleteUnusedMasterSlides** and **DeleteUnusedMasterSlidesOnline** methods.
|
|
52
|
-
* New **SetChartAxis**, **SetChartLegend**, **SetChartWall** methods allow to moduly chart elements more conveniently.
|
|
53
|
-
* **UpdateChartSeriesGroup** method was renamed to **SetChartSeriesGroup**.
|
|
54
|
-
|
|
55
|
-
## Enhancements in Version 22.6
|
|
56
|
-
* Added ned **GetSubshapeParagraphEffective**, **GetParagraphEffective** and **GetSubshapePortionEffective**, **GetPortionEffective** methods to retrieve actual format values for paragraphs and portions, whether they are inherited from parent entities or not.
|
|
57
|
-
* Password parameter is now optional for **GetProtectionProperties** method. So, you don't need to specify the password to check whether a presentation has a password.
|
|
58
|
-
* Added new **ChartSeriesGroup** class and **SeriesGroups** property to **Chart** class to enable managing chart series groups. Added new **UpdateChartSeriesGroup** method.
|
|
59
|
-
* Added **HasRoundedCorners** property to **Chart** class.
|
|
60
|
-
* Added **InvertIfNegative** property to **OneValueChartDataPoint** class.
|
|
61
|
-
* Changed **FormatScheme** class to return actual format values instead of resource links.
|
|
62
|
-
|
|
63
|
-
## Enhancements in Version 22.5
|
|
64
|
-
* Added **Paragraphs** property to **SmartArtNode** class to enable getting and setting text for SmartArt nodes.
|
|
65
|
-
* Added **ImageTransformList** property to **PictureFill** class to enable setting image transform effects. Added **ImageTransformEffect** class and subclasses for different kind of of effects.
|
|
66
|
-
* Added **PictureFillFormat** property to **VideoFrame** class to enable setting poster image for video frames.
|
|
67
|
-
* Added **SlideIndex** and **ShapeIndex** properties to **ResourceUri** class to simplify retrieveing slide & shape indexes for resources.
|
|
68
|
-
* Removed redundant **BoxAndWhiskersSeries**, **WaterfallSeries** and **WaterfallChartDataPoint** classes.
|
|
69
|
-
|
|
70
|
-
## Enhancements in Version 22.4
|
|
71
|
-
* Added **TransitionType** and **SlidesTransitionDuration** properties to **VideoExportOptions** class to enable creation videos with transitions.
|
|
72
|
-
* Added **DefaultPortionFormat** property to **Paragraph** class. Added new **PortionFormat** class.
|
|
73
|
-
* Added **EmbeddedFileBase64Data** and a number of other properties to **OleObjectFrame** class to enable creation of OLE Object frames.
|
|
74
|
-
* Added **AccessPermissions** class to support access permissions for PDF export.
|
|
75
|
-
* Added **PictureFillformat** property to **AudioFrame** class.
|
|
76
|
-
* Added **RowIndex** and **ColumnIndex** properties to **TableCell** class.
|
|
77
|
-
* Moved **Width** and **Height** properties from **ExportOptions** base class to the new **ImageExportOptionsBase class**. This is a superclass for **ImageExportOptions**, **GifExportOptions** and **TiffExportOptions** classes.
|
|
78
|
-
* Removed redundant **Shapes** property from **ShapeBase** class. It is only left for **GroupShape** class.
|
|
79
|
-
|
|
80
|
-
## Enhancements in Version 22.3
|
|
81
|
-
* Added **ModernSlideComment** class to support modern comments. Also added **SlideCommentBase** as base class for comments.
|
|
82
|
-
* Added optional **shapeIndex** parameter to **CreateComment** and **CreateCommentOnline** methods.
|
|
83
|
-
* Added **GetParagraphRectangle**, **GetPortionRectangle** method and new **TextBounds** class to get paragraph or portion bounds.
|
|
84
|
-
* Added optional **shapeType** parameter for **GetShapes** method. You can now get list of shapes of a particular type (e.g. charts or tables).
|
|
85
|
-
* Added **FontFallbackRules** class and **FontFallbackRules** property to **ExportOptions** class.
|
|
86
|
-
* Added **LatinFont**, **EastAsianFont** and **ComplexScriptFont** properties to **Portion** class to enable getting and seting portion font name.
|
|
87
|
-
* Added **ChartLinesFormat** class; added **MajorGridLinesFormat** and **MinorGridLinesFormat** properties to Axis class.
|
|
88
|
-
* Added **HideLegend** boolean property to **Legend** class.
|
|
89
|
-
|
|
90
|
-
## Enhancements in Version 22.2
|
|
91
|
-
* Added **Mpeg4** to the list of allowed values for **ExportFormat** type. You can now convert presentations to video.
|
|
92
|
-
* New **HighlightShapeText** and **HighlightShapeRegex** methods.
|
|
93
|
-
* New **DeleteUnusedLayoutSlides** and **DeleteUnusedLayoutSlides** methods.
|
|
94
|
-
* New **ZoomFrame** and **ZoomObject** classes with a number of subclasses.
|
|
95
|
-
* Added **TextFrameFormat** property to **Shape** class to support WordArt.
|
|
96
|
-
* Added **XYSeries** class as a supercalss for **ScatterSeries** and **BubbleSeries** methods.
|
|
97
|
-
* Added **None** to the list of allowed values for **TimeUnitType** enum type.
|
|
98
|
-
* **Level** property of **Category** class is deprecated and will be removed after v22.4.
|
|
99
|
-
|
|
100
|
-
## Enhancements in Version 22.11
|
|
101
|
-
|
|
102
|
-
* You can now specify data sources for chart elements. This is done with new **DataSource** type which is use with propertries **Chart.DataSourceForCategories**, **Series.DataSourceForName**, **OneValueSeries.DataSourceForValues**, **XYSeries.DataSourceForXValues**, **XYSeries.DataSourceForYValues**, **BubbleSeries.DataSourceForBubbleSizeValues**.
|
|
103
|
-
* You can now specify formulas for data points using new properties **OneValueChartDataPoint.ValueFormula**, **ScatterChartDataPoint.XValueFormula**, **ScatterChartDataPoint.YValueFormula**, **BubbleChartDataPoint.BubbleSizeFormula**.
|
|
104
|
-
* Added boolean **UseFrameSize** and **UseFrameRotation** properties to **SvgExportOptions** class.
|
|
105
|
-
|
|
106
|
-
## Enhancements in Version 22.10
|
|
107
|
-
|
|
108
|
-
* Added new **GetSlideShowProperties** and **SetSlideShowProperties** methods to get & set slideshow properties.
|
|
109
|
-
* Methods that work with shapes, paragraphs and portions now have an optional **subShape** parameter which can be used to access subshapes (SmartArt elements, grouped shapes). Separate methods for subshapes (**GetSubshapeParagraphs**, **CreateSubshape**, **AlignSubshapes** etc.) have been removed.
|
|
110
|
-
* Added boolean **RepeatUntilEndSlide** and **RepeatUntilNextClick** properties to **Effect** class.
|
|
111
|
-
|
|
112
|
-
## Enhancements in Version 22.1
|
|
113
|
-
* New **MathParagraph** property of **Portion** class allows to get and set math formulas. A set of **MathElement** subclasses allows to specify complex mathematical expressions.
|
|
114
|
-
* New **DownloadPortionAsMathMl** and **SavePortionAsMathMl** methods allow to export math formulas to MathML format.
|
|
115
|
-
* New **HyperlinkClick** and **HyperlinkMouseOver** methods of **ShapeBase** and **Portion** classes enable creation and manipulating hyperlinks for shapes and portions.
|
|
116
|
-
* 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.
|
|
117
|
-
* New **AlignSubshapes** method enables aligning shapes within a shape group.
|
|
118
|
-
* New **PlayAcrossSlides** and **RewindAudio** properties are added to **AudioFrame** class.
|
|
119
|
-
* Added **InClickSequence** to the list of allowable values for **AudioPlayModePreset** and **AudioPlayModePreset** enum types.
|
|
30
|
+
## Enhancements in Version 23.1
|
|
31
|
+
|
|
32
|
+
* New **CompressEmbeddedFonts** and **CompressEmbeddedFontsOnline** methods allow to reduce the size taken by embedded fonts by excluding unused characters.
|
|
120
33
|
|
|
121
34
|
## Licensing
|
|
122
35
|
All Aspose.Slides Cloud SDKs are licensed under MIT License.
|
package/api.d.ts
CHANGED
|
@@ -51,6 +51,25 @@ export declare class SlidesApi {
|
|
|
51
51
|
response: http.ServerResponse;
|
|
52
52
|
body: model.Shapes;
|
|
53
53
|
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Compresses embedded fonts by removing unused characters.
|
|
56
|
+
* @param name Document name.
|
|
57
|
+
* @param password Document password.
|
|
58
|
+
* @param folder Document folder.
|
|
59
|
+
* @param storage Document storage.
|
|
60
|
+
*/
|
|
61
|
+
compressEmbeddedFonts(name: string, password?: string, folder?: string, storage?: string): Promise<{
|
|
62
|
+
response: http.ServerResponse;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* Compresses embedded fonts by removing unused characters.
|
|
66
|
+
* @param document Document data.
|
|
67
|
+
* @param password Document password.
|
|
68
|
+
*/
|
|
69
|
+
compressEmbeddedFontsOnline(document: Readable, password?: string): Promise<{
|
|
70
|
+
response: http.ServerResponse;
|
|
71
|
+
body: Buffer;
|
|
72
|
+
}>;
|
|
54
73
|
/**
|
|
55
74
|
* Convert presentation from request content to format specified.
|
|
56
75
|
* @param document Document data.
|
package/api.js
CHANGED
|
@@ -183,6 +183,67 @@ class SlidesApi {
|
|
|
183
183
|
return Promise.resolve({ body: result, response });
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Compresses embedded fonts by removing unused characters.
|
|
188
|
+
* @param name Document name.
|
|
189
|
+
* @param password Document password.
|
|
190
|
+
* @param folder Document folder.
|
|
191
|
+
* @param storage Document storage.
|
|
192
|
+
*/
|
|
193
|
+
compressEmbeddedFonts(name, password = null, folder = null, storage = null) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
// verify required parameter 'name' is not null or undefined
|
|
196
|
+
if (name === null || name === undefined) {
|
|
197
|
+
throw new Error('The required parameter "name" was null or undefined when calling compressEmbeddedFonts.');
|
|
198
|
+
}
|
|
199
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts/embedded/compress";
|
|
200
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
201
|
+
const queryParameters = {};
|
|
202
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
203
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
204
|
+
const requestOptions = {
|
|
205
|
+
method: "POST",
|
|
206
|
+
qs: queryParameters,
|
|
207
|
+
headers: {},
|
|
208
|
+
uri: localVarPath,
|
|
209
|
+
json: true
|
|
210
|
+
};
|
|
211
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
212
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
213
|
+
return Promise.resolve({ response });
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Compresses embedded fonts by removing unused characters.
|
|
218
|
+
* @param document Document data.
|
|
219
|
+
* @param password Document password.
|
|
220
|
+
*/
|
|
221
|
+
compressEmbeddedFontsOnline(document, password = null) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
// verify required parameter 'document' is not null or undefined
|
|
224
|
+
if (document === null || document === undefined) {
|
|
225
|
+
throw new Error('The required parameter "document" was null or undefined when calling compressEmbeddedFontsOnline.');
|
|
226
|
+
}
|
|
227
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts/embedded/compress";
|
|
228
|
+
const queryParameters = {};
|
|
229
|
+
const requestOptions = {
|
|
230
|
+
method: "POST",
|
|
231
|
+
qs: queryParameters,
|
|
232
|
+
headers: {},
|
|
233
|
+
uri: localVarPath,
|
|
234
|
+
encoding: null
|
|
235
|
+
};
|
|
236
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
237
|
+
let localVarFiles = [];
|
|
238
|
+
if (document != null) {
|
|
239
|
+
localVarFiles.push(document);
|
|
240
|
+
}
|
|
241
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
242
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
243
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
244
|
+
return Promise.resolve({ body: result, response });
|
|
245
|
+
});
|
|
246
|
+
}
|
|
186
247
|
/**
|
|
187
248
|
* Convert presentation from request content to format specified.
|
|
188
249
|
* @param document Document data.
|
|
@@ -149,7 +149,7 @@ function invokeApiMethodInternal(requestOptions, configuration, notApplyAuthToRe
|
|
|
149
149
|
if (!requestOptions.headers) {
|
|
150
150
|
requestOptions.headers = {};
|
|
151
151
|
}
|
|
152
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk
|
|
152
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v23.1.0";
|
|
153
153
|
if (configuration.timeout) {
|
|
154
154
|
requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
|
|
155
155
|
}
|
package/model.d.ts
CHANGED
|
@@ -1246,6 +1246,14 @@ export declare class DataPoint {
|
|
|
1246
1246
|
* Gets or sets the line format.
|
|
1247
1247
|
*/
|
|
1248
1248
|
lineFormat?: LineFormat;
|
|
1249
|
+
type?: DataPoint.TypeEnum;
|
|
1250
|
+
}
|
|
1251
|
+
export declare namespace DataPoint {
|
|
1252
|
+
enum TypeEnum {
|
|
1253
|
+
OneValue,
|
|
1254
|
+
Scatter,
|
|
1255
|
+
Bubble
|
|
1256
|
+
}
|
|
1249
1257
|
}
|
|
1250
1258
|
/**
|
|
1251
1259
|
* Scatter chart (two-dimensional) data point
|
|
@@ -1255,11 +1263,11 @@ export declare class ScatterChartDataPoint extends DataPoint {
|
|
|
1255
1263
|
/**
|
|
1256
1264
|
* X-value
|
|
1257
1265
|
*/
|
|
1258
|
-
xValue
|
|
1266
|
+
xValue?: number;
|
|
1259
1267
|
/**
|
|
1260
1268
|
* Y-value
|
|
1261
1269
|
*/
|
|
1262
|
-
yValue
|
|
1270
|
+
yValue?: number;
|
|
1263
1271
|
/**
|
|
1264
1272
|
* Spreadsheet formula in A1-style.
|
|
1265
1273
|
*/
|
|
@@ -1269,6 +1277,8 @@ export declare class ScatterChartDataPoint extends DataPoint {
|
|
|
1269
1277
|
*/
|
|
1270
1278
|
yValueFormula?: string;
|
|
1271
1279
|
}
|
|
1280
|
+
export declare namespace ScatterChartDataPoint {
|
|
1281
|
+
}
|
|
1272
1282
|
/**
|
|
1273
1283
|
* Bubble chart data point.
|
|
1274
1284
|
*/
|
|
@@ -1277,12 +1287,14 @@ export declare class BubbleChartDataPoint extends ScatterChartDataPoint {
|
|
|
1277
1287
|
/**
|
|
1278
1288
|
* Bubble size.
|
|
1279
1289
|
*/
|
|
1280
|
-
bubbleSize
|
|
1290
|
+
bubbleSize?: number;
|
|
1281
1291
|
/**
|
|
1282
1292
|
* Spreadsheet formula in A1-style.
|
|
1283
1293
|
*/
|
|
1284
1294
|
bubbleSizeFormula?: string;
|
|
1285
1295
|
}
|
|
1296
|
+
export declare namespace BubbleChartDataPoint {
|
|
1297
|
+
}
|
|
1286
1298
|
/**
|
|
1287
1299
|
* A chart series.
|
|
1288
1300
|
*/
|
|
@@ -4273,7 +4285,7 @@ export declare class OneValueChartDataPoint extends DataPoint {
|
|
|
4273
4285
|
/**
|
|
4274
4286
|
* Value.
|
|
4275
4287
|
*/
|
|
4276
|
-
value
|
|
4288
|
+
value?: number;
|
|
4277
4289
|
/**
|
|
4278
4290
|
* Spreadsheet formula in A1-style.
|
|
4279
4291
|
*/
|
|
@@ -4287,6 +4299,8 @@ export declare class OneValueChartDataPoint extends DataPoint {
|
|
|
4287
4299
|
*/
|
|
4288
4300
|
invertIfNegative?: boolean;
|
|
4289
4301
|
}
|
|
4302
|
+
export declare namespace OneValueChartDataPoint {
|
|
4303
|
+
}
|
|
4290
4304
|
/**
|
|
4291
4305
|
* One value series.
|
|
4292
4306
|
*/
|
package/model.js
CHANGED
|
@@ -802,12 +802,21 @@ exports.BoxElement = BoxElement;
|
|
|
802
802
|
class DataPoint {
|
|
803
803
|
}
|
|
804
804
|
exports.DataPoint = DataPoint;
|
|
805
|
+
(function (DataPoint) {
|
|
806
|
+
let TypeEnum;
|
|
807
|
+
(function (TypeEnum) {
|
|
808
|
+
TypeEnum[TypeEnum["OneValue"] = 'OneValue'] = "OneValue";
|
|
809
|
+
TypeEnum[TypeEnum["Scatter"] = 'Scatter'] = "Scatter";
|
|
810
|
+
TypeEnum[TypeEnum["Bubble"] = 'Bubble'] = "Bubble";
|
|
811
|
+
})(TypeEnum = DataPoint.TypeEnum || (DataPoint.TypeEnum = {}));
|
|
812
|
+
})(DataPoint = exports.DataPoint || (exports.DataPoint = {}));
|
|
805
813
|
/**
|
|
806
814
|
* Scatter chart (two-dimensional) data point
|
|
807
815
|
*/
|
|
808
816
|
class ScatterChartDataPoint extends DataPoint {
|
|
809
817
|
constructor() {
|
|
810
818
|
super();
|
|
819
|
+
this.type = ScatterChartDataPoint.TypeEnum.Scatter;
|
|
811
820
|
}
|
|
812
821
|
}
|
|
813
822
|
exports.ScatterChartDataPoint = ScatterChartDataPoint;
|
|
@@ -817,6 +826,7 @@ exports.ScatterChartDataPoint = ScatterChartDataPoint;
|
|
|
817
826
|
class BubbleChartDataPoint extends ScatterChartDataPoint {
|
|
818
827
|
constructor() {
|
|
819
828
|
super();
|
|
829
|
+
this.type = BubbleChartDataPoint.TypeEnum.Bubble;
|
|
820
830
|
}
|
|
821
831
|
}
|
|
822
832
|
exports.BubbleChartDataPoint = BubbleChartDataPoint;
|
|
@@ -2616,6 +2626,7 @@ exports.OleObjectFrame = OleObjectFrame;
|
|
|
2616
2626
|
class OneValueChartDataPoint extends DataPoint {
|
|
2617
2627
|
constructor() {
|
|
2618
2628
|
super();
|
|
2629
|
+
this.type = OneValueChartDataPoint.TypeEnum.OneValue;
|
|
2619
2630
|
}
|
|
2620
2631
|
}
|
|
2621
2632
|
exports.OneValueChartDataPoint = OneValueChartDataPoint;
|