aspose_slides_cloud 26.1.0 → 26.10.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -11
- data/README.md +16 -26
- data/aspose_slides_cloud.gemspec +1 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +654 -6
- data/lib/aspose_slides_cloud/configuration.rb +12 -4
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +24 -2
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/smart_art.rb +12 -2
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +12 -2
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +3033 -21
- data/spec/use_cases/audio_spec.rb +67 -0
- data/spec/use_cases/chart_spec.rb +27 -6
- data/spec/use_cases/convert_spec.rb +281 -0
- data/spec/use_cases/font_spec.rb +2 -1
- data/spec/use_cases/image_spec.rb +20 -0
- data/spec/use_cases/layout_slide_spec.rb +1 -1
- data/spec/use_cases/master_slide_spec.rb +1 -1
- data/spec/use_cases/merge_spec.rb +1 -1
- data/spec/use_cases/notes_slide_spec.rb +1 -1
- data/spec/use_cases/nullable_field_spec.rb +1 -1
- data/spec/use_cases/paragraph_spec.rb +73 -0
- data/spec/use_cases/shape_spec.rb +241 -26
- data/spec/use_cases/table_spec.rb +55 -0
- data/spec/use_cases/text_format_spec.rb +2 -2
- data/spec/use_cases/video_spec.rb +67 -0
- data/testRules.json +23 -11
- metadata +9 -3
|
@@ -2281,13 +2281,14 @@ module AsposeSlidesCloud
|
|
|
2281
2281
|
# @param slide_index Slide index.
|
|
2282
2282
|
# @param dto Shape DTO.
|
|
2283
2283
|
# @param shape_to_clone Optional index for clone shape instead of adding a new one.
|
|
2284
|
+
# @param clone_from_slide Optional index of the slide to clone the shape from. When set, shapeToClone refers to a shape on that slide.
|
|
2284
2285
|
# @param position Position of the new shape in the list. Default is at the end of the list.
|
|
2285
2286
|
# @param password Document password.
|
|
2286
2287
|
# @param folder Document folder.
|
|
2287
2288
|
# @param storage Document storage.
|
|
2288
2289
|
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
2289
|
-
def create_shape(name, slide_index, dto = nil, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2290
|
-
data, _status_code, _headers = create_shape_with_http_info(name, slide_index, dto, shape_to_clone, position, password, folder, storage, sub_shape)
|
|
2290
|
+
def create_shape(name, slide_index, dto = nil, shape_to_clone = nil, clone_from_slide = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2291
|
+
data, _status_code, _headers = create_shape_with_http_info(name, slide_index, dto, shape_to_clone, clone_from_slide, position, password, folder, storage, sub_shape)
|
|
2291
2292
|
data
|
|
2292
2293
|
end
|
|
2293
2294
|
|
|
@@ -2296,12 +2297,13 @@ module AsposeSlidesCloud
|
|
|
2296
2297
|
# @param slide_index Slide index.
|
|
2297
2298
|
# @param dto Shape DTO.
|
|
2298
2299
|
# @param shape_to_clone Optional index for clone shape instead of adding a new one.
|
|
2300
|
+
# @param clone_from_slide Optional index of the slide to clone the shape from. When set, shapeToClone refers to a shape on that slide.
|
|
2299
2301
|
# @param position Position of the new shape in the list. Default is at the end of the list.
|
|
2300
2302
|
# @param password Document password.
|
|
2301
2303
|
# @param folder Document folder.
|
|
2302
2304
|
# @param storage Document storage.
|
|
2303
2305
|
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
2304
|
-
def create_shape_with_http_info(name, slide_index, dto = nil, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2306
|
+
def create_shape_with_http_info(name, slide_index, dto = nil, shape_to_clone = nil, clone_from_slide = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2305
2307
|
if @api_client.config.debugging
|
|
2306
2308
|
@api_client.config.logger.debug 'Calling API: SlidesApi.create_shape ...'
|
|
2307
2309
|
end
|
|
@@ -2322,6 +2324,7 @@ module AsposeSlidesCloud
|
|
|
2322
2324
|
# query parameters
|
|
2323
2325
|
query_params = {}
|
|
2324
2326
|
query_params[:'shapeToClone'] = @api_client.prepare_for_query(shape_to_clone) unless shape_to_clone.nil?
|
|
2327
|
+
query_params[:'cloneFromSlide'] = @api_client.prepare_for_query(clone_from_slide) unless clone_from_slide.nil?
|
|
2325
2328
|
query_params[:'position'] = @api_client.prepare_for_query(position) unless position.nil?
|
|
2326
2329
|
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
2327
2330
|
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
@@ -2945,13 +2948,14 @@ module AsposeSlidesCloud
|
|
|
2945
2948
|
# @param slide_type Slide type (master, layout or notes).
|
|
2946
2949
|
# @param dto Shape DTO.
|
|
2947
2950
|
# @param shape_to_clone Optional index for clone shape instead of adding a new one.
|
|
2951
|
+
# @param clone_from_slide Optional index of the slide to clone the shape from. When set, shapeToClone refers to a shape on that slide.
|
|
2948
2952
|
# @param position Position of the new shape in the list. Default is at the end of the list.
|
|
2949
2953
|
# @param password Document password.
|
|
2950
2954
|
# @param folder Document folder.
|
|
2951
2955
|
# @param storage Document storage.
|
|
2952
2956
|
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
2953
|
-
def create_special_slide_shape(name, slide_index, slide_type, dto, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2954
|
-
data, _status_code, _headers = create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone, position, password, folder, storage, sub_shape)
|
|
2957
|
+
def create_special_slide_shape(name, slide_index, slide_type, dto, shape_to_clone = nil, clone_from_slide = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2958
|
+
data, _status_code, _headers = create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone, clone_from_slide, position, password, folder, storage, sub_shape)
|
|
2955
2959
|
data
|
|
2956
2960
|
end
|
|
2957
2961
|
|
|
@@ -2961,12 +2965,13 @@ module AsposeSlidesCloud
|
|
|
2961
2965
|
# @param slide_type Slide type (master, layout or notes).
|
|
2962
2966
|
# @param dto Shape DTO.
|
|
2963
2967
|
# @param shape_to_clone Optional index for clone shape instead of adding a new one.
|
|
2968
|
+
# @param clone_from_slide Optional index of the slide to clone the shape from. When set, shapeToClone refers to a shape on that slide.
|
|
2964
2969
|
# @param position Position of the new shape in the list. Default is at the end of the list.
|
|
2965
2970
|
# @param password Document password.
|
|
2966
2971
|
# @param folder Document folder.
|
|
2967
2972
|
# @param storage Document storage.
|
|
2968
2973
|
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
2969
|
-
def create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2974
|
+
def create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone = nil, clone_from_slide = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2970
2975
|
if @api_client.config.debugging
|
|
2971
2976
|
@api_client.config.logger.debug 'Calling API: SlidesApi.create_special_slide_shape ...'
|
|
2972
2977
|
end
|
|
@@ -3000,6 +3005,7 @@ module AsposeSlidesCloud
|
|
|
3000
3005
|
# query parameters
|
|
3001
3006
|
query_params = {}
|
|
3002
3007
|
query_params[:'shapeToClone'] = @api_client.prepare_for_query(shape_to_clone) unless shape_to_clone.nil?
|
|
3008
|
+
query_params[:'cloneFromSlide'] = @api_client.prepare_for_query(clone_from_slide) unless clone_from_slide.nil?
|
|
3003
3009
|
query_params[:'position'] = @api_client.prepare_for_query(position) unless position.nil?
|
|
3004
3010
|
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
3005
3011
|
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
@@ -8474,6 +8480,110 @@ module AsposeSlidesCloud
|
|
|
8474
8480
|
:return_type => 'File')
|
|
8475
8481
|
return data, status_code, headers
|
|
8476
8482
|
end
|
|
8483
|
+
# Render paragraph to specified picture format.
|
|
8484
|
+
# @param name Presentation name.
|
|
8485
|
+
# @param slide_index Slide index.
|
|
8486
|
+
# @param shape_index Index of shape starting from 1
|
|
8487
|
+
# @param paragraph_index Paragraph index.
|
|
8488
|
+
# @param format Export picture format.
|
|
8489
|
+
# @param scale_x X scale ratio.
|
|
8490
|
+
# @param scale_y Y scale ratio.
|
|
8491
|
+
# @param quality Image quality (1 to 100); applies to JPEG only.
|
|
8492
|
+
# @param password Document password.
|
|
8493
|
+
# @param folder Presentation folder.
|
|
8494
|
+
# @param storage Presentation storage.
|
|
8495
|
+
# @param fonts_folder Fonts folder.
|
|
8496
|
+
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
8497
|
+
def download_paragraph(name, slide_index, shape_index, paragraph_index, format, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, sub_shape = nil)
|
|
8498
|
+
data, _status_code, _headers = download_paragraph_with_http_info(name, slide_index, shape_index, paragraph_index, format, scale_x, scale_y, quality, password, folder, storage, fonts_folder, sub_shape)
|
|
8499
|
+
data
|
|
8500
|
+
end
|
|
8501
|
+
|
|
8502
|
+
# Render paragraph to specified picture format.
|
|
8503
|
+
# @param name Presentation name.
|
|
8504
|
+
# @param slide_index Slide index.
|
|
8505
|
+
# @param shape_index Index of shape starting from 1
|
|
8506
|
+
# @param paragraph_index Paragraph index.
|
|
8507
|
+
# @param format Export picture format.
|
|
8508
|
+
# @param scale_x X scale ratio.
|
|
8509
|
+
# @param scale_y Y scale ratio.
|
|
8510
|
+
# @param quality Image quality (1 to 100); applies to JPEG only.
|
|
8511
|
+
# @param password Document password.
|
|
8512
|
+
# @param folder Presentation folder.
|
|
8513
|
+
# @param storage Presentation storage.
|
|
8514
|
+
# @param fonts_folder Fonts folder.
|
|
8515
|
+
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
8516
|
+
def download_paragraph_with_http_info(name, slide_index, shape_index, paragraph_index, format, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, sub_shape = nil)
|
|
8517
|
+
if @api_client.config.debugging
|
|
8518
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.download_paragraph ...'
|
|
8519
|
+
end
|
|
8520
|
+
|
|
8521
|
+
# verify the required parameter 'name' is set
|
|
8522
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
8523
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.download_paragraph"
|
|
8524
|
+
end
|
|
8525
|
+
# verify the required parameter 'slide_index' is set
|
|
8526
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
8527
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.download_paragraph"
|
|
8528
|
+
end
|
|
8529
|
+
# verify the required parameter 'shape_index' is set
|
|
8530
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
|
8531
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.download_paragraph"
|
|
8532
|
+
end
|
|
8533
|
+
# verify the required parameter 'paragraph_index' is set
|
|
8534
|
+
if @api_client.config.client_side_validation && paragraph_index.nil?
|
|
8535
|
+
fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.download_paragraph"
|
|
8536
|
+
end
|
|
8537
|
+
# verify the required parameter 'format' is set
|
|
8538
|
+
if @api_client.config.client_side_validation && format.nil?
|
|
8539
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_paragraph"
|
|
8540
|
+
end
|
|
8541
|
+
# verify enum value
|
|
8542
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff'].any?{ |s| s.casecmp(format)==0 }
|
|
8543
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff"
|
|
8544
|
+
end
|
|
8545
|
+
# resource path
|
|
8546
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/{format}'
|
|
8547
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
8548
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
8549
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
8550
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
|
|
8551
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
|
8552
|
+
|
|
8553
|
+
# query parameters
|
|
8554
|
+
query_params = {}
|
|
8555
|
+
query_params[:'scaleX'] = @api_client.prepare_for_query(scale_x) unless scale_x.nil?
|
|
8556
|
+
query_params[:'scaleY'] = @api_client.prepare_for_query(scale_y) unless scale_y.nil?
|
|
8557
|
+
query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
|
|
8558
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
8559
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
8560
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
|
8561
|
+
query_params[:'subShape'] = @api_client.prepare_for_query(sub_shape) unless sub_shape.nil?
|
|
8562
|
+
|
|
8563
|
+
# header parameters
|
|
8564
|
+
header_params = {}
|
|
8565
|
+
# HTTP header 'Accept' (if needed)
|
|
8566
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
|
8567
|
+
# HTTP header 'Content-Type'
|
|
8568
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
8569
|
+
header_params[:'password'] = password unless password.nil?
|
|
8570
|
+
|
|
8571
|
+
# http body (model)
|
|
8572
|
+
post_body = nil
|
|
8573
|
+
|
|
8574
|
+
# form parameters
|
|
8575
|
+
post_files = []
|
|
8576
|
+
|
|
8577
|
+
auth_names = ['JWT']
|
|
8578
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
8579
|
+
:header_params => header_params,
|
|
8580
|
+
:query_params => query_params,
|
|
8581
|
+
:body => post_body,
|
|
8582
|
+
:files => post_files,
|
|
8583
|
+
:auth_names => auth_names,
|
|
8584
|
+
:return_type => 'File')
|
|
8585
|
+
return data, status_code, headers
|
|
8586
|
+
end
|
|
8477
8587
|
# Save a presentation to a specified format.
|
|
8478
8588
|
# @param name Document name.
|
|
8479
8589
|
# @param format Export format.
|
|
@@ -9092,6 +9202,121 @@ module AsposeSlidesCloud
|
|
|
9092
9202
|
:return_type => 'File')
|
|
9093
9203
|
return data, status_code, headers
|
|
9094
9204
|
end
|
|
9205
|
+
# Render table cell paragraph to specified picture format.
|
|
9206
|
+
# @param name Document name.
|
|
9207
|
+
# @param slide_index Slide index.
|
|
9208
|
+
# @param shape_index Shape index.
|
|
9209
|
+
# @param row_index Row index.
|
|
9210
|
+
# @param cell_index Table cell index.
|
|
9211
|
+
# @param paragraph_index Paragraph index.
|
|
9212
|
+
# @param format Export picture format.
|
|
9213
|
+
# @param scale_x X scale ratio.
|
|
9214
|
+
# @param scale_y Y scale ratio.
|
|
9215
|
+
# @param quality Image quality (1 to 100); applies to JPEG only.
|
|
9216
|
+
# @param password Document password.
|
|
9217
|
+
# @param folder Document folder.
|
|
9218
|
+
# @param storage Document storage.
|
|
9219
|
+
# @param fonts_folder Fonts folder.
|
|
9220
|
+
def download_table_cell_paragraph(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
|
9221
|
+
data, _status_code, _headers = download_table_cell_paragraph_with_http_info(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, scale_x, scale_y, quality, password, folder, storage, fonts_folder)
|
|
9222
|
+
data
|
|
9223
|
+
end
|
|
9224
|
+
|
|
9225
|
+
# Render table cell paragraph to specified picture format.
|
|
9226
|
+
# @param name Document name.
|
|
9227
|
+
# @param slide_index Slide index.
|
|
9228
|
+
# @param shape_index Shape index.
|
|
9229
|
+
# @param row_index Row index.
|
|
9230
|
+
# @param cell_index Table cell index.
|
|
9231
|
+
# @param paragraph_index Paragraph index.
|
|
9232
|
+
# @param format Export picture format.
|
|
9233
|
+
# @param scale_x X scale ratio.
|
|
9234
|
+
# @param scale_y Y scale ratio.
|
|
9235
|
+
# @param quality Image quality (1 to 100); applies to JPEG only.
|
|
9236
|
+
# @param password Document password.
|
|
9237
|
+
# @param folder Document folder.
|
|
9238
|
+
# @param storage Document storage.
|
|
9239
|
+
# @param fonts_folder Fonts folder.
|
|
9240
|
+
def download_table_cell_paragraph_with_http_info(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
|
9241
|
+
if @api_client.config.debugging
|
|
9242
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.download_table_cell_paragraph ...'
|
|
9243
|
+
end
|
|
9244
|
+
|
|
9245
|
+
# verify the required parameter 'name' is set
|
|
9246
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
9247
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.download_table_cell_paragraph"
|
|
9248
|
+
end
|
|
9249
|
+
# verify the required parameter 'slide_index' is set
|
|
9250
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
9251
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.download_table_cell_paragraph"
|
|
9252
|
+
end
|
|
9253
|
+
# verify the required parameter 'shape_index' is set
|
|
9254
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
|
9255
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.download_table_cell_paragraph"
|
|
9256
|
+
end
|
|
9257
|
+
# verify the required parameter 'row_index' is set
|
|
9258
|
+
if @api_client.config.client_side_validation && row_index.nil?
|
|
9259
|
+
fail ArgumentError, "Missing the required parameter 'row_index' when calling SlidesApi.download_table_cell_paragraph"
|
|
9260
|
+
end
|
|
9261
|
+
# verify the required parameter 'cell_index' is set
|
|
9262
|
+
if @api_client.config.client_side_validation && cell_index.nil?
|
|
9263
|
+
fail ArgumentError, "Missing the required parameter 'cell_index' when calling SlidesApi.download_table_cell_paragraph"
|
|
9264
|
+
end
|
|
9265
|
+
# verify the required parameter 'paragraph_index' is set
|
|
9266
|
+
if @api_client.config.client_side_validation && paragraph_index.nil?
|
|
9267
|
+
fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.download_table_cell_paragraph"
|
|
9268
|
+
end
|
|
9269
|
+
# verify the required parameter 'format' is set
|
|
9270
|
+
if @api_client.config.client_side_validation && format.nil?
|
|
9271
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_table_cell_paragraph"
|
|
9272
|
+
end
|
|
9273
|
+
# verify enum value
|
|
9274
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff'].any?{ |s| s.casecmp(format)==0 }
|
|
9275
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff"
|
|
9276
|
+
end
|
|
9277
|
+
# resource path
|
|
9278
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/{format}'
|
|
9279
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
9280
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
9281
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
9282
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'rowIndex', row_index)
|
|
9283
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'cellIndex', cell_index)
|
|
9284
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
|
|
9285
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
|
9286
|
+
|
|
9287
|
+
# query parameters
|
|
9288
|
+
query_params = {}
|
|
9289
|
+
query_params[:'scaleX'] = @api_client.prepare_for_query(scale_x) unless scale_x.nil?
|
|
9290
|
+
query_params[:'scaleY'] = @api_client.prepare_for_query(scale_y) unless scale_y.nil?
|
|
9291
|
+
query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
|
|
9292
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
9293
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
9294
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
|
9295
|
+
|
|
9296
|
+
# header parameters
|
|
9297
|
+
header_params = {}
|
|
9298
|
+
# HTTP header 'Accept' (if needed)
|
|
9299
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
|
9300
|
+
# HTTP header 'Content-Type'
|
|
9301
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
9302
|
+
header_params[:'password'] = password unless password.nil?
|
|
9303
|
+
|
|
9304
|
+
# http body (model)
|
|
9305
|
+
post_body = nil
|
|
9306
|
+
|
|
9307
|
+
# form parameters
|
|
9308
|
+
post_files = []
|
|
9309
|
+
|
|
9310
|
+
auth_names = ['JWT']
|
|
9311
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
9312
|
+
:header_params => header_params,
|
|
9313
|
+
:query_params => query_params,
|
|
9314
|
+
:body => post_body,
|
|
9315
|
+
:files => post_files,
|
|
9316
|
+
:auth_names => auth_names,
|
|
9317
|
+
:return_type => 'File')
|
|
9318
|
+
return data, status_code, headers
|
|
9319
|
+
end
|
|
9095
9320
|
# Read slide animation effects.
|
|
9096
9321
|
# @param name Document name.
|
|
9097
9322
|
# @param slide_index Slide index.
|
|
@@ -13834,6 +14059,103 @@ module AsposeSlidesCloud
|
|
|
13834
14059
|
:return_type => 'Shape')
|
|
13835
14060
|
return data, status_code, headers
|
|
13836
14061
|
end
|
|
14062
|
+
# Imports a chart from an Excel workbook and adds it to the slide.
|
|
14063
|
+
# @param name Document name.
|
|
14064
|
+
# @param slide_index Slide index.
|
|
14065
|
+
# @param worksheet_name The name of the worksheet that contains the chart.
|
|
14066
|
+
# @param document Excel workbook data.
|
|
14067
|
+
# @param chart_name The name of the chart. Required if chartIndex is not specified.
|
|
14068
|
+
# @param chart_index The zero-based index of the chart in the worksheet. Takes precedence over chartName.
|
|
14069
|
+
# @param x X coordinate of the chart (EMU).
|
|
14070
|
+
# @param y Y coordinate of the chart (EMU).
|
|
14071
|
+
# @param embed_all_workbook If true, the entire workbook is embedded; if false, only chart data.
|
|
14072
|
+
# @param workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.
|
|
14073
|
+
# @param workbook_storage Storage name for workbookPath.
|
|
14074
|
+
# @param password Document password.
|
|
14075
|
+
# @param folder Presentation folder.
|
|
14076
|
+
# @param storage Presentation storage.
|
|
14077
|
+
def import_chart_from_workbook(name, slide_index, worksheet_name, document = nil, chart_name = nil, chart_index = nil, x = nil, y = nil, embed_all_workbook = nil, workbook_path = nil, workbook_storage = nil, password = nil, folder = nil, storage = nil)
|
|
14078
|
+
data, _status_code, _headers = import_chart_from_workbook_with_http_info(name, slide_index, worksheet_name, document, chart_name, chart_index, x, y, embed_all_workbook, workbook_path, workbook_storage, password, folder, storage)
|
|
14079
|
+
data
|
|
14080
|
+
end
|
|
14081
|
+
|
|
14082
|
+
# Imports a chart from an Excel workbook and adds it to the slide.
|
|
14083
|
+
# @param name Document name.
|
|
14084
|
+
# @param slide_index Slide index.
|
|
14085
|
+
# @param worksheet_name The name of the worksheet that contains the chart.
|
|
14086
|
+
# @param document Excel workbook data.
|
|
14087
|
+
# @param chart_name The name of the chart. Required if chartIndex is not specified.
|
|
14088
|
+
# @param chart_index The zero-based index of the chart in the worksheet. Takes precedence over chartName.
|
|
14089
|
+
# @param x X coordinate of the chart (EMU).
|
|
14090
|
+
# @param y Y coordinate of the chart (EMU).
|
|
14091
|
+
# @param embed_all_workbook If true, the entire workbook is embedded; if false, only chart data.
|
|
14092
|
+
# @param workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.
|
|
14093
|
+
# @param workbook_storage Storage name for workbookPath.
|
|
14094
|
+
# @param password Document password.
|
|
14095
|
+
# @param folder Presentation folder.
|
|
14096
|
+
# @param storage Presentation storage.
|
|
14097
|
+
def import_chart_from_workbook_with_http_info(name, slide_index, worksheet_name, document = nil, chart_name = nil, chart_index = nil, x = nil, y = nil, embed_all_workbook = nil, workbook_path = nil, workbook_storage = nil, password = nil, folder = nil, storage = nil)
|
|
14098
|
+
if @api_client.config.debugging
|
|
14099
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.import_chart_from_workbook ...'
|
|
14100
|
+
end
|
|
14101
|
+
|
|
14102
|
+
# verify the required parameter 'name' is set
|
|
14103
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
14104
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.import_chart_from_workbook"
|
|
14105
|
+
end
|
|
14106
|
+
# verify the required parameter 'slide_index' is set
|
|
14107
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
14108
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.import_chart_from_workbook"
|
|
14109
|
+
end
|
|
14110
|
+
# verify the required parameter 'worksheet_name' is set
|
|
14111
|
+
if @api_client.config.client_side_validation && worksheet_name.nil?
|
|
14112
|
+
fail ArgumentError, "Missing the required parameter 'worksheet_name' when calling SlidesApi.import_chart_from_workbook"
|
|
14113
|
+
end
|
|
14114
|
+
# resource path
|
|
14115
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/fromExcelChart'
|
|
14116
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
14117
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
14118
|
+
|
|
14119
|
+
# query parameters
|
|
14120
|
+
query_params = {}
|
|
14121
|
+
query_params[:'worksheetName'] = @api_client.prepare_for_query(worksheet_name) unless worksheet_name.nil?
|
|
14122
|
+
query_params[:'chartName'] = @api_client.prepare_for_query(chart_name) unless chart_name.nil?
|
|
14123
|
+
query_params[:'chartIndex'] = @api_client.prepare_for_query(chart_index) unless chart_index.nil?
|
|
14124
|
+
query_params[:'x'] = @api_client.prepare_for_query(x) unless x.nil?
|
|
14125
|
+
query_params[:'y'] = @api_client.prepare_for_query(y) unless y.nil?
|
|
14126
|
+
query_params[:'embedAllWorkbook'] = @api_client.prepare_for_query(embed_all_workbook) unless embed_all_workbook.nil?
|
|
14127
|
+
query_params[:'workbookPath'] = @api_client.prepare_for_query(workbook_path) unless workbook_path.nil?
|
|
14128
|
+
query_params[:'workbookStorage'] = @api_client.prepare_for_query(workbook_storage) unless workbook_storage.nil?
|
|
14129
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
14130
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
14131
|
+
|
|
14132
|
+
# header parameters
|
|
14133
|
+
header_params = {}
|
|
14134
|
+
# HTTP header 'Accept' (if needed)
|
|
14135
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
14136
|
+
# HTTP header 'Content-Type'
|
|
14137
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
14138
|
+
header_params[:'password'] = password unless password.nil?
|
|
14139
|
+
|
|
14140
|
+
# http body (model)
|
|
14141
|
+
post_body = nil
|
|
14142
|
+
|
|
14143
|
+
# form parameters
|
|
14144
|
+
post_files = []
|
|
14145
|
+
if document
|
|
14146
|
+
post_files = post_files.push(document)
|
|
14147
|
+
end
|
|
14148
|
+
|
|
14149
|
+
auth_names = ['JWT']
|
|
14150
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
14151
|
+
:header_params => header_params,
|
|
14152
|
+
:query_params => query_params,
|
|
14153
|
+
:body => post_body,
|
|
14154
|
+
:files => post_files,
|
|
14155
|
+
:auth_names => auth_names,
|
|
14156
|
+
:return_type => 'ShapeBase')
|
|
14157
|
+
return data, status_code, headers
|
|
14158
|
+
end
|
|
13837
14159
|
# Create presentation document from html.
|
|
13838
14160
|
# @param name Document name.
|
|
13839
14161
|
# @param html HTML data.
|
|
@@ -14054,6 +14376,101 @@ module AsposeSlidesCloud
|
|
|
14054
14376
|
:return_type => 'Shapes')
|
|
14055
14377
|
return data, status_code, headers
|
|
14056
14378
|
end
|
|
14379
|
+
# Imports a table from an Excel workbook and adds it to the slide.
|
|
14380
|
+
# @param name Document name.
|
|
14381
|
+
# @param slide_index Slide index.
|
|
14382
|
+
# @param worksheet_name The name of the worksheet that contains the table.
|
|
14383
|
+
# @param cell_range The cell range that defines the table (e.g. \"A1:D10\").
|
|
14384
|
+
# @param document Excel workbook data.
|
|
14385
|
+
# @param x X coordinate of the table (EMU).
|
|
14386
|
+
# @param y Y coordinate of the table (EMU).
|
|
14387
|
+
# @param workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.
|
|
14388
|
+
# @param workbook_storage Storage name for workbookPath.
|
|
14389
|
+
# @param password Document password.
|
|
14390
|
+
# @param folder Presentation folder.
|
|
14391
|
+
# @param storage Presentation storage.
|
|
14392
|
+
def import_table_from_workbook(name, slide_index, worksheet_name, cell_range, document = nil, x = nil, y = nil, workbook_path = nil, workbook_storage = nil, password = nil, folder = nil, storage = nil)
|
|
14393
|
+
data, _status_code, _headers = import_table_from_workbook_with_http_info(name, slide_index, worksheet_name, cell_range, document, x, y, workbook_path, workbook_storage, password, folder, storage)
|
|
14394
|
+
data
|
|
14395
|
+
end
|
|
14396
|
+
|
|
14397
|
+
# Imports a table from an Excel workbook and adds it to the slide.
|
|
14398
|
+
# @param name Document name.
|
|
14399
|
+
# @param slide_index Slide index.
|
|
14400
|
+
# @param worksheet_name The name of the worksheet that contains the table.
|
|
14401
|
+
# @param cell_range The cell range that defines the table (e.g. \"A1:D10\").
|
|
14402
|
+
# @param document Excel workbook data.
|
|
14403
|
+
# @param x X coordinate of the table (EMU).
|
|
14404
|
+
# @param y Y coordinate of the table (EMU).
|
|
14405
|
+
# @param workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.
|
|
14406
|
+
# @param workbook_storage Storage name for workbookPath.
|
|
14407
|
+
# @param password Document password.
|
|
14408
|
+
# @param folder Presentation folder.
|
|
14409
|
+
# @param storage Presentation storage.
|
|
14410
|
+
def import_table_from_workbook_with_http_info(name, slide_index, worksheet_name, cell_range, document = nil, x = nil, y = nil, workbook_path = nil, workbook_storage = nil, password = nil, folder = nil, storage = nil)
|
|
14411
|
+
if @api_client.config.debugging
|
|
14412
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.import_table_from_workbook ...'
|
|
14413
|
+
end
|
|
14414
|
+
|
|
14415
|
+
# verify the required parameter 'name' is set
|
|
14416
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
14417
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.import_table_from_workbook"
|
|
14418
|
+
end
|
|
14419
|
+
# verify the required parameter 'slide_index' is set
|
|
14420
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
14421
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.import_table_from_workbook"
|
|
14422
|
+
end
|
|
14423
|
+
# verify the required parameter 'worksheet_name' is set
|
|
14424
|
+
if @api_client.config.client_side_validation && worksheet_name.nil?
|
|
14425
|
+
fail ArgumentError, "Missing the required parameter 'worksheet_name' when calling SlidesApi.import_table_from_workbook"
|
|
14426
|
+
end
|
|
14427
|
+
# verify the required parameter 'cell_range' is set
|
|
14428
|
+
if @api_client.config.client_side_validation && cell_range.nil?
|
|
14429
|
+
fail ArgumentError, "Missing the required parameter 'cell_range' when calling SlidesApi.import_table_from_workbook"
|
|
14430
|
+
end
|
|
14431
|
+
# resource path
|
|
14432
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/fromExcelTable'
|
|
14433
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
14434
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
14435
|
+
|
|
14436
|
+
# query parameters
|
|
14437
|
+
query_params = {}
|
|
14438
|
+
query_params[:'worksheetName'] = @api_client.prepare_for_query(worksheet_name) unless worksheet_name.nil?
|
|
14439
|
+
query_params[:'cellRange'] = @api_client.prepare_for_query(cell_range) unless cell_range.nil?
|
|
14440
|
+
query_params[:'x'] = @api_client.prepare_for_query(x) unless x.nil?
|
|
14441
|
+
query_params[:'y'] = @api_client.prepare_for_query(y) unless y.nil?
|
|
14442
|
+
query_params[:'workbookPath'] = @api_client.prepare_for_query(workbook_path) unless workbook_path.nil?
|
|
14443
|
+
query_params[:'workbookStorage'] = @api_client.prepare_for_query(workbook_storage) unless workbook_storage.nil?
|
|
14444
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
14445
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
14446
|
+
|
|
14447
|
+
# header parameters
|
|
14448
|
+
header_params = {}
|
|
14449
|
+
# HTTP header 'Accept' (if needed)
|
|
14450
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
14451
|
+
# HTTP header 'Content-Type'
|
|
14452
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
14453
|
+
header_params[:'password'] = password unless password.nil?
|
|
14454
|
+
|
|
14455
|
+
# http body (model)
|
|
14456
|
+
post_body = nil
|
|
14457
|
+
|
|
14458
|
+
# form parameters
|
|
14459
|
+
post_files = []
|
|
14460
|
+
if document
|
|
14461
|
+
post_files = post_files.push(document)
|
|
14462
|
+
end
|
|
14463
|
+
|
|
14464
|
+
auth_names = ['JWT']
|
|
14465
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
14466
|
+
:header_params => header_params,
|
|
14467
|
+
:query_params => query_params,
|
|
14468
|
+
:body => post_body,
|
|
14469
|
+
:files => post_files,
|
|
14470
|
+
:auth_names => auth_names,
|
|
14471
|
+
:return_type => 'ShapeBase')
|
|
14472
|
+
return data, status_code, headers
|
|
14473
|
+
end
|
|
14057
14474
|
# Merge the presentation with other presentations specified in the request parameter.
|
|
14058
14475
|
# @param name Document name.
|
|
14059
14476
|
# @param request PresentationsMergeRequest with a list of presentations to merge.
|
|
@@ -15916,6 +16333,116 @@ module AsposeSlidesCloud
|
|
|
15916
16333
|
:auth_names => auth_names)
|
|
15917
16334
|
return data, status_code, headers
|
|
15918
16335
|
end
|
|
16336
|
+
# Render paragraph to specified picture format and save it to the storage.
|
|
16337
|
+
# @param name Presentation name.
|
|
16338
|
+
# @param slide_index Slide index.
|
|
16339
|
+
# @param shape_index Index of shape starting from 1
|
|
16340
|
+
# @param paragraph_index Paragraph index.
|
|
16341
|
+
# @param format Export picture format.
|
|
16342
|
+
# @param out_path Output path.
|
|
16343
|
+
# @param scale_x X scale ratio.
|
|
16344
|
+
# @param scale_y Y scale ratio.
|
|
16345
|
+
# @param quality Image quality (1 to 100); applies to JPEG only.
|
|
16346
|
+
# @param password Document password.
|
|
16347
|
+
# @param folder Presentation folder.
|
|
16348
|
+
# @param storage Presentation storage.
|
|
16349
|
+
# @param fonts_folder Fonts folder.
|
|
16350
|
+
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
16351
|
+
def save_paragraph(name, slide_index, shape_index, paragraph_index, format, out_path, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, sub_shape = nil)
|
|
16352
|
+
save_paragraph_with_http_info(name, slide_index, shape_index, paragraph_index, format, out_path, scale_x, scale_y, quality, password, folder, storage, fonts_folder, sub_shape)
|
|
16353
|
+
nil
|
|
16354
|
+
end
|
|
16355
|
+
|
|
16356
|
+
# Render paragraph to specified picture format and save it to the storage.
|
|
16357
|
+
# @param name Presentation name.
|
|
16358
|
+
# @param slide_index Slide index.
|
|
16359
|
+
# @param shape_index Index of shape starting from 1
|
|
16360
|
+
# @param paragraph_index Paragraph index.
|
|
16361
|
+
# @param format Export picture format.
|
|
16362
|
+
# @param out_path Output path.
|
|
16363
|
+
# @param scale_x X scale ratio.
|
|
16364
|
+
# @param scale_y Y scale ratio.
|
|
16365
|
+
# @param quality Image quality (1 to 100); applies to JPEG only.
|
|
16366
|
+
# @param password Document password.
|
|
16367
|
+
# @param folder Presentation folder.
|
|
16368
|
+
# @param storage Presentation storage.
|
|
16369
|
+
# @param fonts_folder Fonts folder.
|
|
16370
|
+
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
16371
|
+
def save_paragraph_with_http_info(name, slide_index, shape_index, paragraph_index, format, out_path, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, sub_shape = nil)
|
|
16372
|
+
if @api_client.config.debugging
|
|
16373
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.save_paragraph ...'
|
|
16374
|
+
end
|
|
16375
|
+
|
|
16376
|
+
# verify the required parameter 'name' is set
|
|
16377
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
16378
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.save_paragraph"
|
|
16379
|
+
end
|
|
16380
|
+
# verify the required parameter 'slide_index' is set
|
|
16381
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
16382
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.save_paragraph"
|
|
16383
|
+
end
|
|
16384
|
+
# verify the required parameter 'shape_index' is set
|
|
16385
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
|
16386
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.save_paragraph"
|
|
16387
|
+
end
|
|
16388
|
+
# verify the required parameter 'paragraph_index' is set
|
|
16389
|
+
if @api_client.config.client_side_validation && paragraph_index.nil?
|
|
16390
|
+
fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.save_paragraph"
|
|
16391
|
+
end
|
|
16392
|
+
# verify the required parameter 'format' is set
|
|
16393
|
+
if @api_client.config.client_side_validation && format.nil?
|
|
16394
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_paragraph"
|
|
16395
|
+
end
|
|
16396
|
+
# verify enum value
|
|
16397
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff'].any?{ |s| s.casecmp(format)==0 }
|
|
16398
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff"
|
|
16399
|
+
end
|
|
16400
|
+
# verify the required parameter 'out_path' is set
|
|
16401
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
|
16402
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesApi.save_paragraph"
|
|
16403
|
+
end
|
|
16404
|
+
# resource path
|
|
16405
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/{format}'
|
|
16406
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
16407
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
16408
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
16409
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
|
|
16410
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
|
16411
|
+
|
|
16412
|
+
# query parameters
|
|
16413
|
+
query_params = {}
|
|
16414
|
+
query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil?
|
|
16415
|
+
query_params[:'scaleX'] = @api_client.prepare_for_query(scale_x) unless scale_x.nil?
|
|
16416
|
+
query_params[:'scaleY'] = @api_client.prepare_for_query(scale_y) unless scale_y.nil?
|
|
16417
|
+
query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
|
|
16418
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
16419
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
16420
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
|
16421
|
+
query_params[:'subShape'] = @api_client.prepare_for_query(sub_shape) unless sub_shape.nil?
|
|
16422
|
+
|
|
16423
|
+
# header parameters
|
|
16424
|
+
header_params = {}
|
|
16425
|
+
# HTTP header 'Accept' (if needed)
|
|
16426
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
16427
|
+
# HTTP header 'Content-Type'
|
|
16428
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
16429
|
+
header_params[:'password'] = password unless password.nil?
|
|
16430
|
+
|
|
16431
|
+
# http body (model)
|
|
16432
|
+
post_body = nil
|
|
16433
|
+
|
|
16434
|
+
# form parameters
|
|
16435
|
+
post_files = []
|
|
16436
|
+
|
|
16437
|
+
auth_names = ['JWT']
|
|
16438
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
16439
|
+
:header_params => header_params,
|
|
16440
|
+
:query_params => query_params,
|
|
16441
|
+
:body => post_body,
|
|
16442
|
+
:files => post_files,
|
|
16443
|
+
:auth_names => auth_names)
|
|
16444
|
+
return data, status_code, headers
|
|
16445
|
+
end
|
|
15919
16446
|
# Save a presentation to a specified format.
|
|
15920
16447
|
# @param name Document name.
|
|
15921
16448
|
# @param format Export format.
|
|
@@ -16512,6 +17039,127 @@ module AsposeSlidesCloud
|
|
|
16512
17039
|
:auth_names => auth_names)
|
|
16513
17040
|
return data, status_code, headers
|
|
16514
17041
|
end
|
|
17042
|
+
# Render table cell paragraph to specified picture format and save it to the storage.
|
|
17043
|
+
# @param name Document name.
|
|
17044
|
+
# @param slide_index Slide index.
|
|
17045
|
+
# @param shape_index Shape index.
|
|
17046
|
+
# @param row_index Row index.
|
|
17047
|
+
# @param cell_index Table cell index.
|
|
17048
|
+
# @param paragraph_index Paragraph index.
|
|
17049
|
+
# @param format Export picture format.
|
|
17050
|
+
# @param out_path Output path.
|
|
17051
|
+
# @param scale_x X scale ratio.
|
|
17052
|
+
# @param scale_y Y scale ratio.
|
|
17053
|
+
# @param quality Image quality (1 to 100); applies to JPEG only.
|
|
17054
|
+
# @param password Document password.
|
|
17055
|
+
# @param folder Document folder.
|
|
17056
|
+
# @param storage Document storage.
|
|
17057
|
+
# @param fonts_folder Fonts folder.
|
|
17058
|
+
def save_table_cell_paragraph(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, out_path, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
|
17059
|
+
save_table_cell_paragraph_with_http_info(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, out_path, scale_x, scale_y, quality, password, folder, storage, fonts_folder)
|
|
17060
|
+
nil
|
|
17061
|
+
end
|
|
17062
|
+
|
|
17063
|
+
# Render table cell paragraph to specified picture format and save it to the storage.
|
|
17064
|
+
# @param name Document name.
|
|
17065
|
+
# @param slide_index Slide index.
|
|
17066
|
+
# @param shape_index Shape index.
|
|
17067
|
+
# @param row_index Row index.
|
|
17068
|
+
# @param cell_index Table cell index.
|
|
17069
|
+
# @param paragraph_index Paragraph index.
|
|
17070
|
+
# @param format Export picture format.
|
|
17071
|
+
# @param out_path Output path.
|
|
17072
|
+
# @param scale_x X scale ratio.
|
|
17073
|
+
# @param scale_y Y scale ratio.
|
|
17074
|
+
# @param quality Image quality (1 to 100); applies to JPEG only.
|
|
17075
|
+
# @param password Document password.
|
|
17076
|
+
# @param folder Document folder.
|
|
17077
|
+
# @param storage Document storage.
|
|
17078
|
+
# @param fonts_folder Fonts folder.
|
|
17079
|
+
def save_table_cell_paragraph_with_http_info(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, out_path, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
|
17080
|
+
if @api_client.config.debugging
|
|
17081
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.save_table_cell_paragraph ...'
|
|
17082
|
+
end
|
|
17083
|
+
|
|
17084
|
+
# verify the required parameter 'name' is set
|
|
17085
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
17086
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.save_table_cell_paragraph"
|
|
17087
|
+
end
|
|
17088
|
+
# verify the required parameter 'slide_index' is set
|
|
17089
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
17090
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.save_table_cell_paragraph"
|
|
17091
|
+
end
|
|
17092
|
+
# verify the required parameter 'shape_index' is set
|
|
17093
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
|
17094
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.save_table_cell_paragraph"
|
|
17095
|
+
end
|
|
17096
|
+
# verify the required parameter 'row_index' is set
|
|
17097
|
+
if @api_client.config.client_side_validation && row_index.nil?
|
|
17098
|
+
fail ArgumentError, "Missing the required parameter 'row_index' when calling SlidesApi.save_table_cell_paragraph"
|
|
17099
|
+
end
|
|
17100
|
+
# verify the required parameter 'cell_index' is set
|
|
17101
|
+
if @api_client.config.client_side_validation && cell_index.nil?
|
|
17102
|
+
fail ArgumentError, "Missing the required parameter 'cell_index' when calling SlidesApi.save_table_cell_paragraph"
|
|
17103
|
+
end
|
|
17104
|
+
# verify the required parameter 'paragraph_index' is set
|
|
17105
|
+
if @api_client.config.client_side_validation && paragraph_index.nil?
|
|
17106
|
+
fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.save_table_cell_paragraph"
|
|
17107
|
+
end
|
|
17108
|
+
# verify the required parameter 'format' is set
|
|
17109
|
+
if @api_client.config.client_side_validation && format.nil?
|
|
17110
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_table_cell_paragraph"
|
|
17111
|
+
end
|
|
17112
|
+
# verify enum value
|
|
17113
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff'].any?{ |s| s.casecmp(format)==0 }
|
|
17114
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff"
|
|
17115
|
+
end
|
|
17116
|
+
# verify the required parameter 'out_path' is set
|
|
17117
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
|
17118
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesApi.save_table_cell_paragraph"
|
|
17119
|
+
end
|
|
17120
|
+
# resource path
|
|
17121
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/{format}'
|
|
17122
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
17123
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
17124
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
|
17125
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'rowIndex', row_index)
|
|
17126
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'cellIndex', cell_index)
|
|
17127
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
|
|
17128
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
|
17129
|
+
|
|
17130
|
+
# query parameters
|
|
17131
|
+
query_params = {}
|
|
17132
|
+
query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil?
|
|
17133
|
+
query_params[:'scaleX'] = @api_client.prepare_for_query(scale_x) unless scale_x.nil?
|
|
17134
|
+
query_params[:'scaleY'] = @api_client.prepare_for_query(scale_y) unless scale_y.nil?
|
|
17135
|
+
query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
|
|
17136
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
17137
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
17138
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
|
17139
|
+
|
|
17140
|
+
# header parameters
|
|
17141
|
+
header_params = {}
|
|
17142
|
+
# HTTP header 'Accept' (if needed)
|
|
17143
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
17144
|
+
# HTTP header 'Content-Type'
|
|
17145
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
17146
|
+
header_params[:'password'] = password unless password.nil?
|
|
17147
|
+
|
|
17148
|
+
# http body (model)
|
|
17149
|
+
post_body = nil
|
|
17150
|
+
|
|
17151
|
+
# form parameters
|
|
17152
|
+
post_files = []
|
|
17153
|
+
|
|
17154
|
+
auth_names = ['JWT']
|
|
17155
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
17156
|
+
:header_params => header_params,
|
|
17157
|
+
:query_params => query_params,
|
|
17158
|
+
:body => post_body,
|
|
17159
|
+
:files => post_files,
|
|
17160
|
+
:auth_names => auth_names)
|
|
17161
|
+
return data, status_code, headers
|
|
17162
|
+
end
|
|
16515
17163
|
# Set slide animation.
|
|
16516
17164
|
# @param name Document name.
|
|
16517
17165
|
# @param slide_index Slide index.
|