asposeslidescloud 22.4.0 → 22.8.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,6 +27,36 @@ You may want to check out Aspose free [PPT to PDF](https://products.aspose.app/s
27
27
  **Web:** HTML/HTML5
28
28
  **Other:** MPEG4, SWF (export whole presentations)
29
29
 
30
+ ## Enhancements in Version 22.8
31
+
32
+ * With new **GetFonts** and **GetFontsOnline** methods you can get a list for fonts used in the presentation.
33
+ * Added new **SetEmbeddedFont**, **SetEmbeddedFontOnline**, **DeleteEmbeddedFont** and **DeleteEmbeddedFontOnline** methods to embed/unembed presentation fonts.
34
+ * Added new **ImportImagesFromSvg** method to import SVG images as individual geometry shapes.
35
+
36
+ ## Enhancements in Version 22.7
37
+
38
+ * 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.
39
+ * Added **Html5** to the list of allowed values for **SlideExportFormat** enum. You can now export individual slides to HTML5.
40
+ * Added **Url** to the list of allowed values for **PresentationToMerge.SourceEnum** enum. You can now merge presentations from external URLs.
41
+ * New **DeleteUnusedMasterSlides** and **DeleteUnusedMasterSlidesOnline** methods.
42
+ * New **SetChartAxis**, **SetChartLegend**, **SetChartWall** methods allow to moduly chart elements more conveniently.
43
+ * **UpdateChartSeriesGroup** method was renamed to **SetChartSeriesGroup**.
44
+
45
+ ## Enhancements in Version 22.6
46
+ * 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.
47
+ * 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.
48
+ * Added new **ChartSeriesGroup** class and **SeriesGroups** property to **Chart** class to enable managing chart series groups. Added new **UpdateChartSeriesGroup** method.
49
+ * Added **HasRoundedCorners** property to **Chart** class.
50
+ * Added **InvertIfNegative** property to **OneValueChartDataPoint** class.
51
+ * Changed **FormatScheme** class to return actual format values instead of resource links.
52
+
53
+ ## Enhancements in Version 22.5
54
+ * Added **Paragraphs** property to **SmartArtNode** class to enable getting and setting text for SmartArt nodes.
55
+ * Added **ImageTransformList** property to **PictureFill** class to enable setting image transform effects. Added **ImageTransformEffect** class and subclasses for different kind of of effects.
56
+ * Added **PictureFillFormat** property to **VideoFrame** class to enable setting poster image for video frames.
57
+ * Added **SlideIndex** and **ShapeIndex** properties to **ResourceUri** class to simplify retrieveing slide & shape indexes for resources.
58
+ * Removed redundant **BoxAndWhiskersSeries**, **WaterfallSeries** and **WaterfallChartDataPoint** classes.
59
+
30
60
  ## Enhancements in Version 22.4
31
61
  * Added **TransitionType** and **SlidesTransitionDuration** properties to **VideoExportOptions** class to enable creation videos with transitions.
32
62
  * Added **DefaultPortionFormat** property to **Paragraph** class. Added new **PortionFormat** class.
package/api.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ /// <reference types="node" />
2
4
  import http = require("http");
3
5
  import { Readable } from 'stream';
4
6
  import { Configuration } from "./internal/configuration";
@@ -824,6 +826,28 @@ export declare class SlidesApi {
824
826
  response: http.ServerResponse;
825
827
  body: model.DocumentProperties;
826
828
  }>;
829
+ /**
830
+ * Removes specified embedded font and returns presentation fonts info.
831
+ * @param name Document name.
832
+ * @param fontName Font name.
833
+ * @param password Document password.
834
+ * @param folder Document folder.
835
+ * @param storage Document storage.
836
+ */
837
+ deleteEmbeddedFont(name: string, fontName: string, password?: string, folder?: string, storage?: string): Promise<{
838
+ response: http.ServerResponse;
839
+ body: model.FontsData;
840
+ }>;
841
+ /**
842
+ * Removes specified embedded font and returns presentation.
843
+ * @param document Document data.
844
+ * @param fontName Document name.
845
+ * @param password Document password.
846
+ */
847
+ deleteEmbeddedFontOnline(document: Readable, fontName: string, password?: string): Promise<{
848
+ response: http.ServerResponse;
849
+ body: Buffer;
850
+ }>;
827
851
  /**
828
852
  * Delete file
829
853
  * @param path File path e.g. '/folder/file.ext'
@@ -1410,6 +1434,28 @@ export declare class SlidesApi {
1410
1434
  response: http.ServerResponse;
1411
1435
  body: Buffer;
1412
1436
  }>;
1437
+ /**
1438
+ * Removes unused master slides.
1439
+ * @param name Document name.
1440
+ * @param ignorePreserveField Determines, whether this method should remove unused master even if its preserve property is set to true.
1441
+ * @param password Document password.
1442
+ * @param folder Document folder.
1443
+ * @param storage Document storage.
1444
+ */
1445
+ deleteUnusedMasterSlides(name: string, ignorePreserveField?: boolean, password?: string, folder?: string, storage?: string): Promise<{
1446
+ response: http.ServerResponse;
1447
+ body: model.MasterSlides;
1448
+ }>;
1449
+ /**
1450
+ * Removes unused master slides.
1451
+ * @param document Document data
1452
+ * @param ignorePreserveField Determines, whether this method should remove unused master even if its preserve property is set to true.
1453
+ * @param password Document password.
1454
+ */
1455
+ deleteUnusedMasterSlidesOnline(document: Readable, ignorePreserveField?: boolean, password?: string): Promise<{
1456
+ response: http.ServerResponse;
1457
+ body: Buffer;
1458
+ }>;
1413
1459
  /**
1414
1460
  * Removes shapes with name \&quot;watermark\&quot; from the presentation.
1415
1461
  * @param name Document name.
@@ -1632,8 +1678,8 @@ export declare class SlidesApi {
1632
1678
  * @param slideIndex Slide index.
1633
1679
  * @param format Output file format.
1634
1680
  * @param options Export options.
1635
- * @param width Output file width; 0 to not adjust the size. Default is 0.
1636
- * @param height Output file height; 0 to not adjust the size. Default is 0.
1681
+ * @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
1682
+ * @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
1637
1683
  * @param password Document password.
1638
1684
  * @param folder Document folder.
1639
1685
  * @param storage Document storage.
@@ -1648,8 +1694,8 @@ export declare class SlidesApi {
1648
1694
  * @param document Document data.
1649
1695
  * @param slideIndex Slide index.
1650
1696
  * @param format Output file format.
1651
- * @param width Output file width; 0 to not adjust the size. Default is 0.
1652
- * @param height Output file height; 0 to not adjust the size. Default is 0.
1697
+ * @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
1698
+ * @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
1653
1699
  * @param password Document password.
1654
1700
  * @param storage Document storage.
1655
1701
  * @param fontsFolder Storage folder containing custom fonts to be used with the document.
@@ -1826,6 +1872,26 @@ export declare class SlidesApi {
1826
1872
  response: http.ServerResponse;
1827
1873
  body: model.FontScheme;
1828
1874
  }>;
1875
+ /**
1876
+ * Returns presentation fonts info.
1877
+ * @param name Document name.
1878
+ * @param password Document password.
1879
+ * @param folder Document folder.
1880
+ * @param storage Document storage.
1881
+ */
1882
+ getFonts(name: string, password?: string, folder?: string, storage?: string): Promise<{
1883
+ response: http.ServerResponse;
1884
+ body: model.FontsData;
1885
+ }>;
1886
+ /**
1887
+ * Returns presentation fonts info.
1888
+ * @param document Document data.
1889
+ * @param password Document password.
1890
+ */
1891
+ getFontsOnline(document: Readable, password?: string): Promise<{
1892
+ response: http.ServerResponse;
1893
+ body: model.FontsData;
1894
+ }>;
1829
1895
  /**
1830
1896
  * Read slide theme format scheme info.
1831
1897
  * @param name Document name.
@@ -1932,6 +1998,20 @@ export declare class SlidesApi {
1932
1998
  response: http.ServerResponse;
1933
1999
  body: model.Paragraph;
1934
2000
  }>;
2001
+ /**
2002
+ * Read effective paragraph info.
2003
+ * @param name Document name.
2004
+ * @param slideIndex Slide index.
2005
+ * @param shapeIndex Shape index.
2006
+ * @param paragraphIndex Paragraph index.
2007
+ * @param password Document password.
2008
+ * @param folder Document folder.
2009
+ * @param storage Document storage.
2010
+ */
2011
+ getParagraphEffective(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2012
+ response: http.ServerResponse;
2013
+ body: model.Paragraph;
2014
+ }>;
1935
2015
  /**
1936
2016
  * Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
1937
2017
  * @param name Document name.
@@ -1999,6 +2079,21 @@ export declare class SlidesApi {
1999
2079
  response: http.ServerResponse;
2000
2080
  body: model.Portion;
2001
2081
  }>;
2082
+ /**
2083
+ * Read effective portion info.
2084
+ * @param name Document name.
2085
+ * @param slideIndex Slide index.
2086
+ * @param shapeIndex Shape index.
2087
+ * @param paragraphIndex Paragraph index.
2088
+ * @param portionIndex Portion index.
2089
+ * @param password Document password.
2090
+ * @param folder Document folder.
2091
+ * @param storage Document storage.
2092
+ */
2093
+ getPortionEffective(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2094
+ response: http.ServerResponse;
2095
+ body: model.Portion;
2096
+ }>;
2002
2097
  /**
2003
2098
  * Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
2004
2099
  * @param name Document name.
@@ -2430,6 +2525,21 @@ export declare class SlidesApi {
2430
2525
  response: http.ServerResponse;
2431
2526
  body: model.Paragraph;
2432
2527
  }>;
2528
+ /**
2529
+ * Read effective paragraph info (for smart art and group shapes).
2530
+ * @param name Document name.
2531
+ * @param slideIndex Slide index.
2532
+ * @param path Shape path.
2533
+ * @param shapeIndex Shape index.
2534
+ * @param paragraphIndex Paragraph index.
2535
+ * @param password Document password.
2536
+ * @param folder Document folder.
2537
+ * @param storage Document storage.
2538
+ */
2539
+ getSubshapeParagraphEffective(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2540
+ response: http.ServerResponse;
2541
+ body: model.Paragraph;
2542
+ }>;
2433
2543
  /**
2434
2544
  * Read shape paragraphs info (for smart art and group shapes).
2435
2545
  * @param name Document name.
@@ -2460,6 +2570,22 @@ export declare class SlidesApi {
2460
2570
  response: http.ServerResponse;
2461
2571
  body: model.Portion;
2462
2572
  }>;
2573
+ /**
2574
+ * Read effective portion info (for smart art and group shapes).
2575
+ * @param name Document name.
2576
+ * @param slideIndex Slide index.
2577
+ * @param path Shape path.
2578
+ * @param shapeIndex Shape index.
2579
+ * @param paragraphIndex Paragraph index.
2580
+ * @param portionIndex Portion index.
2581
+ * @param password Document password.
2582
+ * @param folder Document folder.
2583
+ * @param storage Document storage.
2584
+ */
2585
+ getSubshapePortionEffective(name: string, slideIndex: number, path: string, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
2586
+ response: http.ServerResponse;
2587
+ body: model.Portion;
2588
+ }>;
2463
2589
  /**
2464
2590
  * Read paragraph portions info (for smart art and group shapes).
2465
2591
  * @param name Document name.
@@ -2569,6 +2695,24 @@ export declare class SlidesApi {
2569
2695
  response: http.ServerResponse;
2570
2696
  body: model.Document;
2571
2697
  }>;
2698
+ /**
2699
+ * Imports shapes from SVG file.
2700
+ * @param name Document name.
2701
+ * @param slideIndex Slide index.
2702
+ * @param image SVG image data.
2703
+ * @param x The X coordinate of the imported group of shapes (0 is default if not specified).
2704
+ * @param y The Y coordinate of the imported group of shapes (0 is default if not specified).
2705
+ * @param width The width of the imported group of shapes (default is SVG image width).
2706
+ * @param height The height of the imported group of shapes (default is SVG image width).
2707
+ * @param shapes Indexes of shapes to import. All shapes are imported if not specified.
2708
+ * @param password Document password.
2709
+ * @param folder Presentation folder.
2710
+ * @param storage Presentation storage.
2711
+ */
2712
+ importShapesFromSvg(name: string, slideIndex: number, image?: Readable, x?: number, y?: number, width?: number, height?: number, shapes?: Array<number>, password?: string, folder?: string, storage?: string): Promise<{
2713
+ response: http.ServerResponse;
2714
+ body: model.Shapes;
2715
+ }>;
2572
2716
  /**
2573
2717
  * Merge the presentation with other presentations specified in the request parameter.
2574
2718
  * @param name Document name.
@@ -2842,8 +2986,8 @@ export declare class SlidesApi {
2842
2986
  * @param format Output file format.
2843
2987
  * @param outPath Path to upload the output file to.
2844
2988
  * @param options Export options.
2845
- * @param width Output file width; 0 to not adjust the size. Default is 0.
2846
- * @param height Output file height; 0 to not adjust the size. Default is 0.
2989
+ * @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
2990
+ * @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
2847
2991
  * @param password Document password.
2848
2992
  * @param folder Document folder.
2849
2993
  * @param storage Document storage.
@@ -2858,8 +3002,8 @@ export declare class SlidesApi {
2858
3002
  * @param slideIndex Slide index.
2859
3003
  * @param format Output file format.
2860
3004
  * @param outPath Path to save result.
2861
- * @param width Output file width; 0 to not adjust the size. Default is 0.
2862
- * @param height Output file height; 0 to not adjust the size. Default is 0.
3005
+ * @param width The width of the slide representation in the output format; 0 to not adjust the size. Default is 0.
3006
+ * @param height The height of the slide representation in the output format; 0 to not adjust the size. Default is 0.
2863
3007
  * @param password Document password.
2864
3008
  * @param storage Document storage.
2865
3009
  * @param fontsFolder Storage folder containing custom fonts to be used with the document.
@@ -2968,6 +3112,65 @@ export declare class SlidesApi {
2968
3112
  response: http.ServerResponse;
2969
3113
  body: model.SlideBackground;
2970
3114
  }>;
3115
+ /**
3116
+ * Set chart axis.
3117
+ * @param name Document name.
3118
+ * @param slideIndex Slide index.
3119
+ * @param shapeIndex Shape index.
3120
+ * @param axisType Axis type. Horizontal, Vertical, SecondaryHorizontal or SecondaryVertical.
3121
+ * @param axis Axis DTO.
3122
+ * @param password Document password.
3123
+ * @param folder Document folder.
3124
+ * @param storage Document storage.
3125
+ */
3126
+ setChartAxis(name: string, slideIndex: number, shapeIndex: number, axisType: model.AxisType, axis: model.Axis, password?: string, folder?: string, storage?: string): Promise<{
3127
+ response: http.ServerResponse;
3128
+ body: model.Axis;
3129
+ }>;
3130
+ /**
3131
+ * Set chart axis.
3132
+ * @param name Document name.
3133
+ * @param slideIndex Slide index.
3134
+ * @param shapeIndex Shape index.
3135
+ * @param legend Chart legend DTO.
3136
+ * @param password Document password.
3137
+ * @param folder Document folder.
3138
+ * @param storage Document storage.
3139
+ */
3140
+ setChartLegend(name: string, slideIndex: number, shapeIndex: number, legend: model.Legend, password?: string, folder?: string, storage?: string): Promise<{
3141
+ response: http.ServerResponse;
3142
+ body: model.Legend;
3143
+ }>;
3144
+ /**
3145
+ * Set a series group in a chart.
3146
+ * @param name Document name.
3147
+ * @param slideIndex Slide index.
3148
+ * @param shapeIndex Shape index (must be a chart).
3149
+ * @param seriesGroupIndex Series group index.
3150
+ * @param seriesGroup Series group DTO.
3151
+ * @param password Document password.
3152
+ * @param folder Document folder.
3153
+ * @param storage Document storage.
3154
+ */
3155
+ setChartSeriesGroup(name: string, slideIndex: number, shapeIndex: number, seriesGroupIndex: number, seriesGroup: model.ChartSeriesGroup, password?: string, folder?: string, storage?: string): Promise<{
3156
+ response: http.ServerResponse;
3157
+ body: model.Chart;
3158
+ }>;
3159
+ /**
3160
+ * Set 3D chart wall.
3161
+ * @param name Document name.
3162
+ * @param slideIndex Slide index.
3163
+ * @param shapeIndex Shape index.
3164
+ * @param chartWallType Chart wall type: floor, sideWall or backWall.
3165
+ * @param chartWall Chart wall DTO.
3166
+ * @param password Document password.
3167
+ * @param folder Document folder.
3168
+ * @param storage Document storage.
3169
+ */
3170
+ setChartWall(name: string, slideIndex: number, shapeIndex: number, chartWallType: model.ChartWallType, chartWall: model.ChartWall, password?: string, folder?: string, storage?: string): Promise<{
3171
+ response: http.ServerResponse;
3172
+ body: model.ChartWall;
3173
+ }>;
2971
3174
  /**
2972
3175
  * Set document properties.
2973
3176
  * @param name Document name.
@@ -2993,6 +3196,30 @@ export declare class SlidesApi {
2993
3196
  response: http.ServerResponse;
2994
3197
  body: model.DocumentProperty;
2995
3198
  }>;
3199
+ /**
3200
+ * Embeds specified font and returns presentation fonts info.
3201
+ * @param name Document name.
3202
+ * @param fontName Document name.
3203
+ * @param onlyUsed Only used characters will be embedded.
3204
+ * @param password Document password.
3205
+ * @param folder Document folder.
3206
+ * @param storage Document storage.
3207
+ */
3208
+ setEmbeddedFont(name: string, fontName: string, onlyUsed?: boolean, password?: string, folder?: string, storage?: string): Promise<{
3209
+ response: http.ServerResponse;
3210
+ body: model.FontsData;
3211
+ }>;
3212
+ /**
3213
+ * Embeds specified font and returns presentation.
3214
+ * @param document Document data.
3215
+ * @param fontName Font name.
3216
+ * @param onlyUsed Only used characters will be embedded.
3217
+ * @param password Document password.
3218
+ */
3219
+ setEmbeddedFontOnline(document: Readable, fontName: string, onlyUsed?: boolean, password?: string): Promise<{
3220
+ response: http.ServerResponse;
3221
+ body: Buffer;
3222
+ }>;
2996
3223
  /**
2997
3224
  * Set header/footer the notes slide.
2998
3225
  * @param name Document name.