asposeslidescloud 23.3.1 → 23.4.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 +8 -0
- package/api.d.ts +257 -0
- package/api.js +975 -13
- package/internal/requestHelper.js +1 -1
- package/model.d.ts +45 -0
- package/model.js +20 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,14 @@ 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 23.4
|
|
31
|
+
|
|
32
|
+
* Added **CreateTableRow**, **UpdateTableRow** and **DeleteTableRow** methods to add, update and delete table rows.
|
|
33
|
+
* Added **UpdateTableCell** method to update table cells.
|
|
34
|
+
* Added **MergeTableCells** and **SplitTableCell** methods to merge & split table cells.
|
|
35
|
+
* Added methods to get, add, modify and delete paragraphs & portions within table cells: **GetTableCellParagraph**, **GetTableCellParagraphs**, **GetTableCellPortion**, **GetTableCellPortions**, **CreateTableCellParagraph**, **CreateTableCellPortion**, **UpdateTableCellPortion**, **UpdateTableCellParagraph**, **DeleteTableCellParagraph**, **DeleteTableCellPortion**.
|
|
36
|
+
* New **TextFrameFormat** property in **TableCell** class allows to specify text format for table cells.
|
|
37
|
+
|
|
30
38
|
## Enhancements in Version 23.3
|
|
31
39
|
|
|
32
40
|
* Added **options** parameter to **SplitOnline** and **SplitAndSaveOnline** methods. Those options are the same as for other split & convert methods.
|
package/api.d.ts
CHANGED
|
@@ -548,6 +548,54 @@ export declare class SlidesApi {
|
|
|
548
548
|
response: http.ServerResponse;
|
|
549
549
|
body: model.ShapeBase;
|
|
550
550
|
}>;
|
|
551
|
+
/**
|
|
552
|
+
* Creates table cell paragraph.
|
|
553
|
+
* @param name Document name.
|
|
554
|
+
* @param slideIndex Slide index.
|
|
555
|
+
* @param shapeIndex Shape index.
|
|
556
|
+
* @param rowIndex Row index.
|
|
557
|
+
* @param cellIndex Table cell index.
|
|
558
|
+
* @param dto Paragraph DTO.
|
|
559
|
+
* @param password Document password.
|
|
560
|
+
* @param folder Document folder.
|
|
561
|
+
* @param storage Document storage.
|
|
562
|
+
*/
|
|
563
|
+
createTableCellParagraph(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, dto: model.Paragraph, password?: string, folder?: string, storage?: string): Promise<{
|
|
564
|
+
response: http.ServerResponse;
|
|
565
|
+
body: model.Paragraph;
|
|
566
|
+
}>;
|
|
567
|
+
/**
|
|
568
|
+
* Creates table cell portion.
|
|
569
|
+
* @param name Document name.
|
|
570
|
+
* @param slideIndex Slide index.
|
|
571
|
+
* @param shapeIndex Shape index.
|
|
572
|
+
* @param rowIndex Row index.
|
|
573
|
+
* @param cellIndex Table cell index.
|
|
574
|
+
* @param paragraphIndex Paragraph index.
|
|
575
|
+
* @param dto Portion DTO.
|
|
576
|
+
* @param password Document password.
|
|
577
|
+
* @param folder Document folder.
|
|
578
|
+
* @param storage Document storage.
|
|
579
|
+
*/
|
|
580
|
+
createTableCellPortion(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, paragraphIndex: number, dto: model.Portion, password?: string, folder?: string, storage?: string): Promise<{
|
|
581
|
+
response: http.ServerResponse;
|
|
582
|
+
body: model.Portion;
|
|
583
|
+
}>;
|
|
584
|
+
/**
|
|
585
|
+
* Inserts the table row in the specified position. If position is not specified, the row add to the end of the table.
|
|
586
|
+
* @param name Document name.
|
|
587
|
+
* @param slideIndex Slide index.
|
|
588
|
+
* @param shapeIndex Shape index.
|
|
589
|
+
* @param dto Table row data.
|
|
590
|
+
* @param position Position.
|
|
591
|
+
* @param password Document password.
|
|
592
|
+
* @param folder Document folder.
|
|
593
|
+
* @param storage Document storage.
|
|
594
|
+
*/
|
|
595
|
+
createTableRow(name: string, slideIndex: number, shapeIndex: number, dto: model.TableRow, position?: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
596
|
+
response: http.ServerResponse;
|
|
597
|
+
body: model.TableRow;
|
|
598
|
+
}>;
|
|
551
599
|
/**
|
|
552
600
|
* Adds a text watermark to each slide of the presentation. Text watermark can be setup via method arguments or withing Shape DTO for detailed customization. Both options are applicable simultaneously.
|
|
553
601
|
* @param name Document name.
|
|
@@ -1181,6 +1229,54 @@ export declare class SlidesApi {
|
|
|
1181
1229
|
response: http.ServerResponse;
|
|
1182
1230
|
body: model.Shapes;
|
|
1183
1231
|
}>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Delete cell paragraph.
|
|
1234
|
+
* @param name Document name.
|
|
1235
|
+
* @param slideIndex Slide index.
|
|
1236
|
+
* @param shapeIndex Shape index.
|
|
1237
|
+
* @param rowIndex Row index.
|
|
1238
|
+
* @param cellIndex Table cell index.
|
|
1239
|
+
* @param paragraphIndex Paragraph index.
|
|
1240
|
+
* @param password Document password.
|
|
1241
|
+
* @param folder Document folder.
|
|
1242
|
+
* @param storage Document storage.
|
|
1243
|
+
*/
|
|
1244
|
+
deleteTableCellParagraph(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
1245
|
+
response: http.ServerResponse;
|
|
1246
|
+
body: model.Paragraphs;
|
|
1247
|
+
}>;
|
|
1248
|
+
/**
|
|
1249
|
+
* Delete table ell portion.
|
|
1250
|
+
* @param name Document name.
|
|
1251
|
+
* @param slideIndex Slide index.
|
|
1252
|
+
* @param shapeIndex Shape index.
|
|
1253
|
+
* @param rowIndex Row index.
|
|
1254
|
+
* @param cellIndex Table cell index.
|
|
1255
|
+
* @param paragraphIndex Paragraph index.
|
|
1256
|
+
* @param portionIndex Portion index.
|
|
1257
|
+
* @param password Document password.
|
|
1258
|
+
* @param folder Document folder.
|
|
1259
|
+
* @param storage Document storage.
|
|
1260
|
+
*/
|
|
1261
|
+
deleteTableCellPortion(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
1262
|
+
response: http.ServerResponse;
|
|
1263
|
+
body: model.Portions;
|
|
1264
|
+
}>;
|
|
1265
|
+
/**
|
|
1266
|
+
* Deletes the table row.
|
|
1267
|
+
* @param name Document name.
|
|
1268
|
+
* @param slideIndex Slide index.
|
|
1269
|
+
* @param shapeIndex Shape index.
|
|
1270
|
+
* @param rowIndex Row index.
|
|
1271
|
+
* @param withAttachedRows Also delete all attached rows.
|
|
1272
|
+
* @param password Document password.
|
|
1273
|
+
* @param folder Document folder.
|
|
1274
|
+
* @param storage Document storage.
|
|
1275
|
+
*/
|
|
1276
|
+
deleteTableRow(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, withAttachedRows?: boolean, password?: string, folder?: string, storage?: string): Promise<{
|
|
1277
|
+
response: http.ServerResponse;
|
|
1278
|
+
body: model.Table;
|
|
1279
|
+
}>;
|
|
1184
1280
|
/**
|
|
1185
1281
|
* Removes unused layout slides.
|
|
1186
1282
|
* @param name Document name.
|
|
@@ -2165,6 +2261,70 @@ export declare class SlidesApi {
|
|
|
2165
2261
|
response: http.ServerResponse;
|
|
2166
2262
|
body: model.Shapes;
|
|
2167
2263
|
}>;
|
|
2264
|
+
/**
|
|
2265
|
+
* Returns paragraph info.
|
|
2266
|
+
* @param name Document name.
|
|
2267
|
+
* @param slideIndex Slide index.
|
|
2268
|
+
* @param shapeIndex Shape index.
|
|
2269
|
+
* @param rowIndex Row index.
|
|
2270
|
+
* @param cellIndex Table cell index.
|
|
2271
|
+
* @param paragraphIndex Paragraph index.
|
|
2272
|
+
* @param password Document password.
|
|
2273
|
+
* @param folder Document folder.
|
|
2274
|
+
* @param storage Document storage.
|
|
2275
|
+
*/
|
|
2276
|
+
getTableCellParagraph(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
2277
|
+
response: http.ServerResponse;
|
|
2278
|
+
body: model.Paragraph;
|
|
2279
|
+
}>;
|
|
2280
|
+
/**
|
|
2281
|
+
* Returns table cell paragraphs.
|
|
2282
|
+
* @param name Document name.
|
|
2283
|
+
* @param slideIndex Slide index.
|
|
2284
|
+
* @param shapeIndex Shape index.
|
|
2285
|
+
* @param rowIndex Row index.
|
|
2286
|
+
* @param cellIndex Table cell index.
|
|
2287
|
+
* @param password Document password.
|
|
2288
|
+
* @param folder Document folder.
|
|
2289
|
+
* @param storage Document storage.
|
|
2290
|
+
*/
|
|
2291
|
+
getTableCellParagraphs(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
2292
|
+
response: http.ServerResponse;
|
|
2293
|
+
body: model.Paragraphs;
|
|
2294
|
+
}>;
|
|
2295
|
+
/**
|
|
2296
|
+
* Returns table cell portion.
|
|
2297
|
+
* @param name Document name.
|
|
2298
|
+
* @param slideIndex Slide index.
|
|
2299
|
+
* @param shapeIndex Shape index.
|
|
2300
|
+
* @param rowIndex Row index.
|
|
2301
|
+
* @param cellIndex Table cell index.
|
|
2302
|
+
* @param paragraphIndex Paragraph index.
|
|
2303
|
+
* @param portionIndex Portion index.
|
|
2304
|
+
* @param password Document password.
|
|
2305
|
+
* @param folder Document folder.
|
|
2306
|
+
* @param storage Document storage.
|
|
2307
|
+
*/
|
|
2308
|
+
getTableCellPortion(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, paragraphIndex: number, portionIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
2309
|
+
response: http.ServerResponse;
|
|
2310
|
+
body: model.Portion;
|
|
2311
|
+
}>;
|
|
2312
|
+
/**
|
|
2313
|
+
* Returns table cell portions.
|
|
2314
|
+
* @param name Document name.
|
|
2315
|
+
* @param slideIndex Slide index.
|
|
2316
|
+
* @param shapeIndex Shape index.
|
|
2317
|
+
* @param rowIndex Row index.
|
|
2318
|
+
* @param cellIndex Table cell index.
|
|
2319
|
+
* @param paragraphIndex Paragraph index.
|
|
2320
|
+
* @param password Document password.
|
|
2321
|
+
* @param folder Document folder.
|
|
2322
|
+
* @param storage Document storage.
|
|
2323
|
+
*/
|
|
2324
|
+
getTableCellPortions(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, paragraphIndex: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
2325
|
+
response: http.ServerResponse;
|
|
2326
|
+
body: model.Portions;
|
|
2327
|
+
}>;
|
|
2168
2328
|
/**
|
|
2169
2329
|
* Read slide theme info.
|
|
2170
2330
|
* @param name Document name.
|
|
@@ -2297,6 +2457,20 @@ export declare class SlidesApi {
|
|
|
2297
2457
|
response: http.ServerResponse;
|
|
2298
2458
|
body: Buffer;
|
|
2299
2459
|
}>;
|
|
2460
|
+
/**
|
|
2461
|
+
* Merge table cells.
|
|
2462
|
+
* @param name Document name.
|
|
2463
|
+
* @param slideIndex Slide index.
|
|
2464
|
+
* @param shapeIndex Shape index.
|
|
2465
|
+
* @param tableCellMergeOptions Merge settings.
|
|
2466
|
+
* @param password Document password.
|
|
2467
|
+
* @param folder Document folder.
|
|
2468
|
+
* @param storage Document storage.
|
|
2469
|
+
*/
|
|
2470
|
+
mergeTableCells(name: string, slideIndex: number, shapeIndex: number, tableCellMergeOptions: model.TableCellMergeOptions, password?: string, folder?: string, storage?: string): Promise<{
|
|
2471
|
+
response: http.ServerResponse;
|
|
2472
|
+
body: model.Table;
|
|
2473
|
+
}>;
|
|
2300
2474
|
/**
|
|
2301
2475
|
* Move file
|
|
2302
2476
|
* @param srcPath Source file path e.g. '/src.ext'
|
|
@@ -2977,6 +3151,23 @@ export declare class SlidesApi {
|
|
|
2977
3151
|
response: http.ServerResponse;
|
|
2978
3152
|
body: Buffer;
|
|
2979
3153
|
}>;
|
|
3154
|
+
/**
|
|
3155
|
+
* Split table cell.
|
|
3156
|
+
* @param name Document name.
|
|
3157
|
+
* @param slideIndex Slide index.
|
|
3158
|
+
* @param shapeIndex Shape index.
|
|
3159
|
+
* @param rowIndex Row index.
|
|
3160
|
+
* @param cellIndex Table cell index.
|
|
3161
|
+
* @param splitType Table cell split type (SplitByWidth, SplitByHeight,SplitByColSpan or SplitByRowSpan).
|
|
3162
|
+
* @param value Split value. In case of splitting by column or row span, the value must be an integer number.
|
|
3163
|
+
* @param password Document password.
|
|
3164
|
+
* @param folder Document folder.
|
|
3165
|
+
* @param storage Document storage.
|
|
3166
|
+
*/
|
|
3167
|
+
splitTableCell(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, splitType: model.TableCellSplitType, value: number, password?: string, folder?: string, storage?: string): Promise<{
|
|
3168
|
+
response: http.ServerResponse;
|
|
3169
|
+
body: model.Table;
|
|
3170
|
+
}>;
|
|
2980
3171
|
/**
|
|
2981
3172
|
* Check if storage exists
|
|
2982
3173
|
* @param storageName Storage name
|
|
@@ -3242,6 +3433,72 @@ export declare class SlidesApi {
|
|
|
3242
3433
|
response: http.ServerResponse;
|
|
3243
3434
|
body: model.ShapeBase;
|
|
3244
3435
|
}>;
|
|
3436
|
+
/**
|
|
3437
|
+
* Update the table cell.
|
|
3438
|
+
* @param name Document name.
|
|
3439
|
+
* @param slideIndex Slide index.
|
|
3440
|
+
* @param shapeIndex Shape index.
|
|
3441
|
+
* @param rowIndex Row index.
|
|
3442
|
+
* @param cellIndex Table cell index.
|
|
3443
|
+
* @param dto Table cell data.
|
|
3444
|
+
* @param password Document password.
|
|
3445
|
+
* @param folder Document folder.
|
|
3446
|
+
* @param storage Document storage.
|
|
3447
|
+
*/
|
|
3448
|
+
updateTableCell(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, dto: model.TableCell, password?: string, folder?: string, storage?: string): Promise<{
|
|
3449
|
+
response: http.ServerResponse;
|
|
3450
|
+
body: model.TableCell;
|
|
3451
|
+
}>;
|
|
3452
|
+
/**
|
|
3453
|
+
* Updates table cell paragraph.
|
|
3454
|
+
* @param name Document name.
|
|
3455
|
+
* @param slideIndex Slide index.
|
|
3456
|
+
* @param shapeIndex Shape index.
|
|
3457
|
+
* @param rowIndex Row index.
|
|
3458
|
+
* @param cellIndex Table cell index.
|
|
3459
|
+
* @param paragraphIndex Paragraph index.
|
|
3460
|
+
* @param dto Paragraph DTO.
|
|
3461
|
+
* @param password Document password.
|
|
3462
|
+
* @param folder Document folder.
|
|
3463
|
+
* @param storage Document storage.
|
|
3464
|
+
*/
|
|
3465
|
+
updateTableCellParagraph(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, paragraphIndex: number, dto: model.Paragraph, password?: string, folder?: string, storage?: string): Promise<{
|
|
3466
|
+
response: http.ServerResponse;
|
|
3467
|
+
body: model.Paragraph;
|
|
3468
|
+
}>;
|
|
3469
|
+
/**
|
|
3470
|
+
* Updates table cell portion.
|
|
3471
|
+
* @param name Document name.
|
|
3472
|
+
* @param slideIndex Slide index.
|
|
3473
|
+
* @param shapeIndex Shape index.
|
|
3474
|
+
* @param rowIndex Row index.
|
|
3475
|
+
* @param cellIndex Table cell index.
|
|
3476
|
+
* @param paragraphIndex Paragraph index.
|
|
3477
|
+
* @param portionIndex Portion index.
|
|
3478
|
+
* @param dto Portion DTO.
|
|
3479
|
+
* @param password Document password.
|
|
3480
|
+
* @param folder Document folder.
|
|
3481
|
+
* @param storage Document storage.
|
|
3482
|
+
*/
|
|
3483
|
+
updateTableCellPortion(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, cellIndex: number, paragraphIndex: number, portionIndex: number, dto: model.Portion, password?: string, folder?: string, storage?: string): Promise<{
|
|
3484
|
+
response: http.ServerResponse;
|
|
3485
|
+
body: model.Portion;
|
|
3486
|
+
}>;
|
|
3487
|
+
/**
|
|
3488
|
+
* Update the table row.
|
|
3489
|
+
* @param name Document name.
|
|
3490
|
+
* @param slideIndex Slide index.
|
|
3491
|
+
* @param shapeIndex Shape index.
|
|
3492
|
+
* @param rowIndex Row index.
|
|
3493
|
+
* @param dto Table cell data.
|
|
3494
|
+
* @param password Document password.
|
|
3495
|
+
* @param folder Document folder.
|
|
3496
|
+
* @param storage Document storage.
|
|
3497
|
+
*/
|
|
3498
|
+
updateTableRow(name: string, slideIndex: number, shapeIndex: number, rowIndex: number, dto: model.TableRow, password?: string, folder?: string, storage?: string): Promise<{
|
|
3499
|
+
response: http.ServerResponse;
|
|
3500
|
+
body: model.TableRow;
|
|
3501
|
+
}>;
|
|
3245
3502
|
/**
|
|
3246
3503
|
* Upload file
|
|
3247
3504
|
* @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
|