asposeslidescloud 22.12.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 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 22.9
31
-
32
- * Added new **ReplaceFont** and **ReplaceFontOnline** methods that allow replacing presentation fonts.
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 v22.12.0";
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asposeslidescloud",
3
- "version": "22.12.0",
3
+ "version": "23.1.0",
4
4
  "description": "Aspose.Slides Cloud SDK for Node.js",
5
5
  "homepage": "https://products.aspose.cloud/slides/cloud",
6
6
  "author": {