asposeslidescloud 22.7.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 +6 -0
- package/api.d.ts +84 -0
- package/api.js +267 -0
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +22 -0
- package/model.js +17 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,12 @@ 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
|
+
|
|
30
36
|
## Enhancements in Version 22.7
|
|
31
37
|
|
|
32
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.
|
package/api.d.ts
CHANGED
|
@@ -826,6 +826,28 @@ export declare class SlidesApi {
|
|
|
826
826
|
response: http.ServerResponse;
|
|
827
827
|
body: model.DocumentProperties;
|
|
828
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
|
+
}>;
|
|
829
851
|
/**
|
|
830
852
|
* Delete file
|
|
831
853
|
* @param path File path e.g. '/folder/file.ext'
|
|
@@ -1850,6 +1872,26 @@ export declare class SlidesApi {
|
|
|
1850
1872
|
response: http.ServerResponse;
|
|
1851
1873
|
body: model.FontScheme;
|
|
1852
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
|
+
}>;
|
|
1853
1895
|
/**
|
|
1854
1896
|
* Read slide theme format scheme info.
|
|
1855
1897
|
* @param name Document name.
|
|
@@ -2653,6 +2695,24 @@ export declare class SlidesApi {
|
|
|
2653
2695
|
response: http.ServerResponse;
|
|
2654
2696
|
body: model.Document;
|
|
2655
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
|
+
}>;
|
|
2656
2716
|
/**
|
|
2657
2717
|
* Merge the presentation with other presentations specified in the request parameter.
|
|
2658
2718
|
* @param name Document name.
|
|
@@ -3136,6 +3196,30 @@ export declare class SlidesApi {
|
|
|
3136
3196
|
response: http.ServerResponse;
|
|
3137
3197
|
body: model.DocumentProperty;
|
|
3138
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
|
+
}>;
|
|
3139
3223
|
/**
|
|
3140
3224
|
* Set header/footer the notes slide.
|
|
3141
3225
|
* @param name Document name.
|
package/api.js
CHANGED
|
@@ -2725,6 +2725,80 @@ class SlidesApi {
|
|
|
2725
2725
|
return Promise.resolve({ body: result, response });
|
|
2726
2726
|
});
|
|
2727
2727
|
}
|
|
2728
|
+
/**
|
|
2729
|
+
* Removes specified embedded font and returns presentation fonts info.
|
|
2730
|
+
* @param name Document name.
|
|
2731
|
+
* @param fontName Font name.
|
|
2732
|
+
* @param password Document password.
|
|
2733
|
+
* @param folder Document folder.
|
|
2734
|
+
* @param storage Document storage.
|
|
2735
|
+
*/
|
|
2736
|
+
deleteEmbeddedFont(name, fontName, password = null, folder = null, storage = null) {
|
|
2737
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2738
|
+
// verify required parameter 'name' is not null or undefined
|
|
2739
|
+
if (name === null || name === undefined) {
|
|
2740
|
+
throw new Error('The required parameter "name" was null or undefined when calling deleteEmbeddedFont.');
|
|
2741
|
+
}
|
|
2742
|
+
// verify required parameter 'fontName' is not null or undefined
|
|
2743
|
+
if (fontName === null || fontName === undefined) {
|
|
2744
|
+
throw new Error('The required parameter "fontName" was null or undefined when calling deleteEmbeddedFont.');
|
|
2745
|
+
}
|
|
2746
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts/embedded/{fontName}";
|
|
2747
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
2748
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
|
|
2749
|
+
const queryParameters = {};
|
|
2750
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
2751
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
2752
|
+
const requestOptions = {
|
|
2753
|
+
method: "DELETE",
|
|
2754
|
+
qs: queryParameters,
|
|
2755
|
+
headers: {},
|
|
2756
|
+
uri: localVarPath,
|
|
2757
|
+
json: true
|
|
2758
|
+
};
|
|
2759
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
2760
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
2761
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
|
|
2762
|
+
return Promise.resolve({ body: result, response });
|
|
2763
|
+
});
|
|
2764
|
+
}
|
|
2765
|
+
/**
|
|
2766
|
+
* Removes specified embedded font and returns presentation.
|
|
2767
|
+
* @param document Document data.
|
|
2768
|
+
* @param fontName Document name.
|
|
2769
|
+
* @param password Document password.
|
|
2770
|
+
*/
|
|
2771
|
+
deleteEmbeddedFontOnline(document, fontName, password = null) {
|
|
2772
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2773
|
+
// verify required parameter 'document' is not null or undefined
|
|
2774
|
+
if (document === null || document === undefined) {
|
|
2775
|
+
throw new Error('The required parameter "document" was null or undefined when calling deleteEmbeddedFontOnline.');
|
|
2776
|
+
}
|
|
2777
|
+
// verify required parameter 'fontName' is not null or undefined
|
|
2778
|
+
if (fontName === null || fontName === undefined) {
|
|
2779
|
+
throw new Error('The required parameter "fontName" was null or undefined when calling deleteEmbeddedFontOnline.');
|
|
2780
|
+
}
|
|
2781
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts/embedded/{fontName}/delete";
|
|
2782
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
|
|
2783
|
+
const queryParameters = {};
|
|
2784
|
+
const requestOptions = {
|
|
2785
|
+
method: "POST",
|
|
2786
|
+
qs: queryParameters,
|
|
2787
|
+
headers: {},
|
|
2788
|
+
uri: localVarPath,
|
|
2789
|
+
encoding: null
|
|
2790
|
+
};
|
|
2791
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
2792
|
+
let localVarFiles = [];
|
|
2793
|
+
if (document != null) {
|
|
2794
|
+
localVarFiles.push(document);
|
|
2795
|
+
}
|
|
2796
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
2797
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
2798
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
2799
|
+
return Promise.resolve({ body: result, response });
|
|
2800
|
+
});
|
|
2801
|
+
}
|
|
2728
2802
|
/**
|
|
2729
2803
|
* Delete file
|
|
2730
2804
|
* @param path File path e.g. '/folder/file.ext'
|
|
@@ -6186,6 +6260,68 @@ class SlidesApi {
|
|
|
6186
6260
|
return Promise.resolve({ body: result, response });
|
|
6187
6261
|
});
|
|
6188
6262
|
}
|
|
6263
|
+
/**
|
|
6264
|
+
* Returns presentation fonts info.
|
|
6265
|
+
* @param name Document name.
|
|
6266
|
+
* @param password Document password.
|
|
6267
|
+
* @param folder Document folder.
|
|
6268
|
+
* @param storage Document storage.
|
|
6269
|
+
*/
|
|
6270
|
+
getFonts(name, password = null, folder = null, storage = null) {
|
|
6271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6272
|
+
// verify required parameter 'name' is not null or undefined
|
|
6273
|
+
if (name === null || name === undefined) {
|
|
6274
|
+
throw new Error('The required parameter "name" was null or undefined when calling getFonts.');
|
|
6275
|
+
}
|
|
6276
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts";
|
|
6277
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
6278
|
+
const queryParameters = {};
|
|
6279
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
6280
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
6281
|
+
const requestOptions = {
|
|
6282
|
+
method: "GET",
|
|
6283
|
+
qs: queryParameters,
|
|
6284
|
+
headers: {},
|
|
6285
|
+
uri: localVarPath,
|
|
6286
|
+
json: true
|
|
6287
|
+
};
|
|
6288
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6289
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6290
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
|
|
6291
|
+
return Promise.resolve({ body: result, response });
|
|
6292
|
+
});
|
|
6293
|
+
}
|
|
6294
|
+
/**
|
|
6295
|
+
* Returns presentation fonts info.
|
|
6296
|
+
* @param document Document data.
|
|
6297
|
+
* @param password Document password.
|
|
6298
|
+
*/
|
|
6299
|
+
getFontsOnline(document, password = null) {
|
|
6300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6301
|
+
// verify required parameter 'document' is not null or undefined
|
|
6302
|
+
if (document === null || document === undefined) {
|
|
6303
|
+
throw new Error('The required parameter "document" was null or undefined when calling getFontsOnline.');
|
|
6304
|
+
}
|
|
6305
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts";
|
|
6306
|
+
const queryParameters = {};
|
|
6307
|
+
const requestOptions = {
|
|
6308
|
+
method: "POST",
|
|
6309
|
+
qs: queryParameters,
|
|
6310
|
+
headers: {},
|
|
6311
|
+
uri: localVarPath,
|
|
6312
|
+
json: true
|
|
6313
|
+
};
|
|
6314
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
6315
|
+
let localVarFiles = [];
|
|
6316
|
+
if (document != null) {
|
|
6317
|
+
localVarFiles.push(document);
|
|
6318
|
+
}
|
|
6319
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
6320
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
6321
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
|
|
6322
|
+
return Promise.resolve({ body: result, response });
|
|
6323
|
+
});
|
|
6324
|
+
}
|
|
6189
6325
|
/**
|
|
6190
6326
|
* Read slide theme format scheme info.
|
|
6191
6327
|
* @param name Document name.
|
|
@@ -8880,6 +9016,59 @@ class SlidesApi {
|
|
|
8880
9016
|
return Promise.resolve({ body: result, response });
|
|
8881
9017
|
});
|
|
8882
9018
|
}
|
|
9019
|
+
/**
|
|
9020
|
+
* Imports shapes from SVG file.
|
|
9021
|
+
* @param name Document name.
|
|
9022
|
+
* @param slideIndex Slide index.
|
|
9023
|
+
* @param image SVG image data.
|
|
9024
|
+
* @param x The X coordinate of the imported group of shapes (0 is default if not specified).
|
|
9025
|
+
* @param y The Y coordinate of the imported group of shapes (0 is default if not specified).
|
|
9026
|
+
* @param width The width of the imported group of shapes (default is SVG image width).
|
|
9027
|
+
* @param height The height of the imported group of shapes (default is SVG image width).
|
|
9028
|
+
* @param shapes Indexes of shapes to import. All shapes are imported if not specified.
|
|
9029
|
+
* @param password Document password.
|
|
9030
|
+
* @param folder Presentation folder.
|
|
9031
|
+
* @param storage Presentation storage.
|
|
9032
|
+
*/
|
|
9033
|
+
importShapesFromSvg(name, slideIndex, image = null, x = null, y = null, width = null, height = null, shapes = null, password = null, folder = null, storage = null) {
|
|
9034
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9035
|
+
// verify required parameter 'name' is not null or undefined
|
|
9036
|
+
if (name === null || name === undefined) {
|
|
9037
|
+
throw new Error('The required parameter "name" was null or undefined when calling importShapesFromSvg.');
|
|
9038
|
+
}
|
|
9039
|
+
// verify required parameter 'slideIndex' is not null or undefined
|
|
9040
|
+
if (slideIndex === null || slideIndex === undefined) {
|
|
9041
|
+
throw new Error('The required parameter "slideIndex" was null or undefined when calling importShapesFromSvg.');
|
|
9042
|
+
}
|
|
9043
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/fromSvg";
|
|
9044
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
9045
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
9046
|
+
const queryParameters = {};
|
|
9047
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "x", x);
|
|
9048
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "y", y);
|
|
9049
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "width", width);
|
|
9050
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "height", height);
|
|
9051
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "shapes", shapes);
|
|
9052
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
9053
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
9054
|
+
const requestOptions = {
|
|
9055
|
+
method: "POST",
|
|
9056
|
+
qs: queryParameters,
|
|
9057
|
+
headers: {},
|
|
9058
|
+
uri: localVarPath,
|
|
9059
|
+
json: true
|
|
9060
|
+
};
|
|
9061
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
9062
|
+
let localVarFiles = [];
|
|
9063
|
+
if (image != null) {
|
|
9064
|
+
localVarFiles.push(image);
|
|
9065
|
+
}
|
|
9066
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
9067
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
9068
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Shapes");
|
|
9069
|
+
return Promise.resolve({ body: result, response });
|
|
9070
|
+
});
|
|
9071
|
+
}
|
|
8883
9072
|
/**
|
|
8884
9073
|
* Merge the presentation with other presentations specified in the request parameter.
|
|
8885
9074
|
* @param name Document name.
|
|
@@ -10556,6 +10745,84 @@ class SlidesApi {
|
|
|
10556
10745
|
return Promise.resolve({ body: result, response });
|
|
10557
10746
|
});
|
|
10558
10747
|
}
|
|
10748
|
+
/**
|
|
10749
|
+
* Embeds specified font and returns presentation fonts info.
|
|
10750
|
+
* @param name Document name.
|
|
10751
|
+
* @param fontName Document name.
|
|
10752
|
+
* @param onlyUsed Only used characters will be embedded.
|
|
10753
|
+
* @param password Document password.
|
|
10754
|
+
* @param folder Document folder.
|
|
10755
|
+
* @param storage Document storage.
|
|
10756
|
+
*/
|
|
10757
|
+
setEmbeddedFont(name, fontName, onlyUsed = null, password = null, folder = null, storage = null) {
|
|
10758
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10759
|
+
// verify required parameter 'name' is not null or undefined
|
|
10760
|
+
if (name === null || name === undefined) {
|
|
10761
|
+
throw new Error('The required parameter "name" was null or undefined when calling setEmbeddedFont.');
|
|
10762
|
+
}
|
|
10763
|
+
// verify required parameter 'fontName' is not null or undefined
|
|
10764
|
+
if (fontName === null || fontName === undefined) {
|
|
10765
|
+
throw new Error('The required parameter "fontName" was null or undefined when calling setEmbeddedFont.');
|
|
10766
|
+
}
|
|
10767
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/fonts/embedded/{fontName}";
|
|
10768
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
10769
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
|
|
10770
|
+
const queryParameters = {};
|
|
10771
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "onlyUsed", onlyUsed);
|
|
10772
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
10773
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
10774
|
+
const requestOptions = {
|
|
10775
|
+
method: "POST",
|
|
10776
|
+
qs: queryParameters,
|
|
10777
|
+
headers: {},
|
|
10778
|
+
uri: localVarPath,
|
|
10779
|
+
json: true
|
|
10780
|
+
};
|
|
10781
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10782
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10783
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FontsData");
|
|
10784
|
+
return Promise.resolve({ body: result, response });
|
|
10785
|
+
});
|
|
10786
|
+
}
|
|
10787
|
+
/**
|
|
10788
|
+
* Embeds specified font and returns presentation.
|
|
10789
|
+
* @param document Document data.
|
|
10790
|
+
* @param fontName Font name.
|
|
10791
|
+
* @param onlyUsed Only used characters will be embedded.
|
|
10792
|
+
* @param password Document password.
|
|
10793
|
+
*/
|
|
10794
|
+
setEmbeddedFontOnline(document, fontName, onlyUsed = null, password = null) {
|
|
10795
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10796
|
+
// verify required parameter 'document' is not null or undefined
|
|
10797
|
+
if (document === null || document === undefined) {
|
|
10798
|
+
throw new Error('The required parameter "document" was null or undefined when calling setEmbeddedFontOnline.');
|
|
10799
|
+
}
|
|
10800
|
+
// verify required parameter 'fontName' is not null or undefined
|
|
10801
|
+
if (fontName === null || fontName === undefined) {
|
|
10802
|
+
throw new Error('The required parameter "fontName" was null or undefined when calling setEmbeddedFontOnline.');
|
|
10803
|
+
}
|
|
10804
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/fonts/embedded/{fontName}";
|
|
10805
|
+
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "fontName", objectSerializer_1.ObjectSerializer.toString(fontName));
|
|
10806
|
+
const queryParameters = {};
|
|
10807
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "onlyUsed", onlyUsed);
|
|
10808
|
+
const requestOptions = {
|
|
10809
|
+
method: "POST",
|
|
10810
|
+
qs: queryParameters,
|
|
10811
|
+
headers: {},
|
|
10812
|
+
uri: localVarPath,
|
|
10813
|
+
encoding: null
|
|
10814
|
+
};
|
|
10815
|
+
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
10816
|
+
let localVarFiles = [];
|
|
10817
|
+
if (document != null) {
|
|
10818
|
+
localVarFiles.push(document);
|
|
10819
|
+
}
|
|
10820
|
+
(0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
|
|
10821
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
10822
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
10823
|
+
return Promise.resolve({ body: result, response });
|
|
10824
|
+
});
|
|
10825
|
+
}
|
|
10559
10826
|
/**
|
|
10560
10827
|
* Set header/footer the notes slide.
|
|
10561
10828
|
* @param name Document name.
|
|
@@ -146,7 +146,7 @@ function invokeApiMethodInternal(requestOptions, confguration, notApplyAuthToReq
|
|
|
146
146
|
if (!requestOptions.headers) {
|
|
147
147
|
requestOptions.headers = {};
|
|
148
148
|
}
|
|
149
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.
|
|
149
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.8.0";
|
|
150
150
|
if (confguration.timeout) {
|
|
151
151
|
requestOptions.headers["x-aspose-timeout"] = confguration.timeout;
|
|
152
152
|
}
|
package/model.d.ts
CHANGED
|
@@ -1199,6 +1199,19 @@ export declare namespace FillOverlayEffect {
|
|
|
1199
1199
|
Screen
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
|
+
/**
|
|
1203
|
+
* Represents font info.
|
|
1204
|
+
*/
|
|
1205
|
+
export declare class FontData {
|
|
1206
|
+
/**
|
|
1207
|
+
* Font name
|
|
1208
|
+
*/
|
|
1209
|
+
fontName?: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* Returns true if font is embedded.
|
|
1212
|
+
*/
|
|
1213
|
+
isEmbedded?: boolean;
|
|
1214
|
+
}
|
|
1202
1215
|
/**
|
|
1203
1216
|
* Represents font fallback rule.
|
|
1204
1217
|
*/
|
|
@@ -1233,6 +1246,15 @@ export declare class FontSet {
|
|
|
1233
1246
|
*/
|
|
1234
1247
|
latin?: string;
|
|
1235
1248
|
}
|
|
1249
|
+
/**
|
|
1250
|
+
* List of fonts data
|
|
1251
|
+
*/
|
|
1252
|
+
export declare class FontsData {
|
|
1253
|
+
/**
|
|
1254
|
+
* Fonts data list.
|
|
1255
|
+
*/
|
|
1256
|
+
list?: Array<FontData>;
|
|
1257
|
+
}
|
|
1236
1258
|
/**
|
|
1237
1259
|
* Represents GeometryPath of the shape
|
|
1238
1260
|
*/
|
package/model.js
CHANGED
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
* SOFTWARE.
|
|
24
24
|
*/
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.SummaryZoomSection = exports.ZoomFrame = exports.VideoFrame = exports.SmartArtShape = exports.Shape = exports.SectionZoomFrame = exports.PictureFrame = exports.Connector = exports.AudioFrame = exports.ZoomObject = exports.TiffExportOptions = exports.Table = exports.SummaryZoomFrame = exports.SmartArt = exports.SlideReplaceResult = exports.ScatterSeries = exports.OleObjectFrame = exports.ImageExportOptions = exports.GroupShape = exports.GraphicalObject = exports.GifExportOptions = exports.GeometryShape = exports.DocumentReplaceResult = exports.Chart = exports.BubbleSeries = exports.BubbleChartDataPoint = exports.XpsExportOptions = exports.XamlExportOptions = exports.XYSeries = exports.ViewProperties = exports.VideoExportOptions = exports.UpdateShape = exports.UpdateBackground = exports.TintEffect = exports.Theme = void 0;
|
|
26
|
+
exports.MathParagraph = exports.MathElement = exports.LineFormat = exports.LightRig = exports.Legend = exports.InteractiveSequence = exports.InputFile = exports.Input = exports.InnerShadowEffect = exports.ImageTransformEffect = exports.ImageExportFormat = exports.IShapeExportOptions = exports.Hyperlink = exports.GradientFillStop = exports.GlowEffect = exports.GeometryPaths = exports.GeometryPath = exports.FontsData = exports.FontSet = exports.FontFallbackRule = exports.FontData = exports.FillOverlayEffect = exports.FillFormat = exports.FilesUploadResult = exports.FilesList = exports.FileVersions = exports.ExportOptions = exports.ExportFormat = exports.ErrorDetails = exports.EntityExists = exports.EffectFormat = exports.Effect = exports.DiscUsage = exports.DataPoint = exports.CustomDashPattern = exports.CommonSlideViewProperties = exports.ChartWallType = exports.ChartWall = exports.ChartTitle = exports.ChartSeriesGroup = exports.ChartLinesFormat = exports.ChartCategory = exports.Camera = exports.BlurEffect = exports.AxisType = exports.Axis = exports.Axes = exports.ArrowHeadProperties = exports.ApiInfo = exports.AccessPermissions = void 0;
|
|
27
|
+
exports.AlphaInverseEffect = exports.AlphaFloorEffect = exports.AlphaCeilingEffect = exports.AlphaBiLevelEffect = exports.AddSlide = exports.AddShape = exports.AddMasterSlide = exports.AddLayoutSlide = exports.AccentElement = exports.ThreeDFormat = exports.TextItem = exports.TextFrameFormat = exports.TextBounds = exports.Task = exports.TableRow = exports.TableColumn = exports.TableCell = exports.StorageFile = exports.StorageExist = exports.SpecialSlideType = exports.SoftEdgeEffect = exports.SmartArtNode = exports.SlideExportFormat = exports.SlideCommentBase = exports.ShapesAlignmentType = exports.ShapeType = exports.ShapeThumbnailBounds = exports.ShapeImageExportOptions = exports.ShapeExportFormat = exports.ShapeBevel = exports.SeriesMarker = exports.Series = exports.ResourceUri = exports.ResourceBase = exports.ReflectionEffect = exports.PresetShadowEffect = exports.PresentationsMergeRequest = exports.PresentationToMerge = exports.PortionFormat = exports.PlotArea = exports.Pipeline = exports.PathSegment = exports.OutputFile = exports.OuterShadowEffect = exports.OrderedMergeRequest = exports.ObjectExist = exports.NotesSlideExportFormat = exports.NormalViewRestoredProperties = exports.ModelError = exports.MergingSource = void 0;
|
|
28
|
+
exports.NaryOperatorElement = exports.MoveToPathSegment = exports.Merge = exports.MatrixElement = exports.MasterSlides = exports.MasterSlide = exports.LuminanceEffect = exports.LineToPathSegment = exports.LimitElement = exports.LeftSubSuperscriptElement = exports.LayoutSlides = exports.LayoutSlide = exports.Images = exports.ImageExportOptionsBase = exports.Image = exports.HtmlExportOptions = exports.Html5ExportOptions = exports.HslEffect = exports.HeaderFooter = exports.GroupingCharacterElement = exports.GrayScaleEffect = exports.GradientFill = exports.FunctionElement = exports.FractionElement = exports.FormatScheme = exports.FontScheme = exports.FillOverlayImageEffect = exports.FileVersion = exports.DuotoneEffect = exports.DocumentProperty = exports.DocumentProperties = exports.Document = exports.DelimiterElement = exports.CubicBezierToPathSegment = exports.ColorScheme = exports.ColorReplaceEffect = exports.ColorChangeEffect = exports.ClosePathSegment = exports.BoxElement = exports.BorderBoxElement = exports.BlurImageEffect = exports.BlockElement = exports.BiLevelEffect = exports.Base64InputFile = exports.BarElement = exports.ArrayElement = exports.ArcToPathSegment = exports.AlphaReplaceEffect = exports.AlphaModulateFixedEffect = exports.AlphaModulateEffect = void 0;
|
|
29
|
+
exports.SwfExportOptions = exports.SvgExportOptions = exports.SuperscriptElement = exports.SubscriptElement = exports.SplitDocumentResult = exports.SolidFill = exports.Slides = exports.SlideProperties = exports.SlideModernComment = exports.SlideComments = exports.SlideComment = exports.SlideBackground = exports.SlideAnimation = exports.Slide = exports.Shapes = exports.ShapeBase = exports.Sections = exports.Section = exports.ScatterChartDataPoint = exports.SaveSlide = exports.SaveShape = exports.Save = exports.RightSubSuperscriptElement = exports.ResponseOutputFile = exports.ResetSlide = exports.RequestInputFile = exports.ReplaceText = exports.ReorderSlide = exports.RemoveSlide = exports.RemoveShape = exports.RadicalElement = exports.QuadraticBezierToPathSegment = exports.ProtectionProperties = exports.PptxExportOptions = exports.Portions = exports.Portion = exports.Placeholders = exports.Placeholder = exports.PictureFill = exports.PdfExportOptions = exports.PatternFill = exports.PathOutputFile = exports.PathInputFile = exports.Paragraphs = exports.Paragraph = exports.OneValueSeries = exports.OneValueChartDataPoint = exports.NotesSlideHeaderFooter = exports.NotesSlide = exports.NoFill = void 0;
|
|
30
|
+
exports.SummaryZoomSection = exports.ZoomFrame = exports.VideoFrame = exports.SmartArtShape = exports.Shape = exports.SectionZoomFrame = exports.PictureFrame = exports.Connector = exports.AudioFrame = exports.ZoomObject = exports.TiffExportOptions = exports.Table = exports.SummaryZoomFrame = exports.SmartArt = exports.SlideReplaceResult = exports.ScatterSeries = exports.OleObjectFrame = exports.ImageExportOptions = exports.GroupShape = exports.GraphicalObject = exports.GifExportOptions = exports.GeometryShape = exports.DocumentReplaceResult = exports.Chart = exports.BubbleSeries = exports.BubbleChartDataPoint = exports.XpsExportOptions = exports.XamlExportOptions = exports.XYSeries = exports.ViewProperties = exports.VideoExportOptions = exports.UpdateShape = exports.UpdateBackground = exports.TintEffect = exports.Theme = exports.TextItems = exports.TextElement = void 0;
|
|
31
31
|
/**
|
|
32
32
|
* A set of properties specifying which access permissions should be granted when the document is opened with user access.
|
|
33
33
|
*/
|
|
@@ -757,6 +757,12 @@ exports.FillOverlayEffect = FillOverlayEffect;
|
|
|
757
757
|
BlendEnum[BlendEnum["Screen"] = 'Screen'] = "Screen";
|
|
758
758
|
})(BlendEnum = FillOverlayEffect.BlendEnum || (FillOverlayEffect.BlendEnum = {}));
|
|
759
759
|
})(FillOverlayEffect = exports.FillOverlayEffect || (exports.FillOverlayEffect = {}));
|
|
760
|
+
/**
|
|
761
|
+
* Represents font info.
|
|
762
|
+
*/
|
|
763
|
+
class FontData {
|
|
764
|
+
}
|
|
765
|
+
exports.FontData = FontData;
|
|
760
766
|
/**
|
|
761
767
|
* Represents font fallback rule.
|
|
762
768
|
*/
|
|
@@ -769,6 +775,12 @@ exports.FontFallbackRule = FontFallbackRule;
|
|
|
769
775
|
class FontSet {
|
|
770
776
|
}
|
|
771
777
|
exports.FontSet = FontSet;
|
|
778
|
+
/**
|
|
779
|
+
* List of fonts data
|
|
780
|
+
*/
|
|
781
|
+
class FontsData {
|
|
782
|
+
}
|
|
783
|
+
exports.FontsData = FontsData;
|
|
772
784
|
/**
|
|
773
785
|
* Represents GeometryPath of the shape
|
|
774
786
|
*/
|