asposeslidescloud 24.5.0 → 24.7.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 +17 -0
- package/api.d.ts +11 -32
- package/api.js +24 -116
- package/internal/requestHelper.js +12 -3
- package/model.d.ts +74 -16
- package/model.js +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,23 @@ 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 24.7
|
|
31
|
+
|
|
32
|
+
* Added **TemplatesPath** property to **Html5ExportOptions** class. It enables using custom templates in conversion to Html5 format.
|
|
33
|
+
* Added **GetHtml5Templates** method to retrieve the list of default Html5 templates.
|
|
34
|
+
* Added **Xml** to the list of available export formats.
|
|
35
|
+
* Added **wholeWordsOnly** parameter to **ReplacePresentationText** and **ReplacePresentationTextOnline** methods.
|
|
36
|
+
* Added **GradientStyle** property to **ExportOptions** class.
|
|
37
|
+
* Added **ResterizeUnsupportedFontStyles** property to **PdfExportOptions** class.
|
|
38
|
+
* Added **Zip64Mode** property to **PptxExportOptions** class.
|
|
39
|
+
* Added **Transparency** property to **Table** and **TableCell** class.
|
|
40
|
+
* Removed obsolete **DownloadPortionsAsMathML**, **SavePortionsAsMathML** methods. Use **DownloadMathPortion** and **SaveMathPortion** methods to convert portions to math formats.
|
|
41
|
+
|
|
42
|
+
## Enhancements in Version 24.6
|
|
43
|
+
|
|
44
|
+
* Added **HideInk** and **InterpretMaskOpAsOpacity** properties to **PdfExportOptions** class.
|
|
45
|
+
* Removed **Enqueued** from the list of allowed values for **Operation.Status** property.
|
|
46
|
+
|
|
30
47
|
## Enhancements in Version 24.5
|
|
31
48
|
|
|
32
49
|
* Added **options** parameter to **ImportFromPdf** method. You can specify **options.DetectTables** property to control import behavior.
|
package/api.d.ts
CHANGED
|
@@ -1520,21 +1520,6 @@ export declare class SlidesApi {
|
|
|
1520
1520
|
response: http.ServerResponse;
|
|
1521
1521
|
body: Buffer;
|
|
1522
1522
|
}>;
|
|
1523
|
-
/**
|
|
1524
|
-
* Convert Mathematical Text to MathML Format
|
|
1525
|
-
* @param name Document name.
|
|
1526
|
-
* @param slideIndex Slide index.
|
|
1527
|
-
* @param shapeIndex Shape index.
|
|
1528
|
-
* @param paragraphIndex Paragraph index.
|
|
1529
|
-
* @param portionIndex Portion index.
|
|
1530
|
-
* @param password Document password.
|
|
1531
|
-
* @param folder Document folder.
|
|
1532
|
-
* @param storage Document storage.
|
|
1533
|
-
*/
|
|
1534
|
-
downloadPortionAsMathMl(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
1535
|
-
response: http.ServerResponse;
|
|
1536
|
-
body: Buffer;
|
|
1537
|
-
}>;
|
|
1538
1523
|
/**
|
|
1539
1524
|
* Save a presentation to a specified format.
|
|
1540
1525
|
* @param name Document name.
|
|
@@ -1809,6 +1794,13 @@ export declare class SlidesApi {
|
|
|
1809
1794
|
response: http.ServerResponse;
|
|
1810
1795
|
body: model.FormatScheme;
|
|
1811
1796
|
}>;
|
|
1797
|
+
/**
|
|
1798
|
+
* Get default templates for HTML5 export.
|
|
1799
|
+
*/
|
|
1800
|
+
getHtml5Templates(): Promise<{
|
|
1801
|
+
response: http.ServerResponse;
|
|
1802
|
+
body: Buffer;
|
|
1803
|
+
}>;
|
|
1812
1804
|
/**
|
|
1813
1805
|
* Read presentation layoutSlide info.
|
|
1814
1806
|
* @param name Document name.
|
|
@@ -2737,11 +2729,12 @@ export declare class SlidesApi {
|
|
|
2737
2729
|
* @param oldValue Text value to be replaced.
|
|
2738
2730
|
* @param newValue Text value to replace with.
|
|
2739
2731
|
* @param ignoreCase True if character case must be ignored.
|
|
2732
|
+
* @param wholeWordsOnly True to replace whole words only.
|
|
2740
2733
|
* @param password Document password.
|
|
2741
2734
|
* @param folder Document folder.
|
|
2742
2735
|
* @param storage Document storage.
|
|
2743
2736
|
*/
|
|
2744
|
-
replacePresentationText(name: string, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2737
|
+
replacePresentationText(name: string, oldValue: string, newValue: string, ignoreCase?: boolean, wholeWordsOnly?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
2745
2738
|
response: http.ServerResponse;
|
|
2746
2739
|
body: model.DocumentReplaceResult;
|
|
2747
2740
|
}>;
|
|
@@ -2751,9 +2744,10 @@ export declare class SlidesApi {
|
|
|
2751
2744
|
* @param oldValue Text value to be replaced.
|
|
2752
2745
|
* @param newValue Text value to replace with.
|
|
2753
2746
|
* @param ignoreCase True if character case must be ignored.
|
|
2747
|
+
* @param wholeWordsOnly True to replace whole words only.
|
|
2754
2748
|
* @param password Document password.
|
|
2755
2749
|
*/
|
|
2756
|
-
replacePresentationTextOnline(document: Readable, oldValue: string, newValue: string, ignoreCase?: boolean, password?: string): Promise<{
|
|
2750
|
+
replacePresentationTextOnline(document: Readable, oldValue: string, newValue: string, ignoreCase?: boolean, wholeWordsOnly?: boolean, password?: string): Promise<{
|
|
2757
2751
|
response: http.ServerResponse;
|
|
2758
2752
|
body: Buffer;
|
|
2759
2753
|
}>;
|
|
@@ -2829,21 +2823,6 @@ export declare class SlidesApi {
|
|
|
2829
2823
|
saveMathPortion(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, format: model.MathFormat, outPath: string, password?: string, folder?: string, storage?: string): Promise<{
|
|
2830
2824
|
response: http.ServerResponse;
|
|
2831
2825
|
}>;
|
|
2832
|
-
/**
|
|
2833
|
-
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
2834
|
-
* @param name Document name.
|
|
2835
|
-
* @param slideIndex Slide index.
|
|
2836
|
-
* @param shapeIndex Shape index.
|
|
2837
|
-
* @param paragraphIndex Paragraph index.
|
|
2838
|
-
* @param portionIndex Portion index.
|
|
2839
|
-
* @param outPath Path to save result.
|
|
2840
|
-
* @param password Document password.
|
|
2841
|
-
* @param folder Presentation folder.
|
|
2842
|
-
* @param storage Presentation storage.
|
|
2843
|
-
*/
|
|
2844
|
-
savePortionAsMathMl(name: string, slideIndex: number, shapeIndex: number, paragraphIndex: number, portionIndex: number, outPath: string, password?: string, folder?: string, storage?: string): Promise<{
|
|
2845
|
-
response: http.ServerResponse;
|
|
2846
|
-
}>;
|
|
2847
2826
|
/**
|
|
2848
2827
|
* Save a presentation to a specified format.
|
|
2849
2828
|
* @param name Document name.
|
package/api.js
CHANGED
|
@@ -5016,61 +5016,6 @@ class SlidesApi {
|
|
|
5016
5016
|
return Promise.resolve({ body: result, response });
|
|
5017
5017
|
});
|
|
5018
5018
|
}
|
|
5019
|
-
/**
|
|
5020
|
-
* Convert Mathematical Text to MathML Format
|
|
5021
|
-
* @param name Document name.
|
|
5022
|
-
* @param slideIndex Slide index.
|
|
5023
|
-
* @param shapeIndex Shape index.
|
|
5024
|
-
* @param paragraphIndex Paragraph index.
|
|
5025
|
-
* @param portionIndex Portion index.
|
|
5026
|
-
* @param password Document password.
|
|
5027
|
-
* @param folder Document folder.
|
|
5028
|
-
* @param storage Document storage.
|
|
5029
|
-
*/
|
|
5030
|
-
downloadPortionAsMathMl(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, password = null, folder = null, storage = null) {
|
|
5031
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5032
|
-
// verify required parameter 'name' is not null or undefined
|
|
5033
|
-
if (name === null || name === undefined) {
|
|
5034
|
-
throw new Error('The required parameter "name" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5035
|
-
}
|
|
5036
|
-
// verify required parameter 'slideIndex' is not null or undefined
|
|
5037
|
-
if (slideIndex === null || slideIndex === undefined) {
|
|
5038
|
-
throw new Error('The required parameter "slideIndex" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5039
|
-
}
|
|
5040
|
-
// verify required parameter 'shapeIndex' is not null or undefined
|
|
5041
|
-
if (shapeIndex === null || shapeIndex === undefined) {
|
|
5042
|
-
throw new Error('The required parameter "shapeIndex" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5043
|
-
}
|
|
5044
|
-
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
5045
|
-
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
5046
|
-
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5047
|
-
}
|
|
5048
|
-
// verify required parameter 'portionIndex' is not null or undefined
|
|
5049
|
-
if (portionIndex === null || portionIndex === undefined) {
|
|
5050
|
-
throw new Error('The required parameter "portionIndex" was null or undefined when calling downloadPortionAsMathMl.');
|
|
5051
|
-
}
|
|
5052
|
-
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml";
|
|
5053
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
5054
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
5055
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
5056
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
5057
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
5058
|
-
const queryParameters = {};
|
|
5059
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
5060
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
5061
|
-
const requestOptions = {
|
|
5062
|
-
method: "POST",
|
|
5063
|
-
headers: {},
|
|
5064
|
-
url: localVarPath,
|
|
5065
|
-
responseType: 'arraybuffer',
|
|
5066
|
-
params: queryParameters
|
|
5067
|
-
};
|
|
5068
|
-
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
5069
|
-
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
5070
|
-
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
5071
|
-
return Promise.resolve({ body: result, response });
|
|
5072
|
-
});
|
|
5073
|
-
}
|
|
5074
5019
|
/**
|
|
5075
5020
|
* Save a presentation to a specified format.
|
|
5076
5021
|
* @param name Document name.
|
|
@@ -5920,6 +5865,24 @@ class SlidesApi {
|
|
|
5920
5865
|
return Promise.resolve({ body: result, response });
|
|
5921
5866
|
});
|
|
5922
5867
|
}
|
|
5868
|
+
/**
|
|
5869
|
+
* Get default templates for HTML5 export.
|
|
5870
|
+
*/
|
|
5871
|
+
getHtml5Templates() {
|
|
5872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5873
|
+
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/html5Templates";
|
|
5874
|
+
const queryParameters = {};
|
|
5875
|
+
const requestOptions = {
|
|
5876
|
+
method: "GET",
|
|
5877
|
+
url: localVarPath,
|
|
5878
|
+
responseType: 'arraybuffer',
|
|
5879
|
+
params: queryParameters
|
|
5880
|
+
};
|
|
5881
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
5882
|
+
const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
|
|
5883
|
+
return Promise.resolve({ body: result, response });
|
|
5884
|
+
});
|
|
5885
|
+
}
|
|
5923
5886
|
/**
|
|
5924
5887
|
* Read presentation layoutSlide info.
|
|
5925
5888
|
* @param name Document name.
|
|
@@ -8887,11 +8850,12 @@ class SlidesApi {
|
|
|
8887
8850
|
* @param oldValue Text value to be replaced.
|
|
8888
8851
|
* @param newValue Text value to replace with.
|
|
8889
8852
|
* @param ignoreCase True if character case must be ignored.
|
|
8853
|
+
* @param wholeWordsOnly True to replace whole words only.
|
|
8890
8854
|
* @param password Document password.
|
|
8891
8855
|
* @param folder Document folder.
|
|
8892
8856
|
* @param storage Document storage.
|
|
8893
8857
|
*/
|
|
8894
|
-
replacePresentationText(name, oldValue, newValue, ignoreCase = null, password = null, folder = null, storage = null) {
|
|
8858
|
+
replacePresentationText(name, oldValue, newValue, ignoreCase = null, wholeWordsOnly = null, password = null, folder = null, storage = null) {
|
|
8895
8859
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8896
8860
|
// verify required parameter 'name' is not null or undefined
|
|
8897
8861
|
if (name === null || name === undefined) {
|
|
@@ -8911,6 +8875,7 @@ class SlidesApi {
|
|
|
8911
8875
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "oldValue", oldValue);
|
|
8912
8876
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
8913
8877
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignoreCase", ignoreCase);
|
|
8878
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "wholeWordsOnly", wholeWordsOnly);
|
|
8914
8879
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
8915
8880
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
8916
8881
|
const requestOptions = {
|
|
@@ -8931,9 +8896,10 @@ class SlidesApi {
|
|
|
8931
8896
|
* @param oldValue Text value to be replaced.
|
|
8932
8897
|
* @param newValue Text value to replace with.
|
|
8933
8898
|
* @param ignoreCase True if character case must be ignored.
|
|
8899
|
+
* @param wholeWordsOnly True to replace whole words only.
|
|
8934
8900
|
* @param password Document password.
|
|
8935
8901
|
*/
|
|
8936
|
-
replacePresentationTextOnline(document, oldValue, newValue, ignoreCase = null, password = null) {
|
|
8902
|
+
replacePresentationTextOnline(document, oldValue, newValue, ignoreCase = null, wholeWordsOnly = null, password = null) {
|
|
8937
8903
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8938
8904
|
// verify required parameter 'document' is not null or undefined
|
|
8939
8905
|
if (document === null || document === undefined) {
|
|
@@ -8952,6 +8918,7 @@ class SlidesApi {
|
|
|
8952
8918
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "oldValue", oldValue);
|
|
8953
8919
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "newValue", newValue);
|
|
8954
8920
|
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "ignoreCase", ignoreCase);
|
|
8921
|
+
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "wholeWordsOnly", wholeWordsOnly);
|
|
8955
8922
|
const requestOptions = {
|
|
8956
8923
|
method: "POST",
|
|
8957
8924
|
headers: {},
|
|
@@ -9233,65 +9200,6 @@ class SlidesApi {
|
|
|
9233
9200
|
return Promise.resolve({ response });
|
|
9234
9201
|
});
|
|
9235
9202
|
}
|
|
9236
|
-
/**
|
|
9237
|
-
* Convert Mathematical Text to MathML Format and saves result to the storage
|
|
9238
|
-
* @param name Document name.
|
|
9239
|
-
* @param slideIndex Slide index.
|
|
9240
|
-
* @param shapeIndex Shape index.
|
|
9241
|
-
* @param paragraphIndex Paragraph index.
|
|
9242
|
-
* @param portionIndex Portion index.
|
|
9243
|
-
* @param outPath Path to save result.
|
|
9244
|
-
* @param password Document password.
|
|
9245
|
-
* @param folder Presentation folder.
|
|
9246
|
-
* @param storage Presentation storage.
|
|
9247
|
-
*/
|
|
9248
|
-
savePortionAsMathMl(name, slideIndex, shapeIndex, paragraphIndex, portionIndex, outPath, password = null, folder = null, storage = null) {
|
|
9249
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
9250
|
-
// verify required parameter 'name' is not null or undefined
|
|
9251
|
-
if (name === null || name === undefined) {
|
|
9252
|
-
throw new Error('The required parameter "name" was null or undefined when calling savePortionAsMathMl.');
|
|
9253
|
-
}
|
|
9254
|
-
// verify required parameter 'slideIndex' is not null or undefined
|
|
9255
|
-
if (slideIndex === null || slideIndex === undefined) {
|
|
9256
|
-
throw new Error('The required parameter "slideIndex" was null or undefined when calling savePortionAsMathMl.');
|
|
9257
|
-
}
|
|
9258
|
-
// verify required parameter 'shapeIndex' is not null or undefined
|
|
9259
|
-
if (shapeIndex === null || shapeIndex === undefined) {
|
|
9260
|
-
throw new Error('The required parameter "shapeIndex" was null or undefined when calling savePortionAsMathMl.');
|
|
9261
|
-
}
|
|
9262
|
-
// verify required parameter 'paragraphIndex' is not null or undefined
|
|
9263
|
-
if (paragraphIndex === null || paragraphIndex === undefined) {
|
|
9264
|
-
throw new Error('The required parameter "paragraphIndex" was null or undefined when calling savePortionAsMathMl.');
|
|
9265
|
-
}
|
|
9266
|
-
// verify required parameter 'portionIndex' is not null or undefined
|
|
9267
|
-
if (portionIndex === null || portionIndex === undefined) {
|
|
9268
|
-
throw new Error('The required parameter "portionIndex" was null or undefined when calling savePortionAsMathMl.');
|
|
9269
|
-
}
|
|
9270
|
-
// verify required parameter 'outPath' is not null or undefined
|
|
9271
|
-
if (outPath === null || outPath === undefined) {
|
|
9272
|
-
throw new Error('The required parameter "outPath" was null or undefined when calling savePortionAsMathMl.');
|
|
9273
|
-
}
|
|
9274
|
-
let localVarPath = this.configuration.getApiBaseUrl() + "/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml";
|
|
9275
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "name", objectSerializer_1.ObjectSerializer.toString(name));
|
|
9276
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "slideIndex", objectSerializer_1.ObjectSerializer.toString(slideIndex));
|
|
9277
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "shapeIndex", objectSerializer_1.ObjectSerializer.toString(shapeIndex));
|
|
9278
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "paragraphIndex", objectSerializer_1.ObjectSerializer.toString(paragraphIndex));
|
|
9279
|
-
localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "portionIndex", objectSerializer_1.ObjectSerializer.toString(portionIndex));
|
|
9280
|
-
const queryParameters = {};
|
|
9281
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "outPath", outPath);
|
|
9282
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", folder);
|
|
9283
|
-
localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", storage);
|
|
9284
|
-
const requestOptions = {
|
|
9285
|
-
method: "PUT",
|
|
9286
|
-
headers: {},
|
|
9287
|
-
url: localVarPath,
|
|
9288
|
-
params: queryParameters
|
|
9289
|
-
};
|
|
9290
|
-
(0, requestHelper_1.addHeaderParameter)(requestOptions.headers, "password", password);
|
|
9291
|
-
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
|
|
9292
|
-
return Promise.resolve({ response });
|
|
9293
|
-
});
|
|
9294
|
-
}
|
|
9295
9203
|
/**
|
|
9296
9204
|
* Save a presentation to a specified format.
|
|
9297
9205
|
* @param name Document name.
|
|
@@ -38,14 +38,23 @@ const https = require('https');
|
|
|
38
38
|
axios_1.default.interceptors.request.use(request => {
|
|
39
39
|
if (request.debug) {
|
|
40
40
|
console.log('>> Request');
|
|
41
|
-
console.log(request);
|
|
41
|
+
console.log(request.method + ' ' + request.url);
|
|
42
|
+
console.log('Headers\n' + request.headers);
|
|
43
|
+
console.log('Data: ' + JSON.stringify(request.data));
|
|
42
44
|
}
|
|
43
45
|
return request;
|
|
44
46
|
});
|
|
45
47
|
axios_1.default.interceptors.response.use(response => {
|
|
46
48
|
if (response.config.debug) {
|
|
47
49
|
console.log('<< Response');
|
|
48
|
-
console.log(response);
|
|
50
|
+
console.log('Status: ' + response.status);
|
|
51
|
+
console.log('Headers\n' + response.headers);
|
|
52
|
+
if (Buffer.isBuffer(response.data)) {
|
|
53
|
+
console.log('Data: binary (' + Buffer.byteLength((response.data)) + ' bytes)');
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
console.log('Data: ' + JSON.stringify(response.data));
|
|
57
|
+
}
|
|
49
58
|
}
|
|
50
59
|
return response;
|
|
51
60
|
});
|
|
@@ -160,7 +169,7 @@ function invokeApiMethodInternal(requestOptions, configuration, notApplyAuthToRe
|
|
|
160
169
|
if (!requestOptions.headers) {
|
|
161
170
|
requestOptions.headers = {};
|
|
162
171
|
}
|
|
163
|
-
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.
|
|
172
|
+
requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.7.0";
|
|
164
173
|
if (configuration.timeout) {
|
|
165
174
|
requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
|
|
166
175
|
}
|
package/model.d.ts
CHANGED
|
@@ -2328,7 +2328,7 @@ export declare class DocumentProperty extends ResourceBase {
|
|
|
2328
2328
|
/**
|
|
2329
2329
|
* True for builtin property.
|
|
2330
2330
|
*/
|
|
2331
|
-
builtIn
|
|
2331
|
+
builtIn?: boolean;
|
|
2332
2332
|
}
|
|
2333
2333
|
/**
|
|
2334
2334
|
* Represents document replace result DTO.
|
|
@@ -2781,7 +2781,8 @@ export declare enum ExportFormat {
|
|
|
2781
2781
|
'Fodp',
|
|
2782
2782
|
'Xaml',
|
|
2783
2783
|
'Mpeg4',
|
|
2784
|
-
'Md'
|
|
2784
|
+
'Md',
|
|
2785
|
+
'Xml'
|
|
2785
2786
|
}
|
|
2786
2787
|
/**
|
|
2787
2788
|
* Represents export options for whole presentation.
|
|
@@ -2791,6 +2792,10 @@ export declare class ExportOptions {
|
|
|
2791
2792
|
* Default regular font for rendering the presentation.
|
|
2792
2793
|
*/
|
|
2793
2794
|
defaultRegularFont?: string;
|
|
2795
|
+
/**
|
|
2796
|
+
* Default regular font for rendering the presentation.
|
|
2797
|
+
*/
|
|
2798
|
+
gradientStyle?: ExportOptions.GradientStyleEnum;
|
|
2794
2799
|
/**
|
|
2795
2800
|
* Gets of sets list of font fallback rules.
|
|
2796
2801
|
*/
|
|
@@ -2801,6 +2806,12 @@ export declare class ExportOptions {
|
|
|
2801
2806
|
fontSubstRules?: Array<FontSubstRule>;
|
|
2802
2807
|
format?: string;
|
|
2803
2808
|
}
|
|
2809
|
+
export declare namespace ExportOptions {
|
|
2810
|
+
enum GradientStyleEnum {
|
|
2811
|
+
Default,
|
|
2812
|
+
PowerPointUI
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2804
2815
|
/**
|
|
2805
2816
|
* File or folder information
|
|
2806
2817
|
*/
|
|
@@ -3137,6 +3148,8 @@ export declare class ImageExportOptionsBase extends ExportOptions {
|
|
|
3137
3148
|
*/
|
|
3138
3149
|
width?: number;
|
|
3139
3150
|
}
|
|
3151
|
+
export declare namespace ImageExportOptionsBase {
|
|
3152
|
+
}
|
|
3140
3153
|
/**
|
|
3141
3154
|
* Provides options that control how a presentation is saved in Gif format.
|
|
3142
3155
|
*/
|
|
@@ -3155,6 +3168,8 @@ export declare class GifExportOptions extends ImageExportOptionsBase {
|
|
|
3155
3168
|
*/
|
|
3156
3169
|
defaultDelay?: number;
|
|
3157
3170
|
}
|
|
3171
|
+
export declare namespace GifExportOptions {
|
|
3172
|
+
}
|
|
3158
3173
|
/**
|
|
3159
3174
|
* Represents glow effect
|
|
3160
3175
|
*/
|
|
@@ -3176,11 +3191,11 @@ export declare class GradientFill extends FillFormat {
|
|
|
3176
3191
|
/**
|
|
3177
3192
|
* Gradient style.
|
|
3178
3193
|
*/
|
|
3179
|
-
direction
|
|
3194
|
+
direction?: GradientFill.DirectionEnum;
|
|
3180
3195
|
/**
|
|
3181
3196
|
* Gradient shape.
|
|
3182
3197
|
*/
|
|
3183
|
-
shape
|
|
3198
|
+
shape?: GradientFill.ShapeEnum;
|
|
3184
3199
|
/**
|
|
3185
3200
|
* Gradient stops.
|
|
3186
3201
|
*/
|
|
@@ -3188,15 +3203,15 @@ export declare class GradientFill extends FillFormat {
|
|
|
3188
3203
|
/**
|
|
3189
3204
|
* Gradient angle.
|
|
3190
3205
|
*/
|
|
3191
|
-
linearAngle
|
|
3206
|
+
linearAngle?: number;
|
|
3192
3207
|
/**
|
|
3193
3208
|
* True if the gradient is scaled.
|
|
3194
3209
|
*/
|
|
3195
|
-
isScaled
|
|
3210
|
+
isScaled?: boolean;
|
|
3196
3211
|
/**
|
|
3197
3212
|
* Gradient flipping mode.
|
|
3198
3213
|
*/
|
|
3199
|
-
tileFlip
|
|
3214
|
+
tileFlip?: GradientFill.TileFlipEnum;
|
|
3200
3215
|
}
|
|
3201
3216
|
export declare namespace GradientFill {
|
|
3202
3217
|
enum DirectionEnum {
|
|
@@ -3411,6 +3426,12 @@ export declare class Html5ExportOptions extends ExportOptions {
|
|
|
3411
3426
|
* Slides layouting options
|
|
3412
3427
|
*/
|
|
3413
3428
|
notesCommentsLayouting?: NotesCommentsLayoutingOptions;
|
|
3429
|
+
/**
|
|
3430
|
+
* Path to custom templates
|
|
3431
|
+
*/
|
|
3432
|
+
templatesPath?: string;
|
|
3433
|
+
}
|
|
3434
|
+
export declare namespace Html5ExportOptions {
|
|
3414
3435
|
}
|
|
3415
3436
|
/**
|
|
3416
3437
|
* Provides options that control how a presentation is saved in Html format.
|
|
@@ -3583,6 +3604,8 @@ export declare class ImageExportOptions extends ImageExportOptionsBase {
|
|
|
3583
3604
|
*/
|
|
3584
3605
|
slidesLayoutOptions?: SlidesLayoutOptions;
|
|
3585
3606
|
}
|
|
3607
|
+
export declare namespace ImageExportOptions {
|
|
3608
|
+
}
|
|
3586
3609
|
/**
|
|
3587
3610
|
* List of images.
|
|
3588
3611
|
*/
|
|
@@ -4591,7 +4614,6 @@ export declare class Operation {
|
|
|
4591
4614
|
status: Operation.StatusEnum;
|
|
4592
4615
|
progress?: OperationProgress;
|
|
4593
4616
|
created?: Date;
|
|
4594
|
-
enqueued?: Date;
|
|
4595
4617
|
started?: Date;
|
|
4596
4618
|
failed?: Date;
|
|
4597
4619
|
canceled?: Date;
|
|
@@ -5223,6 +5245,18 @@ export declare class PdfExportOptions extends ExportOptions {
|
|
|
5223
5245
|
* Access permissions that should be granted when the document is opened with user access. Default is AccessPermissions.None.
|
|
5224
5246
|
*/
|
|
5225
5247
|
accessPermissions?: AccessPermissions;
|
|
5248
|
+
/**
|
|
5249
|
+
* True to hide Ink elements in exported document.
|
|
5250
|
+
*/
|
|
5251
|
+
hideInk?: boolean;
|
|
5252
|
+
/**
|
|
5253
|
+
* True to use ROP operation or Opacity for rendering brush.
|
|
5254
|
+
*/
|
|
5255
|
+
interpretMaskOpAsOpacity?: boolean;
|
|
5256
|
+
/**
|
|
5257
|
+
* True if text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts.
|
|
5258
|
+
*/
|
|
5259
|
+
rasterizeUnsupportedFontStyles?: boolean;
|
|
5226
5260
|
}
|
|
5227
5261
|
export declare namespace PdfExportOptions {
|
|
5228
5262
|
enum TextCompressionEnum {
|
|
@@ -5844,9 +5878,13 @@ export declare class Portions extends ResourceBase {
|
|
|
5844
5878
|
export declare class PptxExportOptions extends ExportOptions {
|
|
5845
5879
|
constructor();
|
|
5846
5880
|
/**
|
|
5847
|
-
* The conformance class to which the PresentationML document conforms.
|
|
5881
|
+
* The conformance class to which the PresentationML document conforms.
|
|
5848
5882
|
*/
|
|
5849
5883
|
conformance?: PptxExportOptions.ConformanceEnum;
|
|
5884
|
+
/**
|
|
5885
|
+
* Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.
|
|
5886
|
+
*/
|
|
5887
|
+
zip64Mode?: PptxExportOptions.Zip64ModeEnum;
|
|
5850
5888
|
}
|
|
5851
5889
|
export declare namespace PptxExportOptions {
|
|
5852
5890
|
enum ConformanceEnum {
|
|
@@ -5854,6 +5892,11 @@ export declare namespace PptxExportOptions {
|
|
|
5854
5892
|
Iso29500Transitional,
|
|
5855
5893
|
Iso29500Strict
|
|
5856
5894
|
}
|
|
5895
|
+
enum Zip64ModeEnum {
|
|
5896
|
+
Never,
|
|
5897
|
+
IfNecessary,
|
|
5898
|
+
Always
|
|
5899
|
+
}
|
|
5857
5900
|
}
|
|
5858
5901
|
/**
|
|
5859
5902
|
* Represents presentation to merge
|
|
@@ -5965,11 +6008,11 @@ export declare class ProtectionProperties extends ResourceBase {
|
|
|
5965
6008
|
/**
|
|
5966
6009
|
* Returns true if the presentation protected for editing.
|
|
5967
6010
|
*/
|
|
5968
|
-
isWriteProtected
|
|
6011
|
+
isWriteProtected?: boolean;
|
|
5969
6012
|
/**
|
|
5970
6013
|
* Returns true if the presentation protected for reading.
|
|
5971
6014
|
*/
|
|
5972
|
-
isEncrypted
|
|
6015
|
+
isEncrypted?: boolean;
|
|
5973
6016
|
}
|
|
5974
6017
|
/**
|
|
5975
6018
|
* Quadratic Bezier curve segment of the geometry path
|
|
@@ -6284,7 +6327,8 @@ export declare namespace Save {
|
|
|
6284
6327
|
Fodp,
|
|
6285
6328
|
Xaml,
|
|
6286
6329
|
Mpeg4,
|
|
6287
|
-
Md
|
|
6330
|
+
Md,
|
|
6331
|
+
Xml
|
|
6288
6332
|
}
|
|
6289
6333
|
}
|
|
6290
6334
|
/**
|
|
@@ -6374,7 +6418,8 @@ export declare namespace SaveSlide {
|
|
|
6374
6418
|
Fodp,
|
|
6375
6419
|
Xaml,
|
|
6376
6420
|
Html5,
|
|
6377
|
-
Md
|
|
6421
|
+
Md,
|
|
6422
|
+
Xml
|
|
6378
6423
|
}
|
|
6379
6424
|
}
|
|
6380
6425
|
/**
|
|
@@ -6675,7 +6720,7 @@ export declare class Slide extends ResourceBase {
|
|
|
6675
6720
|
/**
|
|
6676
6721
|
* Specifies if shapes of the master slide should be shown on the slide. True by default.
|
|
6677
6722
|
*/
|
|
6678
|
-
showMasterShapes
|
|
6723
|
+
showMasterShapes?: boolean;
|
|
6679
6724
|
/**
|
|
6680
6725
|
* Specifies if shapes of the master slide should be shown on the slide. True by default.
|
|
6681
6726
|
*/
|
|
@@ -6831,7 +6876,8 @@ export declare enum SlideExportFormat {
|
|
|
6831
6876
|
'Fodp',
|
|
6832
6877
|
'Xaml',
|
|
6833
6878
|
'Html5',
|
|
6834
|
-
'Md'
|
|
6879
|
+
'Md',
|
|
6880
|
+
'Xml'
|
|
6835
6881
|
}
|
|
6836
6882
|
/**
|
|
6837
6883
|
* Represents modern comment of slide
|
|
@@ -7817,6 +7863,10 @@ export declare class Table extends ShapeBase {
|
|
|
7817
7863
|
* Determines whether the even columns has to be drawn with a different formatting.
|
|
7818
7864
|
*/
|
|
7819
7865
|
verticalBanding?: boolean;
|
|
7866
|
+
/**
|
|
7867
|
+
* Transparency.
|
|
7868
|
+
*/
|
|
7869
|
+
transparency?: number;
|
|
7820
7870
|
}
|
|
7821
7871
|
export declare namespace Table {
|
|
7822
7872
|
enum StyleEnum {
|
|
@@ -7930,6 +7980,10 @@ export declare class TableCell {
|
|
|
7930
7980
|
* The bottom margin of the cell.
|
|
7931
7981
|
*/
|
|
7932
7982
|
marginBottom?: number;
|
|
7983
|
+
/**
|
|
7984
|
+
* Transparency.
|
|
7985
|
+
*/
|
|
7986
|
+
transparency?: number;
|
|
7933
7987
|
/**
|
|
7934
7988
|
* Text anchor type.
|
|
7935
7989
|
*/
|
|
@@ -8026,7 +8080,7 @@ export declare class TableCellMergeOptions {
|
|
|
8026
8080
|
/**
|
|
8027
8081
|
* Allow splitting
|
|
8028
8082
|
*/
|
|
8029
|
-
allowSplitting
|
|
8083
|
+
allowSplitting?: boolean;
|
|
8030
8084
|
}
|
|
8031
8085
|
/**
|
|
8032
8086
|
* Table cell split type
|
|
@@ -8737,6 +8791,8 @@ export declare class XamlExportOptions extends ExportOptions {
|
|
|
8737
8791
|
*/
|
|
8738
8792
|
exportHiddenSlides?: boolean;
|
|
8739
8793
|
}
|
|
8794
|
+
export declare namespace XamlExportOptions {
|
|
8795
|
+
}
|
|
8740
8796
|
/**
|
|
8741
8797
|
* Provides options that control how a presentation is saved in XPS format.
|
|
8742
8798
|
*/
|
|
@@ -8755,6 +8811,8 @@ export declare class XpsExportOptions extends ExportOptions {
|
|
|
8755
8811
|
*/
|
|
8756
8812
|
drawSlidesFrame?: boolean;
|
|
8757
8813
|
}
|
|
8814
|
+
export declare namespace XpsExportOptions {
|
|
8815
|
+
}
|
|
8758
8816
|
/**
|
|
8759
8817
|
* Zoom frame.
|
|
8760
8818
|
*/
|
package/model.js
CHANGED
|
@@ -1724,6 +1724,7 @@ var ExportFormat;
|
|
|
1724
1724
|
ExportFormat[ExportFormat["Xaml"] = 'Xaml'] = "Xaml";
|
|
1725
1725
|
ExportFormat[ExportFormat["Mpeg4"] = 'Mpeg4'] = "Mpeg4";
|
|
1726
1726
|
ExportFormat[ExportFormat["Md"] = 'Md'] = "Md";
|
|
1727
|
+
ExportFormat[ExportFormat["Xml"] = 'Xml'] = "Xml";
|
|
1727
1728
|
})(ExportFormat = exports.ExportFormat || (exports.ExportFormat = {}));
|
|
1728
1729
|
/**
|
|
1729
1730
|
* Represents export options for whole presentation.
|
|
@@ -1731,6 +1732,13 @@ var ExportFormat;
|
|
|
1731
1732
|
class ExportOptions {
|
|
1732
1733
|
}
|
|
1733
1734
|
exports.ExportOptions = ExportOptions;
|
|
1735
|
+
(function (ExportOptions) {
|
|
1736
|
+
let GradientStyleEnum;
|
|
1737
|
+
(function (GradientStyleEnum) {
|
|
1738
|
+
GradientStyleEnum[GradientStyleEnum["Default"] = 'Default'] = "Default";
|
|
1739
|
+
GradientStyleEnum[GradientStyleEnum["PowerPointUI"] = 'PowerPointUI'] = "PowerPointUI";
|
|
1740
|
+
})(GradientStyleEnum = ExportOptions.GradientStyleEnum || (ExportOptions.GradientStyleEnum = {}));
|
|
1741
|
+
})(ExportOptions = exports.ExportOptions || (exports.ExportOptions = {}));
|
|
1734
1742
|
/**
|
|
1735
1743
|
* File or folder information
|
|
1736
1744
|
*/
|
|
@@ -3473,6 +3481,12 @@ exports.PptxExportOptions = PptxExportOptions;
|
|
|
3473
3481
|
ConformanceEnum[ConformanceEnum["Iso29500Transitional"] = 'Iso29500Transitional'] = "Iso29500Transitional";
|
|
3474
3482
|
ConformanceEnum[ConformanceEnum["Iso29500Strict"] = 'Iso29500Strict'] = "Iso29500Strict";
|
|
3475
3483
|
})(ConformanceEnum = PptxExportOptions.ConformanceEnum || (PptxExportOptions.ConformanceEnum = {}));
|
|
3484
|
+
let Zip64ModeEnum;
|
|
3485
|
+
(function (Zip64ModeEnum) {
|
|
3486
|
+
Zip64ModeEnum[Zip64ModeEnum["Never"] = 'Never'] = "Never";
|
|
3487
|
+
Zip64ModeEnum[Zip64ModeEnum["IfNecessary"] = 'IfNecessary'] = "IfNecessary";
|
|
3488
|
+
Zip64ModeEnum[Zip64ModeEnum["Always"] = 'Always'] = "Always";
|
|
3489
|
+
})(Zip64ModeEnum = PptxExportOptions.Zip64ModeEnum || (PptxExportOptions.Zip64ModeEnum = {}));
|
|
3476
3490
|
})(PptxExportOptions = exports.PptxExportOptions || (exports.PptxExportOptions = {}));
|
|
3477
3491
|
/**
|
|
3478
3492
|
* Represents presentation to merge
|
|
@@ -3700,6 +3714,7 @@ exports.Save = Save;
|
|
|
3700
3714
|
FormatEnum[FormatEnum["Xaml"] = 'Xaml'] = "Xaml";
|
|
3701
3715
|
FormatEnum[FormatEnum["Mpeg4"] = 'Mpeg4'] = "Mpeg4";
|
|
3702
3716
|
FormatEnum[FormatEnum["Md"] = 'Md'] = "Md";
|
|
3717
|
+
FormatEnum[FormatEnum["Xml"] = 'Xml'] = "Xml";
|
|
3703
3718
|
})(FormatEnum = Save.FormatEnum || (Save.FormatEnum = {}));
|
|
3704
3719
|
})(Save = exports.Save || (exports.Save = {}));
|
|
3705
3720
|
/**
|
|
@@ -3760,6 +3775,7 @@ exports.SaveSlide = SaveSlide;
|
|
|
3760
3775
|
FormatEnum[FormatEnum["Xaml"] = 'Xaml'] = "Xaml";
|
|
3761
3776
|
FormatEnum[FormatEnum["Html5"] = 'Html5'] = "Html5";
|
|
3762
3777
|
FormatEnum[FormatEnum["Md"] = 'Md'] = "Md";
|
|
3778
|
+
FormatEnum[FormatEnum["Xml"] = 'Xml'] = "Xml";
|
|
3763
3779
|
})(FormatEnum = SaveSlide.FormatEnum || (SaveSlide.FormatEnum = {}));
|
|
3764
3780
|
})(SaveSlide = exports.SaveSlide || (exports.SaveSlide = {}));
|
|
3765
3781
|
/**
|
|
@@ -4067,6 +4083,7 @@ var SlideExportFormat;
|
|
|
4067
4083
|
SlideExportFormat[SlideExportFormat["Xaml"] = 'Xaml'] = "Xaml";
|
|
4068
4084
|
SlideExportFormat[SlideExportFormat["Html5"] = 'Html5'] = "Html5";
|
|
4069
4085
|
SlideExportFormat[SlideExportFormat["Md"] = 'Md'] = "Md";
|
|
4086
|
+
SlideExportFormat[SlideExportFormat["Xml"] = 'Xml'] = "Xml";
|
|
4070
4087
|
})(SlideExportFormat = exports.SlideExportFormat || (exports.SlideExportFormat = {}));
|
|
4071
4088
|
/**
|
|
4072
4089
|
* Represents modern comment of slide
|