aspose_slides_cloud 24.12.0 → 25.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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +21 -19
  3. data/README.md +15 -71
  4. data/TestData/video.pptx +0 -0
  5. data/lib/aspose_slides_cloud/api/slides_api.rb +448 -195
  6. data/lib/aspose_slides_cloud/api/slides_async_api.rb +12 -12
  7. data/lib/aspose_slides_cloud/models/audio_frame.rb +51 -1
  8. data/lib/aspose_slides_cloud/models/caption_track.rb +116 -0
  9. data/lib/aspose_slides_cloud/models/caption_tracks.rb +93 -0
  10. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  11. data/lib/aspose_slides_cloud/models/export_options.rb +11 -1
  12. data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
  13. data/lib/aspose_slides_cloud/models/html5_export_options.rb +19 -8
  14. data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -2
  15. data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
  16. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
  17. data/lib/aspose_slides_cloud/models/markdown_export_options.rb +45 -2
  18. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -1
  19. data/lib/aspose_slides_cloud/models/picture_fill.rb +21 -1
  20. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -2
  21. data/lib/aspose_slides_cloud/models/save.rb +2 -2
  22. data/lib/aspose_slides_cloud/models/save_shape.rb +2 -2
  23. data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
  24. data/lib/aspose_slides_cloud/models/shape_export_format.rb +1 -0
  25. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  26. data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -2
  27. data/lib/aspose_slides_cloud/models/swf_export_options.rb +9 -72
  28. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
  29. data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
  30. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
  31. data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
  32. data/lib/aspose_slides_cloud/type_registry.rb +4 -0
  33. data/lib/aspose_slides_cloud/version.rb +1 -1
  34. data/lib/aspose_slides_cloud.rb +2 -0
  35. data/spec/api/slides_api_spec.rb +1424 -439
  36. data/spec/use_cases/font_spec.rb +22 -4
  37. data/spec/use_cases/image_spec.rb +5 -1
  38. data/spec/use_cases/merge_spec.rb +1 -1
  39. data/testRules.json +12 -1
  40. metadata +5 -2
@@ -429,8 +429,8 @@ module AsposeSlidesCloud
429
429
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.convert"
430
430
  end
431
431
  # verify enum value
432
- 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', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
433
- 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, Mpeg4, Md, Xml"
432
+ 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', 'Mpeg4', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
433
+ 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, Mpeg4, Md, Xml, Emf"
434
434
  end
435
435
  # resource path
436
436
  local_var_path = '/slides/convert/{format}'
@@ -506,8 +506,8 @@ module AsposeSlidesCloud
506
506
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.convert_and_save"
507
507
  end
508
508
  # verify enum value
509
- 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', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
510
- 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, Mpeg4, Md, Xml"
509
+ 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', 'Mpeg4', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
510
+ 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, Mpeg4, Md, Xml, Emf"
511
511
  end
512
512
  # verify the required parameter 'out_path' is set
513
513
  if @api_client.config.client_side_validation && out_path.nil?
@@ -1123,6 +1123,86 @@ module AsposeSlidesCloud
1123
1123
  :return_type => 'SlideAnimation')
1124
1124
  return data, status_code, headers
1125
1125
  end
1126
+ # Create video/audio captions track.
1127
+ # @param name Document name.
1128
+ # @param slide_index Slide index.
1129
+ # @param shape_index Shape index (must refer to a video or audio frame).
1130
+ # @param label Caption track label.
1131
+ # @param data Caption track data.
1132
+ # @param password Document password.
1133
+ # @param folder Document folder.
1134
+ # @param storage Presentation storage.
1135
+ def create_caption_track(name, slide_index, shape_index, label, data = nil, password = nil, folder = nil, storage = nil)
1136
+ data, _status_code, _headers = create_caption_track_with_http_info(name, slide_index, shape_index, label, data, password, folder, storage)
1137
+ data
1138
+ end
1139
+
1140
+ # Create video/audio captions track.
1141
+ # @param name Document name.
1142
+ # @param slide_index Slide index.
1143
+ # @param shape_index Shape index (must refer to a video or audio frame).
1144
+ # @param label Caption track label.
1145
+ # @param data Caption track data.
1146
+ # @param password Document password.
1147
+ # @param folder Document folder.
1148
+ # @param storage Presentation storage.
1149
+ def create_caption_track_with_http_info(name, slide_index, shape_index, label, data = nil, password = nil, folder = nil, storage = nil)
1150
+ if @api_client.config.debugging
1151
+ @api_client.config.logger.debug 'Calling API: SlidesApi.create_caption_track ...'
1152
+ end
1153
+
1154
+ # verify the required parameter 'name' is set
1155
+ if @api_client.config.client_side_validation && name.nil?
1156
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.create_caption_track"
1157
+ end
1158
+ # verify the required parameter 'slide_index' is set
1159
+ if @api_client.config.client_side_validation && slide_index.nil?
1160
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.create_caption_track"
1161
+ end
1162
+ # verify the required parameter 'shape_index' is set
1163
+ if @api_client.config.client_side_validation && shape_index.nil?
1164
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.create_caption_track"
1165
+ end
1166
+ # verify the required parameter 'label' is set
1167
+ if @api_client.config.client_side_validation && label.nil?
1168
+ fail ArgumentError, "Missing the required parameter 'label' when calling SlidesApi.create_caption_track"
1169
+ end
1170
+ # resource path
1171
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks'
1172
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
1173
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
1174
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
1175
+
1176
+ # query parameters
1177
+ query_params = {}
1178
+ query_params[:'label'] = @api_client.prepare_for_query(label) unless label.nil?
1179
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
1180
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
1181
+
1182
+ # header parameters
1183
+ header_params = {}
1184
+ # HTTP header 'Accept' (if needed)
1185
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1186
+ # HTTP header 'Content-Type'
1187
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1188
+ header_params[:'password'] = password unless password.nil?
1189
+
1190
+ # http body (model)
1191
+ post_body = @api_client.object_to_http_body(data)
1192
+
1193
+ # form parameters
1194
+ post_files = []
1195
+
1196
+ auth_names = ['JWT']
1197
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1198
+ :header_params => header_params,
1199
+ :query_params => query_params,
1200
+ :body => post_body,
1201
+ :files => post_files,
1202
+ :auth_names => auth_names,
1203
+ :return_type => 'CaptionTrack')
1204
+ return data, status_code, headers
1205
+ end
1126
1206
  # Add a new category to a chart.
1127
1207
  # @param name Document name.
1128
1208
  # @param slide_index Slide index.
@@ -3894,6 +3974,153 @@ module AsposeSlidesCloud
3894
3974
  :return_type => 'SlideBackground')
3895
3975
  return data, status_code, headers
3896
3976
  end
3977
+ # Delete video/audio captions track.
3978
+ # @param name Document name.
3979
+ # @param slide_index Slide index.
3980
+ # @param shape_index Shape index (must refer to a video or audio frame).
3981
+ # @param captions_index Captions track index.
3982
+ # @param password Document password.
3983
+ # @param folder Document folder.
3984
+ # @param storage Presentation storage.
3985
+ def delete_caption_track(name, slide_index, shape_index, captions_index, password = nil, folder = nil, storage = nil)
3986
+ delete_caption_track_with_http_info(name, slide_index, shape_index, captions_index, password, folder, storage)
3987
+ nil
3988
+ end
3989
+
3990
+ # Delete video/audio captions track.
3991
+ # @param name Document name.
3992
+ # @param slide_index Slide index.
3993
+ # @param shape_index Shape index (must refer to a video or audio frame).
3994
+ # @param captions_index Captions track index.
3995
+ # @param password Document password.
3996
+ # @param folder Document folder.
3997
+ # @param storage Presentation storage.
3998
+ def delete_caption_track_with_http_info(name, slide_index, shape_index, captions_index, password = nil, folder = nil, storage = nil)
3999
+ if @api_client.config.debugging
4000
+ @api_client.config.logger.debug 'Calling API: SlidesApi.delete_caption_track ...'
4001
+ end
4002
+
4003
+ # verify the required parameter 'name' is set
4004
+ if @api_client.config.client_side_validation && name.nil?
4005
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_caption_track"
4006
+ end
4007
+ # verify the required parameter 'slide_index' is set
4008
+ if @api_client.config.client_side_validation && slide_index.nil?
4009
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.delete_caption_track"
4010
+ end
4011
+ # verify the required parameter 'shape_index' is set
4012
+ if @api_client.config.client_side_validation && shape_index.nil?
4013
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.delete_caption_track"
4014
+ end
4015
+ # verify the required parameter 'captions_index' is set
4016
+ if @api_client.config.client_side_validation && captions_index.nil?
4017
+ fail ArgumentError, "Missing the required parameter 'captions_index' when calling SlidesApi.delete_caption_track"
4018
+ end
4019
+ # resource path
4020
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks/{captionsIndex}'
4021
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
4022
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
4023
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
4024
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'captionsIndex', captions_index)
4025
+
4026
+ # query parameters
4027
+ query_params = {}
4028
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
4029
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
4030
+
4031
+ # header parameters
4032
+ header_params = {}
4033
+ # HTTP header 'Accept' (if needed)
4034
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4035
+ # HTTP header 'Content-Type'
4036
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4037
+ header_params[:'password'] = password unless password.nil?
4038
+
4039
+ # http body (model)
4040
+ post_body = nil
4041
+
4042
+ # form parameters
4043
+ post_files = []
4044
+
4045
+ auth_names = ['JWT']
4046
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
4047
+ :header_params => header_params,
4048
+ :query_params => query_params,
4049
+ :body => post_body,
4050
+ :files => post_files,
4051
+ :auth_names => auth_names)
4052
+ return data, status_code, headers
4053
+ end
4054
+ # Delete all video/audio captions tracks.
4055
+ # @param name Document name.
4056
+ # @param slide_index Slide index.
4057
+ # @param shape_index Shape index (must refer to a video frame).
4058
+ # @param password Document password.
4059
+ # @param folder Document folder.
4060
+ # @param storage Presentation storage.
4061
+ def delete_caption_tracks(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
4062
+ delete_caption_tracks_with_http_info(name, slide_index, shape_index, password, folder, storage)
4063
+ nil
4064
+ end
4065
+
4066
+ # Delete all video/audio captions tracks.
4067
+ # @param name Document name.
4068
+ # @param slide_index Slide index.
4069
+ # @param shape_index Shape index (must refer to a video frame).
4070
+ # @param password Document password.
4071
+ # @param folder Document folder.
4072
+ # @param storage Presentation storage.
4073
+ def delete_caption_tracks_with_http_info(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
4074
+ if @api_client.config.debugging
4075
+ @api_client.config.logger.debug 'Calling API: SlidesApi.delete_caption_tracks ...'
4076
+ end
4077
+
4078
+ # verify the required parameter 'name' is set
4079
+ if @api_client.config.client_side_validation && name.nil?
4080
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_caption_tracks"
4081
+ end
4082
+ # verify the required parameter 'slide_index' is set
4083
+ if @api_client.config.client_side_validation && slide_index.nil?
4084
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.delete_caption_tracks"
4085
+ end
4086
+ # verify the required parameter 'shape_index' is set
4087
+ if @api_client.config.client_side_validation && shape_index.nil?
4088
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.delete_caption_tracks"
4089
+ end
4090
+ # resource path
4091
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks'
4092
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
4093
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
4094
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
4095
+
4096
+ # query parameters
4097
+ query_params = {}
4098
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
4099
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
4100
+
4101
+ # header parameters
4102
+ header_params = {}
4103
+ # HTTP header 'Accept' (if needed)
4104
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4105
+ # HTTP header 'Content-Type'
4106
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4107
+ header_params[:'password'] = password unless password.nil?
4108
+
4109
+ # http body (model)
4110
+ post_body = nil
4111
+
4112
+ # form parameters
4113
+ post_files = []
4114
+
4115
+ auth_names = ['JWT']
4116
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
4117
+ :header_params => header_params,
4118
+ :query_params => query_params,
4119
+ :body => post_body,
4120
+ :files => post_files,
4121
+ :auth_names => auth_names)
4122
+ return data, status_code, headers
4123
+ end
3897
4124
  # Delete a category from a chart.
3898
4125
  # @param name Document name.
3899
4126
  # @param slide_index Slide index.
@@ -4823,76 +5050,6 @@ module AsposeSlidesCloud
4823
5050
  :return_type => 'Paragraphs')
4824
5051
  return data, status_code, headers
4825
5052
  end
4826
- # Deletes cropped areas of a pictire.
4827
- # @param name Document name.
4828
- # @param slide_index Slide index.
4829
- # @param shape_index Shape index (must refer to a picture frame).
4830
- # @param password Document password.
4831
- # @param folder Document folder.
4832
- # @param storage Presentation storage.
4833
- def delete_picture_cropped_areas(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
4834
- delete_picture_cropped_areas_with_http_info(name, slide_index, shape_index, password, folder, storage)
4835
- nil
4836
- end
4837
-
4838
- # Deletes cropped areas of a pictire.
4839
- # @param name Document name.
4840
- # @param slide_index Slide index.
4841
- # @param shape_index Shape index (must refer to a picture frame).
4842
- # @param password Document password.
4843
- # @param folder Document folder.
4844
- # @param storage Presentation storage.
4845
- def delete_picture_cropped_areas_with_http_info(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
4846
- if @api_client.config.debugging
4847
- @api_client.config.logger.debug 'Calling API: SlidesApi.delete_picture_cropped_areas ...'
4848
- end
4849
-
4850
- # verify the required parameter 'name' is set
4851
- if @api_client.config.client_side_validation && name.nil?
4852
- fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_picture_cropped_areas"
4853
- end
4854
- # verify the required parameter 'slide_index' is set
4855
- if @api_client.config.client_side_validation && slide_index.nil?
4856
- fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.delete_picture_cropped_areas"
4857
- end
4858
- # verify the required parameter 'shape_index' is set
4859
- if @api_client.config.client_side_validation && shape_index.nil?
4860
- fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.delete_picture_cropped_areas"
4861
- end
4862
- # resource path
4863
- local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/pictureCroppedAreas'
4864
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
4865
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
4866
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
4867
-
4868
- # query parameters
4869
- query_params = {}
4870
- query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
4871
- query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
4872
-
4873
- # header parameters
4874
- header_params = {}
4875
- # HTTP header 'Accept' (if needed)
4876
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4877
- # HTTP header 'Content-Type'
4878
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4879
- header_params[:'password'] = password unless password.nil?
4880
-
4881
- # http body (model)
4882
- post_body = nil
4883
-
4884
- # form parameters
4885
- post_files = []
4886
-
4887
- auth_names = ['JWT']
4888
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
4889
- :header_params => header_params,
4890
- :query_params => query_params,
4891
- :body => post_body,
4892
- :files => post_files,
4893
- :auth_names => auth_names)
4894
- return data, status_code, headers
4895
- end
4896
5053
  # Remove a portion.
4897
5054
  # @param name Document name.
4898
5055
  # @param slide_index Slide index.
@@ -7540,8 +7697,9 @@ module AsposeSlidesCloud
7540
7697
  # @param password Document password.
7541
7698
  # @param folder Document folder.
7542
7699
  # @param storage Document storage.
7543
- def download_image(name, index, format, password = nil, folder = nil, storage = nil)
7544
- data, _status_code, _headers = download_image_with_http_info(name, index, format, password, folder, storage)
7700
+ # @param quality Image quality (0 to 100; has effect only on Jpeg format).
7701
+ def download_image(name, index, format, password = nil, folder = nil, storage = nil, quality = nil)
7702
+ data, _status_code, _headers = download_image_with_http_info(name, index, format, password, folder, storage, quality)
7545
7703
  data
7546
7704
  end
7547
7705
 
@@ -7552,7 +7710,8 @@ module AsposeSlidesCloud
7552
7710
  # @param password Document password.
7553
7711
  # @param folder Document folder.
7554
7712
  # @param storage Document storage.
7555
- def download_image_with_http_info(name, index, format, password = nil, folder = nil, storage = nil)
7713
+ # @param quality Image quality (0 to 100; has effect only on Jpeg format).
7714
+ def download_image_with_http_info(name, index, format, password = nil, folder = nil, storage = nil, quality = nil)
7556
7715
  if @api_client.config.debugging
7557
7716
  @api_client.config.logger.debug 'Calling API: SlidesApi.download_image ...'
7558
7717
  end
@@ -7583,6 +7742,7 @@ module AsposeSlidesCloud
7583
7742
  query_params = {}
7584
7743
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
7585
7744
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
7745
+ query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
7586
7746
 
7587
7747
  # header parameters
7588
7748
  header_params = {}
@@ -7737,8 +7897,9 @@ module AsposeSlidesCloud
7737
7897
  # @param index Image index.
7738
7898
  # @param format Export format (png, jpg, gif).
7739
7899
  # @param password Document password.
7740
- def download_image_online(document, index, format, password = nil)
7741
- data, _status_code, _headers = download_image_online_with_http_info(document, index, format, password)
7900
+ # @param quality Image quality (0 to 100; has effect only on Jpeg format).
7901
+ def download_image_online(document, index, format, password = nil, quality = nil)
7902
+ data, _status_code, _headers = download_image_online_with_http_info(document, index, format, password, quality)
7742
7903
  data
7743
7904
  end
7744
7905
 
@@ -7747,7 +7908,8 @@ module AsposeSlidesCloud
7747
7908
  # @param index Image index.
7748
7909
  # @param format Export format (png, jpg, gif).
7749
7910
  # @param password Document password.
7750
- def download_image_online_with_http_info(document, index, format, password = nil)
7911
+ # @param quality Image quality (0 to 100; has effect only on Jpeg format).
7912
+ def download_image_online_with_http_info(document, index, format, password = nil, quality = nil)
7751
7913
  if @api_client.config.debugging
7752
7914
  @api_client.config.logger.debug 'Calling API: SlidesApi.download_image_online ...'
7753
7915
  end
@@ -7775,6 +7937,7 @@ module AsposeSlidesCloud
7775
7937
 
7776
7938
  # query parameters
7777
7939
  query_params = {}
7940
+ query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
7778
7941
 
7779
7942
  # header parameters
7780
7943
  header_params = {}
@@ -7809,8 +7972,9 @@ module AsposeSlidesCloud
7809
7972
  # @param password Document password.
7810
7973
  # @param folder Document folder.
7811
7974
  # @param storage Document storage.
7812
- def download_images(name, format, password = nil, folder = nil, storage = nil)
7813
- data, _status_code, _headers = download_images_with_http_info(name, format, password, folder, storage)
7975
+ # @param quality Image quality (0 to 100; has effect only on Jpeg format).
7976
+ def download_images(name, format, password = nil, folder = nil, storage = nil, quality = nil)
7977
+ data, _status_code, _headers = download_images_with_http_info(name, format, password, folder, storage, quality)
7814
7978
  data
7815
7979
  end
7816
7980
 
@@ -7820,7 +7984,8 @@ module AsposeSlidesCloud
7820
7984
  # @param password Document password.
7821
7985
  # @param folder Document folder.
7822
7986
  # @param storage Document storage.
7823
- def download_images_with_http_info(name, format, password = nil, folder = nil, storage = nil)
7987
+ # @param quality Image quality (0 to 100; has effect only on Jpeg format).
7988
+ def download_images_with_http_info(name, format, password = nil, folder = nil, storage = nil, quality = nil)
7824
7989
  if @api_client.config.debugging
7825
7990
  @api_client.config.logger.debug 'Calling API: SlidesApi.download_images ...'
7826
7991
  end
@@ -7846,6 +8011,7 @@ module AsposeSlidesCloud
7846
8011
  query_params = {}
7847
8012
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
7848
8013
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
8014
+ query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
7849
8015
 
7850
8016
  # header parameters
7851
8017
  header_params = {}
@@ -7985,8 +8151,9 @@ module AsposeSlidesCloud
7985
8151
  # @param document Document data.
7986
8152
  # @param format Export format (png, jpg, gif).
7987
8153
  # @param password Document password.
7988
- def download_images_online(document, format, password = nil)
7989
- data, _status_code, _headers = download_images_online_with_http_info(document, format, password)
8154
+ # @param quality Image quality (0 to 100; has effect only on Jpeg format).
8155
+ def download_images_online(document, format, password = nil, quality = nil)
8156
+ data, _status_code, _headers = download_images_online_with_http_info(document, format, password, quality)
7990
8157
  data
7991
8158
  end
7992
8159
 
@@ -7994,7 +8161,8 @@ module AsposeSlidesCloud
7994
8161
  # @param document Document data.
7995
8162
  # @param format Export format (png, jpg, gif).
7996
8163
  # @param password Document password.
7997
- def download_images_online_with_http_info(document, format, password = nil)
8164
+ # @param quality Image quality (0 to 100; has effect only on Jpeg format).
8165
+ def download_images_online_with_http_info(document, format, password = nil, quality = nil)
7998
8166
  if @api_client.config.debugging
7999
8167
  @api_client.config.logger.debug 'Calling API: SlidesApi.download_images_online ...'
8000
8168
  end
@@ -8017,6 +8185,7 @@ module AsposeSlidesCloud
8017
8185
 
8018
8186
  # query parameters
8019
8187
  query_params = {}
8188
+ query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
8020
8189
 
8021
8190
  # header parameters
8022
8191
  header_params = {}
@@ -8342,8 +8511,8 @@ module AsposeSlidesCloud
8342
8511
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_presentation"
8343
8512
  end
8344
8513
  # verify enum value
8345
- 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', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
8346
- 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, Mpeg4, Md, Xml"
8514
+ 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', 'Mpeg4', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
8515
+ 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, Mpeg4, Md, Xml, Emf"
8347
8516
  end
8348
8517
  # resource path
8349
8518
  local_var_path = '/slides/{name}/{format}'
@@ -8436,8 +8605,8 @@ module AsposeSlidesCloud
8436
8605
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_shape"
8437
8606
  end
8438
8607
  # verify enum value
8439
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg'].any?{ |s| s.casecmp(format)==0 }
8440
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg"
8608
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg', 'Emf'].any?{ |s| s.casecmp(format)==0 }
8609
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg, Emf"
8441
8610
  end
8442
8611
  if @api_client.config.client_side_validation && bounds && !['Slide', 'Shape', 'Appearance'].any?{ |s| s.casecmp(bounds)==0 }
8443
8612
  fail ArgumentError, "Invalid value for parameter bounds: " + bounds + ". Must be one of Slide, Shape, Appearance"
@@ -8504,8 +8673,8 @@ module AsposeSlidesCloud
8504
8673
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_shape_from_dto"
8505
8674
  end
8506
8675
  # verify enum value
8507
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg'].any?{ |s| s.casecmp(format)==0 }
8508
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg"
8676
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg', 'Emf'].any?{ |s| s.casecmp(format)==0 }
8677
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg, Emf"
8509
8678
  end
8510
8679
  # verify the required parameter 'dto' is set
8511
8680
  if @api_client.config.client_side_validation && dto.nil?
@@ -8592,8 +8761,8 @@ module AsposeSlidesCloud
8592
8761
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_shape_online"
8593
8762
  end
8594
8763
  # verify enum value
8595
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg'].any?{ |s| s.casecmp(format)==0 }
8596
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg"
8764
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg', 'Emf'].any?{ |s| s.casecmp(format)==0 }
8765
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg, Emf"
8597
8766
  end
8598
8767
  if @api_client.config.client_side_validation && bounds && !['Slide', 'Shape', 'Appearance'].any?{ |s| s.casecmp(bounds)==0 }
8599
8768
  fail ArgumentError, "Invalid value for parameter bounds: " + bounds + ". Must be one of Slide, Shape, Appearance"
@@ -8684,8 +8853,8 @@ module AsposeSlidesCloud
8684
8853
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_slide"
8685
8854
  end
8686
8855
  # verify enum value
8687
- 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', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
8688
- 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, Html5, Md, Xml"
8856
+ 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', 'Html5', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
8857
+ 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, Html5, Md, Xml, Emf"
8689
8858
  end
8690
8859
  # resource path
8691
8860
  local_var_path = '/slides/{name}/slides/{slideIndex}/{format}'
@@ -8768,8 +8937,8 @@ module AsposeSlidesCloud
8768
8937
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_slide_online"
8769
8938
  end
8770
8939
  # verify enum value
8771
- 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', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
8772
- 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, Html5, Md, Xml"
8940
+ 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', 'Html5', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
8941
+ 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, Html5, Md, Xml, Emf"
8773
8942
  end
8774
8943
  # resource path
8775
8944
  local_var_path = '/slides/slides/{slideIndex}/{format}'
@@ -8875,8 +9044,8 @@ module AsposeSlidesCloud
8875
9044
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_special_slide_shape"
8876
9045
  end
8877
9046
  # verify enum value
8878
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg'].any?{ |s| s.casecmp(format)==0 }
8879
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg"
9047
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg', 'Emf'].any?{ |s| s.casecmp(format)==0 }
9048
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg, Emf"
8880
9049
  end
8881
9050
  if @api_client.config.client_side_validation && bounds && !['Slide', 'Shape', 'Appearance'].any?{ |s| s.casecmp(bounds)==0 }
8882
9051
  fail ArgumentError, "Invalid value for parameter bounds: " + bounds + ". Must be one of Slide, Shape, Appearance"
@@ -9145,6 +9314,80 @@ module AsposeSlidesCloud
9145
9314
  :return_type => 'SlideBackground')
9146
9315
  return data, status_code, headers
9147
9316
  end
9317
+ # Gets video/audio captions tracks.
9318
+ # @param name Document name.
9319
+ # @param slide_index Slide index.
9320
+ # @param shape_index Shape index (must refer to a video or audio frame).
9321
+ # @param include_data true to include caption data string values in the response.
9322
+ # @param password Document password.
9323
+ # @param folder Document folder.
9324
+ # @param storage Presentation storage.
9325
+ def get_caption_tracks(name, slide_index, shape_index, include_data = nil, password = nil, folder = nil, storage = nil)
9326
+ data, _status_code, _headers = get_caption_tracks_with_http_info(name, slide_index, shape_index, include_data, password, folder, storage)
9327
+ data
9328
+ end
9329
+
9330
+ # Gets video/audio captions tracks.
9331
+ # @param name Document name.
9332
+ # @param slide_index Slide index.
9333
+ # @param shape_index Shape index (must refer to a video or audio frame).
9334
+ # @param include_data true to include caption data string values in the response.
9335
+ # @param password Document password.
9336
+ # @param folder Document folder.
9337
+ # @param storage Presentation storage.
9338
+ def get_caption_tracks_with_http_info(name, slide_index, shape_index, include_data = nil, password = nil, folder = nil, storage = nil)
9339
+ if @api_client.config.debugging
9340
+ @api_client.config.logger.debug 'Calling API: SlidesApi.get_caption_tracks ...'
9341
+ end
9342
+
9343
+ # verify the required parameter 'name' is set
9344
+ if @api_client.config.client_side_validation && name.nil?
9345
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_caption_tracks"
9346
+ end
9347
+ # verify the required parameter 'slide_index' is set
9348
+ if @api_client.config.client_side_validation && slide_index.nil?
9349
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_caption_tracks"
9350
+ end
9351
+ # verify the required parameter 'shape_index' is set
9352
+ if @api_client.config.client_side_validation && shape_index.nil?
9353
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.get_caption_tracks"
9354
+ end
9355
+ # resource path
9356
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/captionTracks'
9357
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
9358
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
9359
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
9360
+
9361
+ # query parameters
9362
+ query_params = {}
9363
+ query_params[:'includeData'] = @api_client.prepare_for_query(include_data) unless include_data.nil?
9364
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
9365
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
9366
+
9367
+ # header parameters
9368
+ header_params = {}
9369
+ # HTTP header 'Accept' (if needed)
9370
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
9371
+ # HTTP header 'Content-Type'
9372
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
9373
+ header_params[:'password'] = password unless password.nil?
9374
+
9375
+ # http body (model)
9376
+ post_body = nil
9377
+
9378
+ # form parameters
9379
+ post_files = []
9380
+
9381
+ auth_names = ['JWT']
9382
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
9383
+ :header_params => header_params,
9384
+ :query_params => query_params,
9385
+ :body => post_body,
9386
+ :files => post_files,
9387
+ :auth_names => auth_names,
9388
+ :return_type => 'CaptionTracks')
9389
+ return data, status_code, headers
9390
+ end
9148
9391
  # Read slide theme color scheme info.
9149
9392
  # @param name Document name.
9150
9393
  # @param slide_index Slide index.
@@ -11734,21 +11977,25 @@ module AsposeSlidesCloud
11734
11977
  # Read slide images info.
11735
11978
  # @param name Document name.
11736
11979
  # @param slide_index Slide index.
11980
+ # @param shape_index Shape index (null to search all shapes).
11981
+ # @param shape_alt_text Shape alt name (null to search all shapes).
11737
11982
  # @param password Document password.
11738
11983
  # @param folder Document folder.
11739
11984
  # @param storage Document storage.
11740
- def get_slide_images(name, slide_index, password = nil, folder = nil, storage = nil)
11741
- data, _status_code, _headers = get_slide_images_with_http_info(name, slide_index, password, folder, storage)
11985
+ def get_slide_images(name, slide_index, shape_index = nil, shape_alt_text = nil, password = nil, folder = nil, storage = nil)
11986
+ data, _status_code, _headers = get_slide_images_with_http_info(name, slide_index, shape_index, shape_alt_text, password, folder, storage)
11742
11987
  data
11743
11988
  end
11744
11989
 
11745
11990
  # Read slide images info.
11746
11991
  # @param name Document name.
11747
11992
  # @param slide_index Slide index.
11993
+ # @param shape_index Shape index (null to search all shapes).
11994
+ # @param shape_alt_text Shape alt name (null to search all shapes).
11748
11995
  # @param password Document password.
11749
11996
  # @param folder Document folder.
11750
11997
  # @param storage Document storage.
11751
- def get_slide_images_with_http_info(name, slide_index, password = nil, folder = nil, storage = nil)
11998
+ def get_slide_images_with_http_info(name, slide_index, shape_index = nil, shape_alt_text = nil, password = nil, folder = nil, storage = nil)
11752
11999
  if @api_client.config.debugging
11753
12000
  @api_client.config.logger.debug 'Calling API: SlidesApi.get_slide_images ...'
11754
12001
  end
@@ -11768,6 +12015,8 @@ module AsposeSlidesCloud
11768
12015
 
11769
12016
  # query parameters
11770
12017
  query_params = {}
12018
+ query_params[:'shapeIndex'] = @api_client.prepare_for_query(shape_index) unless shape_index.nil?
12019
+ query_params[:'shapeAltText'] = @api_client.prepare_for_query(shape_alt_text) unless shape_alt_text.nil?
11771
12020
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
11772
12021
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
11773
12022
 
@@ -13591,8 +13840,10 @@ module AsposeSlidesCloud
13591
13840
  # @param password Document password.
13592
13841
  # @param folder Document folder.
13593
13842
  # @param storage Document storage.
13594
- def import_from_html(name, html = nil, password = nil, folder = nil, storage = nil)
13595
- data, _status_code, _headers = import_from_html_with_http_info(name, html, password, folder, storage)
13843
+ # @param position Slide index before which the HTML should be added (add to the end by default).
13844
+ # @param use_slide_with_index_as_start true to insert data starting from an empty space on the slide with the specified index; false to add data to the created slides.
13845
+ def import_from_html(name, html = nil, password = nil, folder = nil, storage = nil, position = nil, use_slide_with_index_as_start = nil)
13846
+ data, _status_code, _headers = import_from_html_with_http_info(name, html, password, folder, storage, position, use_slide_with_index_as_start)
13596
13847
  data
13597
13848
  end
13598
13849
 
@@ -13602,7 +13853,9 @@ module AsposeSlidesCloud
13602
13853
  # @param password Document password.
13603
13854
  # @param folder Document folder.
13604
13855
  # @param storage Document storage.
13605
- def import_from_html_with_http_info(name, html = nil, password = nil, folder = nil, storage = nil)
13856
+ # @param position Slide index before which the HTML should be added (add to the end by default).
13857
+ # @param use_slide_with_index_as_start true to insert data starting from an empty space on the slide with the specified index; false to add data to the created slides.
13858
+ def import_from_html_with_http_info(name, html = nil, password = nil, folder = nil, storage = nil, position = nil, use_slide_with_index_as_start = nil)
13606
13859
  if @api_client.config.debugging
13607
13860
  @api_client.config.logger.debug 'Calling API: SlidesApi.import_from_html ...'
13608
13861
  end
@@ -13619,6 +13872,8 @@ module AsposeSlidesCloud
13619
13872
  query_params = {}
13620
13873
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
13621
13874
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
13875
+ query_params[:'position'] = @api_client.prepare_for_query(position) unless position.nil?
13876
+ query_params[:'useSlideWithIndexAsStart'] = @api_client.prepare_for_query(use_slide_with_index_as_start) unless use_slide_with_index_as_start.nil?
13622
13877
 
13623
13878
  # header parameters
13624
13879
  header_params = {}
@@ -15700,8 +15955,8 @@ module AsposeSlidesCloud
15700
15955
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_presentation"
15701
15956
  end
15702
15957
  # verify enum value
15703
- 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', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
15704
- 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, Mpeg4, Md, Xml"
15958
+ 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', 'Mpeg4', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
15959
+ 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, Mpeg4, Md, Xml, Emf"
15705
15960
  end
15706
15961
  # verify the required parameter 'out_path' is set
15707
15962
  if @api_client.config.client_side_validation && out_path.nil?
@@ -15800,8 +16055,8 @@ module AsposeSlidesCloud
15800
16055
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_shape"
15801
16056
  end
15802
16057
  # verify enum value
15803
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg'].any?{ |s| s.casecmp(format)==0 }
15804
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg"
16058
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg', 'Emf'].any?{ |s| s.casecmp(format)==0 }
16059
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg, Emf"
15805
16060
  end
15806
16061
  # verify the required parameter 'out_path' is set
15807
16062
  if @api_client.config.client_side_validation && out_path.nil?
@@ -15904,8 +16159,8 @@ module AsposeSlidesCloud
15904
16159
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_shape_online"
15905
16160
  end
15906
16161
  # verify enum value
15907
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg'].any?{ |s| s.casecmp(format)==0 }
15908
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg"
16162
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg', 'Emf'].any?{ |s| s.casecmp(format)==0 }
16163
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg, Emf"
15909
16164
  end
15910
16165
  # verify the required parameter 'out_path' is set
15911
16166
  if @api_client.config.client_side_validation && out_path.nil?
@@ -16002,8 +16257,8 @@ module AsposeSlidesCloud
16002
16257
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_slide"
16003
16258
  end
16004
16259
  # verify enum value
16005
- 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', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
16006
- 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, Html5, Md, Xml"
16260
+ 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', 'Html5', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
16261
+ 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, Html5, Md, Xml, Emf"
16007
16262
  end
16008
16263
  # verify the required parameter 'out_path' is set
16009
16264
  if @api_client.config.client_side_validation && out_path.nil?
@@ -16092,8 +16347,8 @@ module AsposeSlidesCloud
16092
16347
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_slide_online"
16093
16348
  end
16094
16349
  # verify enum value
16095
- 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', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
16096
- 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, Html5, Md, Xml"
16350
+ 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', 'Html5', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
16351
+ 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, Html5, Md, Xml, Emf"
16097
16352
  end
16098
16353
  # verify the required parameter 'out_path' is set
16099
16354
  if @api_client.config.client_side_validation && out_path.nil?
@@ -16205,8 +16460,8 @@ module AsposeSlidesCloud
16205
16460
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_special_slide_shape"
16206
16461
  end
16207
16462
  # verify enum value
16208
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg'].any?{ |s| s.casecmp(format)==0 }
16209
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg"
16463
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg', 'Emf'].any?{ |s| s.casecmp(format)==0 }
16464
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg, Emf"
16210
16465
  end
16211
16466
  # verify the required parameter 'out_path' is set
16212
16467
  if @api_client.config.client_side_validation && out_path.nil?
@@ -17008,52 +17263,49 @@ module AsposeSlidesCloud
17008
17263
  :return_type => 'FontsData')
17009
17264
  return data, status_code, headers
17010
17265
  end
17011
- # Embeds font from request and returns presentation fonts info.
17012
- # @param font Font data.
17013
- # @param name Document name.
17266
+ # Embeds specified font and returns presentation.
17267
+ # @param document Document data.
17268
+ # @param font_name Font name.
17014
17269
  # @param only_used Only used characters will be embedded.
17015
17270
  # @param password Document password.
17016
- # @param folder Document folder.
17017
- # @param storage Document storage.
17018
- def set_embedded_font_from_request(font, name, only_used = nil, password = nil, folder = nil, storage = nil)
17019
- data, _status_code, _headers = set_embedded_font_from_request_with_http_info(font, name, only_used, password, folder, storage)
17271
+ # @param fonts_folder Custom fonts folder.
17272
+ def set_embedded_font_online(document, font_name, only_used = nil, password = nil, fonts_folder = nil)
17273
+ data, _status_code, _headers = set_embedded_font_online_with_http_info(document, font_name, only_used, password, fonts_folder)
17020
17274
  data
17021
17275
  end
17022
17276
 
17023
- # Embeds font from request and returns presentation fonts info.
17024
- # @param font Font data.
17025
- # @param name Document name.
17277
+ # Embeds specified font and returns presentation.
17278
+ # @param document Document data.
17279
+ # @param font_name Font name.
17026
17280
  # @param only_used Only used characters will be embedded.
17027
17281
  # @param password Document password.
17028
- # @param folder Document folder.
17029
- # @param storage Document storage.
17030
- def set_embedded_font_from_request_with_http_info(font, name, only_used = nil, password = nil, folder = nil, storage = nil)
17282
+ # @param fonts_folder Custom fonts folder.
17283
+ def set_embedded_font_online_with_http_info(document, font_name, only_used = nil, password = nil, fonts_folder = nil)
17031
17284
  if @api_client.config.debugging
17032
- @api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font_from_request ...'
17285
+ @api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font_online ...'
17033
17286
  end
17034
17287
 
17035
- # verify the required parameter 'font' is set
17036
- if @api_client.config.client_side_validation && font.nil?
17037
- fail ArgumentError, "Missing the required parameter 'font' when calling SlidesApi.set_embedded_font_from_request"
17288
+ # verify the required parameter 'document' is set
17289
+ if @api_client.config.client_side_validation && document.nil?
17290
+ fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.set_embedded_font_online"
17038
17291
  end
17039
- # verify the required parameter 'name' is set
17040
- if @api_client.config.client_side_validation && name.nil?
17041
- fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.set_embedded_font_from_request"
17292
+ # verify the required parameter 'font_name' is set
17293
+ if @api_client.config.client_side_validation && font_name.nil?
17294
+ fail ArgumentError, "Missing the required parameter 'font_name' when calling SlidesApi.set_embedded_font_online"
17042
17295
  end
17043
17296
  # resource path
17044
- local_var_path = '/slides/{name}/fonts/embedded'
17045
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
17297
+ local_var_path = '/slides/fonts/embedded/{fontName}'
17298
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'fontName', font_name)
17046
17299
 
17047
17300
  # query parameters
17048
17301
  query_params = {}
17049
17302
  query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
17050
- query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
17051
- query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
17303
+ query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
17052
17304
 
17053
17305
  # header parameters
17054
17306
  header_params = {}
17055
17307
  # HTTP header 'Accept' (if needed)
17056
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
17308
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
17057
17309
  # HTTP header 'Content-Type'
17058
17310
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
17059
17311
  header_params[:'password'] = password unless password.nil?
@@ -17063,8 +17315,8 @@ module AsposeSlidesCloud
17063
17315
 
17064
17316
  # form parameters
17065
17317
  post_files = []
17066
- if font
17067
- post_files = post_files.push(font)
17318
+ if document
17319
+ post_files = post_files.push(document)
17068
17320
  end
17069
17321
 
17070
17322
  auth_names = ['JWT']
@@ -17074,48 +17326,54 @@ module AsposeSlidesCloud
17074
17326
  :body => post_body,
17075
17327
  :files => post_files,
17076
17328
  :auth_names => auth_names,
17077
- :return_type => 'FontsData')
17329
+ :return_type => 'File')
17078
17330
  return data, status_code, headers
17079
17331
  end
17080
- # Embeds font from request and returns presentation.
17081
- # @param document Document data.
17082
- # @param font Font data.
17332
+ # Embeds fonts with specified names and/or fonts from request and returns presentation fonts info.
17333
+ # @param name Document name.
17334
+ # @param fonts Font data.
17335
+ # @param font_names Font names.
17083
17336
  # @param only_used Only used characters will be embedded.
17084
17337
  # @param password Document password.
17085
- def set_embedded_font_from_request_online(document, font, only_used = nil, password = nil)
17086
- data, _status_code, _headers = set_embedded_font_from_request_online_with_http_info(document, font, only_used, password)
17338
+ # @param folder Document folder.
17339
+ # @param storage Document storage.
17340
+ def set_embedded_fonts(name, fonts = nil, font_names = nil, only_used = nil, password = nil, folder = nil, storage = nil)
17341
+ data, _status_code, _headers = set_embedded_fonts_with_http_info(name, fonts, font_names, only_used, password, folder, storage)
17087
17342
  data
17088
17343
  end
17089
17344
 
17090
- # Embeds font from request and returns presentation.
17091
- # @param document Document data.
17092
- # @param font Font data.
17345
+ # Embeds fonts with specified names and/or fonts from request and returns presentation fonts info.
17346
+ # @param name Document name.
17347
+ # @param fonts Font data.
17348
+ # @param font_names Font names.
17093
17349
  # @param only_used Only used characters will be embedded.
17094
17350
  # @param password Document password.
17095
- def set_embedded_font_from_request_online_with_http_info(document, font, only_used = nil, password = nil)
17351
+ # @param folder Document folder.
17352
+ # @param storage Document storage.
17353
+ def set_embedded_fonts_with_http_info(name, fonts = nil, font_names = nil, only_used = nil, password = nil, folder = nil, storage = nil)
17096
17354
  if @api_client.config.debugging
17097
- @api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font_from_request_online ...'
17355
+ @api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_fonts ...'
17098
17356
  end
17099
17357
 
17100
- # verify the required parameter 'document' is set
17101
- if @api_client.config.client_side_validation && document.nil?
17102
- fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.set_embedded_font_from_request_online"
17103
- end
17104
- # verify the required parameter 'font' is set
17105
- if @api_client.config.client_side_validation && font.nil?
17106
- fail ArgumentError, "Missing the required parameter 'font' when calling SlidesApi.set_embedded_font_from_request_online"
17358
+ # verify the required parameter 'name' is set
17359
+ if @api_client.config.client_side_validation && name.nil?
17360
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.set_embedded_fonts"
17107
17361
  end
17108
17362
  # resource path
17109
- local_var_path = '/slides/fonts/embedded'
17363
+ local_var_path = '/slides/{name}/fonts/embedded'
17364
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
17110
17365
 
17111
17366
  # query parameters
17112
17367
  query_params = {}
17368
+ query_params[:'fontNames'] = @api_client.prepare_for_query(font_names) unless font_names.nil?
17113
17369
  query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
17370
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
17371
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
17114
17372
 
17115
17373
  # header parameters
17116
17374
  header_params = {}
17117
17375
  # HTTP header 'Accept' (if needed)
17118
- header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
17376
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
17119
17377
  # HTTP header 'Content-Type'
17120
17378
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
17121
17379
  header_params[:'password'] = password unless password.nil?
@@ -17125,11 +17383,8 @@ module AsposeSlidesCloud
17125
17383
 
17126
17384
  # form parameters
17127
17385
  post_files = []
17128
- if document
17129
- post_files = post_files.push(document)
17130
- end
17131
- if font
17132
- post_files = post_files.push(font)
17386
+ if fonts
17387
+ post_files = post_files.concat(fonts)
17133
17388
  end
17134
17389
 
17135
17390
  auth_names = ['JWT']
@@ -17139,47 +17394,42 @@ module AsposeSlidesCloud
17139
17394
  :body => post_body,
17140
17395
  :files => post_files,
17141
17396
  :auth_names => auth_names,
17142
- :return_type => 'File')
17397
+ :return_type => 'FontsData')
17143
17398
  return data, status_code, headers
17144
17399
  end
17145
- # Embeds specified font and returns presentation.
17400
+ # Embeds font from request and returns presentation.
17146
17401
  # @param document Document data.
17147
- # @param font_name Font name.
17402
+ # @param fonts Font data.
17403
+ # @param font_names Font names.
17148
17404
  # @param only_used Only used characters will be embedded.
17149
17405
  # @param password Document password.
17150
- # @param fonts_folder Custom fonts folder.
17151
- def set_embedded_font_online(document, font_name, only_used = nil, password = nil, fonts_folder = nil)
17152
- data, _status_code, _headers = set_embedded_font_online_with_http_info(document, font_name, only_used, password, fonts_folder)
17406
+ def set_embedded_fonts_online(document, fonts = nil, font_names = nil, only_used = nil, password = nil)
17407
+ data, _status_code, _headers = set_embedded_fonts_online_with_http_info(document, fonts, font_names, only_used, password)
17153
17408
  data
17154
17409
  end
17155
17410
 
17156
- # Embeds specified font and returns presentation.
17411
+ # Embeds font from request and returns presentation.
17157
17412
  # @param document Document data.
17158
- # @param font_name Font name.
17413
+ # @param fonts Font data.
17414
+ # @param font_names Font names.
17159
17415
  # @param only_used Only used characters will be embedded.
17160
17416
  # @param password Document password.
17161
- # @param fonts_folder Custom fonts folder.
17162
- def set_embedded_font_online_with_http_info(document, font_name, only_used = nil, password = nil, fonts_folder = nil)
17417
+ def set_embedded_fonts_online_with_http_info(document, fonts = nil, font_names = nil, only_used = nil, password = nil)
17163
17418
  if @api_client.config.debugging
17164
- @api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font_online ...'
17419
+ @api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_fonts_online ...'
17165
17420
  end
17166
17421
 
17167
17422
  # verify the required parameter 'document' is set
17168
17423
  if @api_client.config.client_side_validation && document.nil?
17169
- fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.set_embedded_font_online"
17170
- end
17171
- # verify the required parameter 'font_name' is set
17172
- if @api_client.config.client_side_validation && font_name.nil?
17173
- fail ArgumentError, "Missing the required parameter 'font_name' when calling SlidesApi.set_embedded_font_online"
17424
+ fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.set_embedded_fonts_online"
17174
17425
  end
17175
17426
  # resource path
17176
- local_var_path = '/slides/fonts/embedded/{fontName}'
17177
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'fontName', font_name)
17427
+ local_var_path = '/slides/fonts/embedded'
17178
17428
 
17179
17429
  # query parameters
17180
17430
  query_params = {}
17431
+ query_params[:'fontNames'] = @api_client.prepare_for_query(font_names) unless font_names.nil?
17181
17432
  query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
17182
- query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
17183
17433
 
17184
17434
  # header parameters
17185
17435
  header_params = {}
@@ -17197,6 +17447,9 @@ module AsposeSlidesCloud
17197
17447
  if document
17198
17448
  post_files = post_files.push(document)
17199
17449
  end
17450
+ if fonts
17451
+ post_files = post_files.concat(fonts)
17452
+ end
17200
17453
 
17201
17454
  auth_names = ['JWT']
17202
17455
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -17983,8 +18236,8 @@ module AsposeSlidesCloud
17983
18236
  if @api_client.config.client_side_validation && name.nil?
17984
18237
  fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.split"
17985
18238
  end
17986
- 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', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
17987
- 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, Html5, Md, Xml"
18239
+ 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', 'Html5', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
18240
+ 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, Html5, Md, Xml, Emf"
17988
18241
  end
17989
18242
  # resource path
17990
18243
  local_var_path = '/slides/{name}/split'
@@ -18069,8 +18322,8 @@ module AsposeSlidesCloud
18069
18322
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.split_and_save_online"
18070
18323
  end
18071
18324
  # verify enum value
18072
- 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', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
18073
- 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, Html5, Md, Xml"
18325
+ 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', 'Html5', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
18326
+ 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, Html5, Md, Xml, Emf"
18074
18327
  end
18075
18328
  # resource path
18076
18329
  local_var_path = '/slides/split/{format}'
@@ -18154,8 +18407,8 @@ module AsposeSlidesCloud
18154
18407
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.split_online"
18155
18408
  end
18156
18409
  # verify enum value
18157
- 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', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
18158
- 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, Html5, Md, Xml"
18410
+ 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', 'Html5', 'Md', 'Xml', 'Emf'].any?{ |s| s.casecmp(format)==0 }
18411
+ 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, Html5, Md, Xml, Emf"
18159
18412
  end
18160
18413
  # resource path
18161
18414
  local_var_path = '/slides/split/{format}'