aspose_slides_cloud 21.12.1 → 22.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -40
- data/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +1 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +442 -30
- data/lib/aspose_slides_cloud/api_client.rb +1 -1
- data/lib/aspose_slides_cloud/configuration.rb +1 -1
- data/lib/aspose_slides_cloud/models/accent_element.rb +239 -0
- data/lib/aspose_slides_cloud/models/arc_to_path_segment.rb +279 -0
- data/lib/aspose_slides_cloud/models/array_element.rb +305 -0
- data/lib/aspose_slides_cloud/models/audio_frame.rb +26 -4
- data/lib/aspose_slides_cloud/models/bar_element.rb +251 -0
- data/lib/aspose_slides_cloud/models/block_element.rb +231 -0
- data/lib/aspose_slides_cloud/models/border_box_element.rb +309 -0
- data/lib/aspose_slides_cloud/models/box_element.rb +279 -0
- data/lib/aspose_slides_cloud/models/chart.rb +3 -1
- data/lib/aspose_slides_cloud/models/close_path_segment.rb +219 -0
- data/lib/aspose_slides_cloud/models/connector.rb +3 -1
- data/lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb +309 -0
- data/lib/aspose_slides_cloud/models/delimiter_element.rb +293 -0
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/fraction_element.rb +261 -0
- data/lib/aspose_slides_cloud/models/function_element.rb +239 -0
- data/lib/aspose_slides_cloud/models/geometry_path.rb +263 -0
- data/lib/aspose_slides_cloud/models/geometry_paths.rb +209 -0
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +3 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +230 -0
- data/lib/aspose_slides_cloud/models/graphical_object.rb +3 -1
- data/lib/aspose_slides_cloud/models/group_shape.rb +3 -1
- data/lib/aspose_slides_cloud/models/grouping_character_element.rb +283 -0
- data/lib/aspose_slides_cloud/models/hyperlink.rb +348 -0
- data/lib/aspose_slides_cloud/models/left_sub_superscript_element.rb +249 -0
- data/lib/aspose_slides_cloud/models/limit_element.rb +249 -0
- data/lib/aspose_slides_cloud/models/line_to_path_segment.rb +249 -0
- data/lib/aspose_slides_cloud/models/math_element.rb +240 -0
- data/lib/aspose_slides_cloud/models/math_paragraph.rb +253 -0
- data/lib/aspose_slides_cloud/models/matrix_element.rb +337 -0
- data/lib/aspose_slides_cloud/models/move_to_path_segment.rb +249 -0
- data/lib/aspose_slides_cloud/models/nary_operator_element.rb +311 -0
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +3 -1
- data/lib/aspose_slides_cloud/models/path_segment.rb +240 -0
- data/lib/aspose_slides_cloud/models/picture_frame.rb +3 -1
- data/lib/aspose_slides_cloud/models/portion.rb +32 -2
- data/lib/aspose_slides_cloud/models/quadratic_bezier_to_path_segment.rb +279 -0
- data/lib/aspose_slides_cloud/models/radical_element.rb +249 -0
- data/lib/aspose_slides_cloud/models/right_sub_superscript_element.rb +259 -0
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/shape.rb +3 -1
- data/lib/aspose_slides_cloud/models/shape_base.rb +21 -1
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/smart_art.rb +3 -1
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +3 -1
- data/lib/aspose_slides_cloud/models/subscript_element.rb +239 -0
- data/lib/aspose_slides_cloud/models/superscript_element.rb +239 -0
- data/lib/aspose_slides_cloud/models/table.rb +3 -1
- data/lib/aspose_slides_cloud/models/text_element.rb +229 -0
- data/lib/aspose_slides_cloud/models/video_frame.rb +5 -3
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +210 -0
- data/lib/aspose_slides_cloud/type_registry.rb +72 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +33 -0
- data/spec/api/slides_api_spec.rb +1203 -4
- data/spec/spec_utils.rb +7 -1
- data/testRules.json +9 -0
- metadata +39 -6
@@ -203,6 +203,94 @@ module AsposeSlidesCloud
|
|
203
203
|
:return_type => 'Shapes')
|
204
204
|
return data, status_code, headers
|
205
205
|
end
|
206
|
+
# Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or aligns them relative to each other (for group shapes only).
|
207
|
+
# @param name Document name.
|
208
|
+
# @param slide_index Slide index.
|
209
|
+
# @param path Shape path (for smart art and group shapes).
|
210
|
+
# @param alignment_type Alignment type that will be applied to the shapes.
|
211
|
+
# @param align_to_slide If true, shapes will be aligned relative to the slide edges.
|
212
|
+
# @param shapes Shapes indexes.
|
213
|
+
# @param password Document password.
|
214
|
+
# @param folder Document folder.
|
215
|
+
# @param storage Document storage.
|
216
|
+
def align_subshapes(name, slide_index, path, alignment_type, align_to_slide = nil, shapes = nil, password = nil, folder = nil, storage = nil)
|
217
|
+
data, _status_code, _headers = align_subshapes_with_http_info(name, slide_index, path, alignment_type, align_to_slide, shapes, password, folder, storage)
|
218
|
+
data
|
219
|
+
end
|
220
|
+
|
221
|
+
# Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or aligns them relative to each other (for group shapes only).
|
222
|
+
# @param name Document name.
|
223
|
+
# @param slide_index Slide index.
|
224
|
+
# @param path Shape path (for smart art and group shapes).
|
225
|
+
# @param alignment_type Alignment type that will be applied to the shapes.
|
226
|
+
# @param align_to_slide If true, shapes will be aligned relative to the slide edges.
|
227
|
+
# @param shapes Shapes indexes.
|
228
|
+
# @param password Document password.
|
229
|
+
# @param folder Document folder.
|
230
|
+
# @param storage Document storage.
|
231
|
+
def align_subshapes_with_http_info(name, slide_index, path, alignment_type, align_to_slide = nil, shapes = nil, password = nil, folder = nil, storage = nil)
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.align_subshapes ...'
|
234
|
+
end
|
235
|
+
|
236
|
+
# verify the required parameter 'name' is set
|
237
|
+
if @api_client.config.client_side_validation && name.nil?
|
238
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.align_subshapes"
|
239
|
+
end
|
240
|
+
# verify the required parameter 'slide_index' is set
|
241
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
242
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.align_subshapes"
|
243
|
+
end
|
244
|
+
# verify the required parameter 'path' is set
|
245
|
+
if @api_client.config.client_side_validation && path.nil?
|
246
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling SlidesApi.align_subshapes"
|
247
|
+
end
|
248
|
+
# verify the required parameter 'alignment_type' is set
|
249
|
+
if @api_client.config.client_side_validation && alignment_type.nil?
|
250
|
+
fail ArgumentError, "Missing the required parameter 'alignment_type' when calling SlidesApi.align_subshapes"
|
251
|
+
end
|
252
|
+
# verify enum value
|
253
|
+
if @api_client.config.client_side_validation && !['AlignLeft', 'AlignRight', 'AlignCenter', 'AlignTop', 'AlignMiddle', 'AlignBottom', 'DistributeHorizontally', 'DistributeVertically'].any?{ |s| s.casecmp(alignment_type)==0 }
|
254
|
+
fail ArgumentError, "Invalid value for parameter alignment_type: " + alignment_type + ". Must be one of AlignLeft, AlignRight, AlignCenter, AlignTop, AlignMiddle, AlignBottom, DistributeHorizontally, DistributeVertically"
|
255
|
+
end
|
256
|
+
# resource path
|
257
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{path}/align/{alignmentType}'
|
258
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
259
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
260
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'path', path)
|
261
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'alignmentType', alignment_type)
|
262
|
+
|
263
|
+
# query parameters
|
264
|
+
query_params = {}
|
265
|
+
query_params[:'alignToSlide'] = align_to_slide unless align_to_slide.nil?
|
266
|
+
query_params[:'shapes'] = shapes unless shapes.nil?
|
267
|
+
query_params[:'folder'] = folder unless folder.nil?
|
268
|
+
query_params[:'storage'] = storage unless storage.nil?
|
269
|
+
|
270
|
+
# header parameters
|
271
|
+
header_params = {}
|
272
|
+
# HTTP header 'Accept' (if needed)
|
273
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
274
|
+
# HTTP header 'Content-Type'
|
275
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
276
|
+
header_params[:'password'] = password unless password.nil?
|
277
|
+
|
278
|
+
# http body (model)
|
279
|
+
post_body = nil
|
280
|
+
|
281
|
+
# form parameters
|
282
|
+
post_files = []
|
283
|
+
|
284
|
+
auth_names = ['JWT']
|
285
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
286
|
+
:header_params => header_params,
|
287
|
+
:query_params => query_params,
|
288
|
+
:body => post_body,
|
289
|
+
:files => post_files,
|
290
|
+
:auth_names => auth_names,
|
291
|
+
:return_type => 'Shapes')
|
292
|
+
return data, status_code, headers
|
293
|
+
end
|
206
294
|
# Convert presentation from request content to format specified.
|
207
295
|
# @param document Document data.
|
208
296
|
# @param format Export format.
|
@@ -238,8 +326,8 @@ module AsposeSlidesCloud
|
|
238
326
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.convert"
|
239
327
|
end
|
240
328
|
# verify enum value
|
241
|
-
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
242
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp"
|
329
|
+
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
330
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml"
|
243
331
|
end
|
244
332
|
# resource path
|
245
333
|
local_var_path = '/slides/convert/{format}'
|
@@ -315,8 +403,8 @@ module AsposeSlidesCloud
|
|
315
403
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.convert_and_save"
|
316
404
|
end
|
317
405
|
# verify enum value
|
318
|
-
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
319
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp"
|
406
|
+
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
407
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml"
|
320
408
|
end
|
321
409
|
# verify the required parameter 'out_path' is set
|
322
410
|
if @api_client.config.client_side_validation && out_path.nil?
|
@@ -4545,7 +4633,7 @@ module AsposeSlidesCloud
|
|
4545
4633
|
# @param name Document name.
|
4546
4634
|
# @param slide_index Slide index.
|
4547
4635
|
# @param shape_index Shape index.
|
4548
|
-
# @param paragraphs The indices of the
|
4636
|
+
# @param paragraphs The indices of the paragraphs to be deleted; delete all by default.
|
4549
4637
|
# @param password Document password.
|
4550
4638
|
# @param folder Document folder.
|
4551
4639
|
# @param storage Document storage.
|
@@ -4558,7 +4646,7 @@ module AsposeSlidesCloud
|
|
4558
4646
|
# @param name Document name.
|
4559
4647
|
# @param slide_index Slide index.
|
4560
4648
|
# @param shape_index Shape index.
|
4561
|
-
# @param paragraphs The indices of the
|
4649
|
+
# @param paragraphs The indices of the paragraphs to be deleted; delete all by default.
|
4562
4650
|
# @param password Document password.
|
4563
4651
|
# @param folder Document folder.
|
4564
4652
|
# @param storage Document storage.
|
@@ -4705,7 +4793,7 @@ module AsposeSlidesCloud
|
|
4705
4793
|
# @param slide_index Slide index.
|
4706
4794
|
# @param shape_index Shape index.
|
4707
4795
|
# @param paragraph_index Paragraph index.
|
4708
|
-
# @param portions The indices of the
|
4796
|
+
# @param portions The indices of the portions to be deleted; delete all by default.
|
4709
4797
|
# @param password Document password.
|
4710
4798
|
# @param folder Document folder.
|
4711
4799
|
# @param storage Document storage.
|
@@ -4719,7 +4807,7 @@ module AsposeSlidesCloud
|
|
4719
4807
|
# @param slide_index Slide index.
|
4720
4808
|
# @param shape_index Shape index.
|
4721
4809
|
# @param paragraph_index Paragraph index.
|
4722
|
-
# @param portions The indices of the
|
4810
|
+
# @param portions The indices of the portions to be deleted; delete all by default.
|
4723
4811
|
# @param password Document password.
|
4724
4812
|
# @param folder Document folder.
|
4725
4813
|
# @param storage Document storage.
|
@@ -7149,7 +7237,7 @@ module AsposeSlidesCloud
|
|
7149
7237
|
# @param slide_index Slide index.
|
7150
7238
|
# @param path Shape path.
|
7151
7239
|
# @param shape_index Shape index.
|
7152
|
-
# @param paragraphs The indices of the
|
7240
|
+
# @param paragraphs The indices of the paragraphs to be deleted; delete all by default.
|
7153
7241
|
# @param password Document password.
|
7154
7242
|
# @param folder Document folder.
|
7155
7243
|
# @param storage Document storage.
|
@@ -7163,7 +7251,7 @@ module AsposeSlidesCloud
|
|
7163
7251
|
# @param slide_index Slide index.
|
7164
7252
|
# @param path Shape path.
|
7165
7253
|
# @param shape_index Shape index.
|
7166
|
-
# @param paragraphs The indices of the
|
7254
|
+
# @param paragraphs The indices of the paragraphs to be deleted; delete all by default.
|
7167
7255
|
# @param password Document password.
|
7168
7256
|
# @param folder Document folder.
|
7169
7257
|
# @param storage Document storage.
|
@@ -7323,7 +7411,7 @@ module AsposeSlidesCloud
|
|
7323
7411
|
# @param path Shape path.
|
7324
7412
|
# @param shape_index Shape index.
|
7325
7413
|
# @param paragraph_index Paragraph index.
|
7326
|
-
# @param portions The indices of the
|
7414
|
+
# @param portions The indices of the portions to be deleted; delete all by default.
|
7327
7415
|
# @param password Document password.
|
7328
7416
|
# @param folder Document folder.
|
7329
7417
|
# @param storage Document storage.
|
@@ -7338,7 +7426,7 @@ module AsposeSlidesCloud
|
|
7338
7426
|
# @param path Shape path.
|
7339
7427
|
# @param shape_index Shape index.
|
7340
7428
|
# @param paragraph_index Paragraph index.
|
7341
|
-
# @param portions The indices of the
|
7429
|
+
# @param portions The indices of the portions to be deleted; delete all by default.
|
7342
7430
|
# @param password Document password.
|
7343
7431
|
# @param folder Document folder.
|
7344
7432
|
# @param storage Document storage.
|
@@ -8324,6 +8412,91 @@ module AsposeSlidesCloud
|
|
8324
8412
|
:return_type => 'File')
|
8325
8413
|
return data, status_code, headers
|
8326
8414
|
end
|
8415
|
+
# Convert Mathematical Text to MathML Format
|
8416
|
+
# @param name Document name.
|
8417
|
+
# @param slide_index Slide index.
|
8418
|
+
# @param shape_index Shape index.
|
8419
|
+
# @param paragraph_index Paragraph index.
|
8420
|
+
# @param portion_index Portion index.
|
8421
|
+
# @param password Document password.
|
8422
|
+
# @param folder Document folder.
|
8423
|
+
# @param storage Document storage.
|
8424
|
+
def download_portion_as_math_ml(name, slide_index, shape_index, paragraph_index, portion_index, password = nil, folder = nil, storage = nil)
|
8425
|
+
data, _status_code, _headers = download_portion_as_math_ml_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, password, folder, storage)
|
8426
|
+
data
|
8427
|
+
end
|
8428
|
+
|
8429
|
+
# Convert Mathematical Text to MathML Format
|
8430
|
+
# @param name Document name.
|
8431
|
+
# @param slide_index Slide index.
|
8432
|
+
# @param shape_index Shape index.
|
8433
|
+
# @param paragraph_index Paragraph index.
|
8434
|
+
# @param portion_index Portion index.
|
8435
|
+
# @param password Document password.
|
8436
|
+
# @param folder Document folder.
|
8437
|
+
# @param storage Document storage.
|
8438
|
+
def download_portion_as_math_ml_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, password = nil, folder = nil, storage = nil)
|
8439
|
+
if @api_client.config.debugging
|
8440
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.download_portion_as_math_ml ...'
|
8441
|
+
end
|
8442
|
+
|
8443
|
+
# verify the required parameter 'name' is set
|
8444
|
+
if @api_client.config.client_side_validation && name.nil?
|
8445
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.download_portion_as_math_ml"
|
8446
|
+
end
|
8447
|
+
# verify the required parameter 'slide_index' is set
|
8448
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
8449
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.download_portion_as_math_ml"
|
8450
|
+
end
|
8451
|
+
# verify the required parameter 'shape_index' is set
|
8452
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
8453
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.download_portion_as_math_ml"
|
8454
|
+
end
|
8455
|
+
# verify the required parameter 'paragraph_index' is set
|
8456
|
+
if @api_client.config.client_side_validation && paragraph_index.nil?
|
8457
|
+
fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.download_portion_as_math_ml"
|
8458
|
+
end
|
8459
|
+
# verify the required parameter 'portion_index' is set
|
8460
|
+
if @api_client.config.client_side_validation && portion_index.nil?
|
8461
|
+
fail ArgumentError, "Missing the required parameter 'portion_index' when calling SlidesApi.download_portion_as_math_ml"
|
8462
|
+
end
|
8463
|
+
# resource path
|
8464
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml'
|
8465
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
8466
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
8467
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
8468
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
|
8469
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'portionIndex', portion_index)
|
8470
|
+
|
8471
|
+
# query parameters
|
8472
|
+
query_params = {}
|
8473
|
+
query_params[:'folder'] = folder unless folder.nil?
|
8474
|
+
query_params[:'storage'] = storage unless storage.nil?
|
8475
|
+
|
8476
|
+
# header parameters
|
8477
|
+
header_params = {}
|
8478
|
+
# HTTP header 'Accept' (if needed)
|
8479
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
8480
|
+
# HTTP header 'Content-Type'
|
8481
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
8482
|
+
header_params[:'password'] = password unless password.nil?
|
8483
|
+
|
8484
|
+
# http body (model)
|
8485
|
+
post_body = nil
|
8486
|
+
|
8487
|
+
# form parameters
|
8488
|
+
post_files = []
|
8489
|
+
|
8490
|
+
auth_names = ['JWT']
|
8491
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
8492
|
+
:header_params => header_params,
|
8493
|
+
:query_params => query_params,
|
8494
|
+
:body => post_body,
|
8495
|
+
:files => post_files,
|
8496
|
+
:auth_names => auth_names,
|
8497
|
+
:return_type => 'File')
|
8498
|
+
return data, status_code, headers
|
8499
|
+
end
|
8327
8500
|
# Save a presentation to a specified format.
|
8328
8501
|
# @param name Document name.
|
8329
8502
|
# @param format Export format.
|
@@ -8361,8 +8534,8 @@ module AsposeSlidesCloud
|
|
8361
8534
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_presentation"
|
8362
8535
|
end
|
8363
8536
|
# verify enum value
|
8364
|
-
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
8365
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp"
|
8537
|
+
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
8538
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml"
|
8366
8539
|
end
|
8367
8540
|
# resource path
|
8368
8541
|
local_var_path = '/slides/{name}/{format}'
|
@@ -8642,8 +8815,8 @@ module AsposeSlidesCloud
|
|
8642
8815
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_slide"
|
8643
8816
|
end
|
8644
8817
|
# verify enum value
|
8645
|
-
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
8646
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp"
|
8818
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
8819
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml"
|
8647
8820
|
end
|
8648
8821
|
# resource path
|
8649
8822
|
local_var_path = '/slides/{name}/slides/{slideIndex}/{format}'
|
@@ -8726,8 +8899,8 @@ module AsposeSlidesCloud
|
|
8726
8899
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_slide_online"
|
8727
8900
|
end
|
8728
8901
|
# verify enum value
|
8729
|
-
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
8730
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp"
|
8902
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
8903
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml"
|
8731
8904
|
end
|
8732
8905
|
# resource path
|
8733
8906
|
local_var_path = '/slides/slides/{slideIndex}/{format}'
|
@@ -10971,6 +11144,77 @@ module AsposeSlidesCloud
|
|
10971
11144
|
:return_type => 'ShapeBase')
|
10972
11145
|
return data, status_code, headers
|
10973
11146
|
end
|
11147
|
+
# Returns geometry path of the shape
|
11148
|
+
# @param name Document name.
|
11149
|
+
# @param slide_index Slide index.
|
11150
|
+
# @param shape_index Shape index.
|
11151
|
+
# @param password Document password.
|
11152
|
+
# @param folder Document folder.
|
11153
|
+
# @param storage Document storage.
|
11154
|
+
def get_shape_geometry_path(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
|
11155
|
+
data, _status_code, _headers = get_shape_geometry_path_with_http_info(name, slide_index, shape_index, password, folder, storage)
|
11156
|
+
data
|
11157
|
+
end
|
11158
|
+
|
11159
|
+
# Returns geometry path of the shape
|
11160
|
+
# @param name Document name.
|
11161
|
+
# @param slide_index Slide index.
|
11162
|
+
# @param shape_index Shape index.
|
11163
|
+
# @param password Document password.
|
11164
|
+
# @param folder Document folder.
|
11165
|
+
# @param storage Document storage.
|
11166
|
+
def get_shape_geometry_path_with_http_info(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
|
11167
|
+
if @api_client.config.debugging
|
11168
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.get_shape_geometry_path ...'
|
11169
|
+
end
|
11170
|
+
|
11171
|
+
# verify the required parameter 'name' is set
|
11172
|
+
if @api_client.config.client_side_validation && name.nil?
|
11173
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_shape_geometry_path"
|
11174
|
+
end
|
11175
|
+
# verify the required parameter 'slide_index' is set
|
11176
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
11177
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_shape_geometry_path"
|
11178
|
+
end
|
11179
|
+
# verify the required parameter 'shape_index' is set
|
11180
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
11181
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.get_shape_geometry_path"
|
11182
|
+
end
|
11183
|
+
# resource path
|
11184
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/geometryPath'
|
11185
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
11186
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
11187
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
11188
|
+
|
11189
|
+
# query parameters
|
11190
|
+
query_params = {}
|
11191
|
+
query_params[:'folder'] = folder unless folder.nil?
|
11192
|
+
query_params[:'storage'] = storage unless storage.nil?
|
11193
|
+
|
11194
|
+
# header parameters
|
11195
|
+
header_params = {}
|
11196
|
+
# HTTP header 'Accept' (if needed)
|
11197
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
11198
|
+
# HTTP header 'Content-Type'
|
11199
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
11200
|
+
header_params[:'password'] = password unless password.nil?
|
11201
|
+
|
11202
|
+
# http body (model)
|
11203
|
+
post_body = nil
|
11204
|
+
|
11205
|
+
# form parameters
|
11206
|
+
post_files = []
|
11207
|
+
|
11208
|
+
auth_names = ['JWT']
|
11209
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
11210
|
+
:header_params => header_params,
|
11211
|
+
:query_params => query_params,
|
11212
|
+
:body => post_body,
|
11213
|
+
:files => post_files,
|
11214
|
+
:auth_names => auth_names,
|
11215
|
+
:return_type => 'GeometryPaths')
|
11216
|
+
return data, status_code, headers
|
11217
|
+
end
|
10974
11218
|
# Read slide shapes info.
|
10975
11219
|
# @param name Document name.
|
10976
11220
|
# @param slide_index Slide index.
|
@@ -14446,6 +14690,97 @@ module AsposeSlidesCloud
|
|
14446
14690
|
:return_type => 'File')
|
14447
14691
|
return data, status_code, headers
|
14448
14692
|
end
|
14693
|
+
# Convert Mathematical Text to MathML Format and saves result to the storage
|
14694
|
+
# @param name Document name.
|
14695
|
+
# @param slide_index Slide index.
|
14696
|
+
# @param shape_index Shape index.
|
14697
|
+
# @param paragraph_index Paragraph index.
|
14698
|
+
# @param portion_index Portion index.
|
14699
|
+
# @param out_path Path to save result.
|
14700
|
+
# @param password Document password.
|
14701
|
+
# @param folder Presentation folder.
|
14702
|
+
# @param storage Presentation storage.
|
14703
|
+
def save_portion_as_math_ml(name, slide_index, shape_index, paragraph_index, portion_index, out_path, password = nil, folder = nil, storage = nil)
|
14704
|
+
save_portion_as_math_ml_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, out_path, password, folder, storage)
|
14705
|
+
nil
|
14706
|
+
end
|
14707
|
+
|
14708
|
+
# Convert Mathematical Text to MathML Format and saves result to the storage
|
14709
|
+
# @param name Document name.
|
14710
|
+
# @param slide_index Slide index.
|
14711
|
+
# @param shape_index Shape index.
|
14712
|
+
# @param paragraph_index Paragraph index.
|
14713
|
+
# @param portion_index Portion index.
|
14714
|
+
# @param out_path Path to save result.
|
14715
|
+
# @param password Document password.
|
14716
|
+
# @param folder Presentation folder.
|
14717
|
+
# @param storage Presentation storage.
|
14718
|
+
def save_portion_as_math_ml_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, out_path, password = nil, folder = nil, storage = nil)
|
14719
|
+
if @api_client.config.debugging
|
14720
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.save_portion_as_math_ml ...'
|
14721
|
+
end
|
14722
|
+
|
14723
|
+
# verify the required parameter 'name' is set
|
14724
|
+
if @api_client.config.client_side_validation && name.nil?
|
14725
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.save_portion_as_math_ml"
|
14726
|
+
end
|
14727
|
+
# verify the required parameter 'slide_index' is set
|
14728
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
14729
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.save_portion_as_math_ml"
|
14730
|
+
end
|
14731
|
+
# verify the required parameter 'shape_index' is set
|
14732
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
14733
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.save_portion_as_math_ml"
|
14734
|
+
end
|
14735
|
+
# verify the required parameter 'paragraph_index' is set
|
14736
|
+
if @api_client.config.client_side_validation && paragraph_index.nil?
|
14737
|
+
fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.save_portion_as_math_ml"
|
14738
|
+
end
|
14739
|
+
# verify the required parameter 'portion_index' is set
|
14740
|
+
if @api_client.config.client_side_validation && portion_index.nil?
|
14741
|
+
fail ArgumentError, "Missing the required parameter 'portion_index' when calling SlidesApi.save_portion_as_math_ml"
|
14742
|
+
end
|
14743
|
+
# verify the required parameter 'out_path' is set
|
14744
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
14745
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesApi.save_portion_as_math_ml"
|
14746
|
+
end
|
14747
|
+
# resource path
|
14748
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml'
|
14749
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
14750
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
14751
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
14752
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
|
14753
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'portionIndex', portion_index)
|
14754
|
+
|
14755
|
+
# query parameters
|
14756
|
+
query_params = {}
|
14757
|
+
query_params[:'outPath'] = out_path unless out_path.nil?
|
14758
|
+
query_params[:'folder'] = folder unless folder.nil?
|
14759
|
+
query_params[:'storage'] = storage unless storage.nil?
|
14760
|
+
|
14761
|
+
# header parameters
|
14762
|
+
header_params = {}
|
14763
|
+
# HTTP header 'Accept' (if needed)
|
14764
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
14765
|
+
# HTTP header 'Content-Type'
|
14766
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
14767
|
+
header_params[:'password'] = password unless password.nil?
|
14768
|
+
|
14769
|
+
# http body (model)
|
14770
|
+
post_body = nil
|
14771
|
+
|
14772
|
+
# form parameters
|
14773
|
+
post_files = []
|
14774
|
+
|
14775
|
+
auth_names = ['JWT']
|
14776
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
14777
|
+
:header_params => header_params,
|
14778
|
+
:query_params => query_params,
|
14779
|
+
:body => post_body,
|
14780
|
+
:files => post_files,
|
14781
|
+
:auth_names => auth_names)
|
14782
|
+
return data, status_code, headers
|
14783
|
+
end
|
14449
14784
|
# Save a presentation to a specified format.
|
14450
14785
|
# @param name Document name.
|
14451
14786
|
# @param format Export format.
|
@@ -14485,8 +14820,8 @@ module AsposeSlidesCloud
|
|
14485
14820
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_presentation"
|
14486
14821
|
end
|
14487
14822
|
# verify enum value
|
14488
|
-
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
14489
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp"
|
14823
|
+
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
14824
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml"
|
14490
14825
|
end
|
14491
14826
|
# verify the required parameter 'out_path' is set
|
14492
14827
|
if @api_client.config.client_side_validation && out_path.nil?
|
@@ -14784,8 +15119,8 @@ module AsposeSlidesCloud
|
|
14784
15119
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_slide"
|
14785
15120
|
end
|
14786
15121
|
# verify enum value
|
14787
|
-
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
14788
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp"
|
15122
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
15123
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml"
|
14789
15124
|
end
|
14790
15125
|
# verify the required parameter 'out_path' is set
|
14791
15126
|
if @api_client.config.client_side_validation && out_path.nil?
|
@@ -14874,8 +15209,8 @@ module AsposeSlidesCloud
|
|
14874
15209
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_slide_online"
|
14875
15210
|
end
|
14876
15211
|
# verify enum value
|
14877
|
-
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
14878
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp"
|
15212
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
15213
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml"
|
14879
15214
|
end
|
14880
15215
|
# verify the required parameter 'out_path' is set
|
14881
15216
|
if @api_client.config.client_side_validation && out_path.nil?
|
@@ -15933,6 +16268,83 @@ module AsposeSlidesCloud
|
|
15933
16268
|
:return_type => 'Sections')
|
15934
16269
|
return data, status_code, headers
|
15935
16270
|
end
|
16271
|
+
# Sets geometry path to the shape
|
16272
|
+
# @param name Document name.
|
16273
|
+
# @param slide_index Slide index.
|
16274
|
+
# @param shape_index Shape index.
|
16275
|
+
# @param dto Geometry paths DTO.
|
16276
|
+
# @param password Document password.
|
16277
|
+
# @param folder Document folder.
|
16278
|
+
# @param storage Document storage.
|
16279
|
+
def set_shape_geometry_path(name, slide_index, shape_index, dto, password = nil, folder = nil, storage = nil)
|
16280
|
+
data, _status_code, _headers = set_shape_geometry_path_with_http_info(name, slide_index, shape_index, dto, password, folder, storage)
|
16281
|
+
data
|
16282
|
+
end
|
16283
|
+
|
16284
|
+
# Sets geometry path to the shape
|
16285
|
+
# @param name Document name.
|
16286
|
+
# @param slide_index Slide index.
|
16287
|
+
# @param shape_index Shape index.
|
16288
|
+
# @param dto Geometry paths DTO.
|
16289
|
+
# @param password Document password.
|
16290
|
+
# @param folder Document folder.
|
16291
|
+
# @param storage Document storage.
|
16292
|
+
def set_shape_geometry_path_with_http_info(name, slide_index, shape_index, dto, password = nil, folder = nil, storage = nil)
|
16293
|
+
if @api_client.config.debugging
|
16294
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.set_shape_geometry_path ...'
|
16295
|
+
end
|
16296
|
+
|
16297
|
+
# verify the required parameter 'name' is set
|
16298
|
+
if @api_client.config.client_side_validation && name.nil?
|
16299
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.set_shape_geometry_path"
|
16300
|
+
end
|
16301
|
+
# verify the required parameter 'slide_index' is set
|
16302
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
16303
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.set_shape_geometry_path"
|
16304
|
+
end
|
16305
|
+
# verify the required parameter 'shape_index' is set
|
16306
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
16307
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.set_shape_geometry_path"
|
16308
|
+
end
|
16309
|
+
# verify the required parameter 'dto' is set
|
16310
|
+
if @api_client.config.client_side_validation && dto.nil?
|
16311
|
+
fail ArgumentError, "Missing the required parameter 'dto' when calling SlidesApi.set_shape_geometry_path"
|
16312
|
+
end
|
16313
|
+
# resource path
|
16314
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/geometryPath'
|
16315
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
16316
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
16317
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
16318
|
+
|
16319
|
+
# query parameters
|
16320
|
+
query_params = {}
|
16321
|
+
query_params[:'folder'] = folder unless folder.nil?
|
16322
|
+
query_params[:'storage'] = storage unless storage.nil?
|
16323
|
+
|
16324
|
+
# header parameters
|
16325
|
+
header_params = {}
|
16326
|
+
# HTTP header 'Accept' (if needed)
|
16327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
16328
|
+
# HTTP header 'Content-Type'
|
16329
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
16330
|
+
header_params[:'password'] = password unless password.nil?
|
16331
|
+
|
16332
|
+
# http body (model)
|
16333
|
+
post_body = @api_client.object_to_http_body(dto)
|
16334
|
+
|
16335
|
+
# form parameters
|
16336
|
+
post_files = []
|
16337
|
+
|
16338
|
+
auth_names = ['JWT']
|
16339
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
16340
|
+
:header_params => header_params,
|
16341
|
+
:query_params => query_params,
|
16342
|
+
:body => post_body,
|
16343
|
+
:files => post_files,
|
16344
|
+
:auth_names => auth_names,
|
16345
|
+
:return_type => 'ShapeBase')
|
16346
|
+
return data, status_code, headers
|
16347
|
+
end
|
15936
16348
|
# Set footer the slide.
|
15937
16349
|
# @param name Document name.
|
15938
16350
|
# @param slide_index The position of the slide to be reordered.
|
@@ -16250,8 +16662,8 @@ module AsposeSlidesCloud
|
|
16250
16662
|
if @api_client.config.client_side_validation && name.nil?
|
16251
16663
|
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.split"
|
16252
16664
|
end
|
16253
|
-
if @api_client.config.client_side_validation && format && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
16254
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp"
|
16665
|
+
if @api_client.config.client_side_validation && format && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
16666
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml"
|
16255
16667
|
end
|
16256
16668
|
# resource path
|
16257
16669
|
local_var_path = '/slides/{name}/split'
|
@@ -16334,8 +16746,8 @@ module AsposeSlidesCloud
|
|
16334
16746
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.split_and_save_online"
|
16335
16747
|
end
|
16336
16748
|
# verify enum value
|
16337
|
-
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
16338
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp"
|
16749
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
16750
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml"
|
16339
16751
|
end
|
16340
16752
|
# resource path
|
16341
16753
|
local_var_path = '/slides/split/{format}'
|
@@ -16417,8 +16829,8 @@ module AsposeSlidesCloud
|
|
16417
16829
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.split_online"
|
16418
16830
|
end
|
16419
16831
|
# verify enum value
|
16420
|
-
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp'].any?{ |s| s.casecmp(format)==0 }
|
16421
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp"
|
16832
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml'].any?{ |s| s.casecmp(format)==0 }
|
16833
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml"
|
16422
16834
|
end
|
16423
16835
|
# resource path
|
16424
16836
|
local_var_path = '/slides/split/{format}'
|