aspose_slides_cloud 22.8.0 → 22.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +11 -1
- data/TestData/calibri.ttf +0 -0
- data/TestData/test.pptx +0 -0
- data/docker-entrypoint.sh +3 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +475 -21
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +5 -1
- data/lib/aspose_slides_cloud/models/data_point.rb +42 -2
- data/lib/aspose_slides_cloud/models/export_options.rb +13 -1
- data/lib/aspose_slides_cloud/models/font_subst_rule.rb +231 -0
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +5 -1
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +5 -1
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/type_registry.rb +1 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +1 -0
- data/spec/api/slides_api_spec.rb +1380 -30
- data/spec/use_cases/chart_spec.rb +209 -0
- data/spec/use_cases/comment_spec.rb +159 -0
- data/spec/use_cases/convert_spec.rb +39 -0
- data/spec/use_cases/font_spec.rb +143 -0
- data/spec/use_cases/layout_slide_spec.rb +18 -0
- data/spec/use_cases/master_slide_spec.rb +16 -0
- data/spec/use_cases/merge_spec.rb +21 -0
- data/spec/use_cases/notes_slide_spec.rb +34 -0
- data/spec/use_cases/paragraph_spec.rb +322 -0
- data/spec/use_cases/portion_spec.rb +316 -0
- data/spec/use_cases/property_spec.rb +36 -0
- data/spec/use_cases/shape_spec.rb +193 -0
- data/spec/use_cases/slide_spec.rb +197 -0
- data/spec/use_cases/text_format_spec.rb +74 -0
- data/spec/use_cases/text_spec.rb +39 -0
- data/testRules.json +16 -0
- metadata +16 -2
@@ -2222,6 +2222,86 @@ module AsposeSlidesCloud
|
|
2222
2222
|
:return_type => 'Slides')
|
2223
2223
|
return data, status_code, headers
|
2224
2224
|
end
|
2225
|
+
# Add SmartArt node
|
2226
|
+
# @param name Document name.
|
2227
|
+
# @param slide_index Slide index.
|
2228
|
+
# @param smart_art_index Index of the object on the slide among the same type of objects.
|
2229
|
+
# @param sub_node Sub-node path (e.g. \"3\", \"3/nodes/2).
|
2230
|
+
# @param text Node text.
|
2231
|
+
# @param position Position to insert a new node.
|
2232
|
+
# @param password Document password.
|
2233
|
+
# @param folder Document folder.
|
2234
|
+
# @param storage Document storage.
|
2235
|
+
def create_smart_art_node(name, slide_index, smart_art_index, sub_node = nil, text = nil, position = nil, password = nil, folder = nil, storage = nil)
|
2236
|
+
data, _status_code, _headers = create_smart_art_node_with_http_info(name, slide_index, smart_art_index, sub_node, text, position, password, folder, storage)
|
2237
|
+
data
|
2238
|
+
end
|
2239
|
+
|
2240
|
+
# Add SmartArt node
|
2241
|
+
# @param name Document name.
|
2242
|
+
# @param slide_index Slide index.
|
2243
|
+
# @param smart_art_index Index of the object on the slide among the same type of objects.
|
2244
|
+
# @param sub_node Sub-node path (e.g. \"3\", \"3/nodes/2).
|
2245
|
+
# @param text Node text.
|
2246
|
+
# @param position Position to insert a new node.
|
2247
|
+
# @param password Document password.
|
2248
|
+
# @param folder Document folder.
|
2249
|
+
# @param storage Document storage.
|
2250
|
+
def create_smart_art_node_with_http_info(name, slide_index, smart_art_index, sub_node = nil, text = nil, position = nil, password = nil, folder = nil, storage = nil)
|
2251
|
+
if @api_client.config.debugging
|
2252
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.create_smart_art_node ...'
|
2253
|
+
end
|
2254
|
+
|
2255
|
+
# verify the required parameter 'name' is set
|
2256
|
+
if @api_client.config.client_side_validation && name.nil?
|
2257
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.create_smart_art_node"
|
2258
|
+
end
|
2259
|
+
# verify the required parameter 'slide_index' is set
|
2260
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
2261
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.create_smart_art_node"
|
2262
|
+
end
|
2263
|
+
# verify the required parameter 'smart_art_index' is set
|
2264
|
+
if @api_client.config.client_side_validation && smart_art_index.nil?
|
2265
|
+
fail ArgumentError, "Missing the required parameter 'smart_art_index' when calling SlidesApi.create_smart_art_node"
|
2266
|
+
end
|
2267
|
+
# resource path
|
2268
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/SmartArts/{smartArtIndex}/nodes'
|
2269
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
2270
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
2271
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'smartArtIndex', smart_art_index)
|
2272
|
+
|
2273
|
+
# query parameters
|
2274
|
+
query_params = {}
|
2275
|
+
query_params[:'subNode'] = @api_client.prepare_for_query(sub_node) unless sub_node.nil?
|
2276
|
+
query_params[:'text'] = @api_client.prepare_for_query(text) unless text.nil?
|
2277
|
+
query_params[:'position'] = @api_client.prepare_for_query(position) unless position.nil?
|
2278
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
2279
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
2280
|
+
|
2281
|
+
# header parameters
|
2282
|
+
header_params = {}
|
2283
|
+
# HTTP header 'Accept' (if needed)
|
2284
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2285
|
+
# HTTP header 'Content-Type'
|
2286
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2287
|
+
header_params[:'password'] = password unless password.nil?
|
2288
|
+
|
2289
|
+
# http body (model)
|
2290
|
+
post_body = nil
|
2291
|
+
|
2292
|
+
# form parameters
|
2293
|
+
post_files = []
|
2294
|
+
|
2295
|
+
auth_names = ['JWT']
|
2296
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2297
|
+
:header_params => header_params,
|
2298
|
+
:query_params => query_params,
|
2299
|
+
:body => post_body,
|
2300
|
+
:files => post_files,
|
2301
|
+
:auth_names => auth_names,
|
2302
|
+
:return_type => 'SmartArt')
|
2303
|
+
return data, status_code, headers
|
2304
|
+
end
|
2225
2305
|
# Add an effect to special slide (master, layout, notes) animation.
|
2226
2306
|
# @param name Document name.
|
2227
2307
|
# @param slide_index Parent slide index.
|
@@ -4453,7 +4533,7 @@ module AsposeSlidesCloud
|
|
4453
4533
|
end
|
4454
4534
|
# Removes specified embedded font and returns presentation.
|
4455
4535
|
# @param document Document data.
|
4456
|
-
# @param font_name
|
4536
|
+
# @param font_name Font name.
|
4457
4537
|
# @param password Document password.
|
4458
4538
|
def delete_embedded_font_online(document, font_name, password = nil)
|
4459
4539
|
data, _status_code, _headers = delete_embedded_font_online_with_http_info(document, font_name, password)
|
@@ -4462,7 +4542,7 @@ module AsposeSlidesCloud
|
|
4462
4542
|
|
4463
4543
|
# Removes specified embedded font and returns presentation.
|
4464
4544
|
# @param document Document data.
|
4465
|
-
# @param font_name
|
4545
|
+
# @param font_name Font name.
|
4466
4546
|
# @param password Document password.
|
4467
4547
|
def delete_embedded_font_online_with_http_info(document, font_name, password = nil)
|
4468
4548
|
if @api_client.config.debugging
|
@@ -5635,6 +5715,87 @@ module AsposeSlidesCloud
|
|
5635
5715
|
:return_type => 'Slides')
|
5636
5716
|
return data, status_code, headers
|
5637
5717
|
end
|
5718
|
+
# Delete SmartArt node
|
5719
|
+
# @param name Document name.
|
5720
|
+
# @param slide_index Slide index.
|
5721
|
+
# @param smart_art_index Index of the object on the slide among the same type of objects.
|
5722
|
+
# @param node_index Root level node index.
|
5723
|
+
# @param sub_node Sub-node path (e.g. \"3\", \"3/nodes/2).
|
5724
|
+
# @param password Document password.
|
5725
|
+
# @param folder Document folder.
|
5726
|
+
# @param storage Document storage.
|
5727
|
+
def delete_smart_art_node(name, slide_index, smart_art_index, node_index, sub_node = nil, password = nil, folder = nil, storage = nil)
|
5728
|
+
data, _status_code, _headers = delete_smart_art_node_with_http_info(name, slide_index, smart_art_index, node_index, sub_node, password, folder, storage)
|
5729
|
+
data
|
5730
|
+
end
|
5731
|
+
|
5732
|
+
# Delete SmartArt node
|
5733
|
+
# @param name Document name.
|
5734
|
+
# @param slide_index Slide index.
|
5735
|
+
# @param smart_art_index Index of the object on the slide among the same type of objects.
|
5736
|
+
# @param node_index Root level node index.
|
5737
|
+
# @param sub_node Sub-node path (e.g. \"3\", \"3/nodes/2).
|
5738
|
+
# @param password Document password.
|
5739
|
+
# @param folder Document folder.
|
5740
|
+
# @param storage Document storage.
|
5741
|
+
def delete_smart_art_node_with_http_info(name, slide_index, smart_art_index, node_index, sub_node = nil, password = nil, folder = nil, storage = nil)
|
5742
|
+
if @api_client.config.debugging
|
5743
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_smart_art_node ...'
|
5744
|
+
end
|
5745
|
+
|
5746
|
+
# verify the required parameter 'name' is set
|
5747
|
+
if @api_client.config.client_side_validation && name.nil?
|
5748
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_smart_art_node"
|
5749
|
+
end
|
5750
|
+
# verify the required parameter 'slide_index' is set
|
5751
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
5752
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.delete_smart_art_node"
|
5753
|
+
end
|
5754
|
+
# verify the required parameter 'smart_art_index' is set
|
5755
|
+
if @api_client.config.client_side_validation && smart_art_index.nil?
|
5756
|
+
fail ArgumentError, "Missing the required parameter 'smart_art_index' when calling SlidesApi.delete_smart_art_node"
|
5757
|
+
end
|
5758
|
+
# verify the required parameter 'node_index' is set
|
5759
|
+
if @api_client.config.client_side_validation && node_index.nil?
|
5760
|
+
fail ArgumentError, "Missing the required parameter 'node_index' when calling SlidesApi.delete_smart_art_node"
|
5761
|
+
end
|
5762
|
+
# resource path
|
5763
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/SmartArts/{smartArtIndex}/nodes/{nodeIndex}'
|
5764
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
5765
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
5766
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'smartArtIndex', smart_art_index)
|
5767
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'nodeIndex', node_index)
|
5768
|
+
|
5769
|
+
# query parameters
|
5770
|
+
query_params = {}
|
5771
|
+
query_params[:'subNode'] = @api_client.prepare_for_query(sub_node) unless sub_node.nil?
|
5772
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
5773
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
5774
|
+
|
5775
|
+
# header parameters
|
5776
|
+
header_params = {}
|
5777
|
+
# HTTP header 'Accept' (if needed)
|
5778
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
5779
|
+
# HTTP header 'Content-Type'
|
5780
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
5781
|
+
header_params[:'password'] = password unless password.nil?
|
5782
|
+
|
5783
|
+
# http body (model)
|
5784
|
+
post_body = nil
|
5785
|
+
|
5786
|
+
# form parameters
|
5787
|
+
post_files = []
|
5788
|
+
|
5789
|
+
auth_names = ['JWT']
|
5790
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
5791
|
+
:header_params => header_params,
|
5792
|
+
:query_params => query_params,
|
5793
|
+
:body => post_body,
|
5794
|
+
:files => post_files,
|
5795
|
+
:auth_names => auth_names,
|
5796
|
+
:return_type => 'SmartArt')
|
5797
|
+
return data, status_code, headers
|
5798
|
+
end
|
5638
5799
|
# Remove animation from a special slide (master, layout, notes).
|
5639
5800
|
# @param name Document name.
|
5640
5801
|
# @param slide_index Parent slide index.
|
@@ -8608,8 +8769,8 @@ module AsposeSlidesCloud
|
|
8608
8769
|
# @param name Document name.
|
8609
8770
|
# @param slide_index Slide index.
|
8610
8771
|
# @param format Output file format.
|
8611
|
-
# @param width
|
8612
|
-
# @param height
|
8772
|
+
# @param width The width of the slide representation in the output format.
|
8773
|
+
# @param height The height of the slide representation in the output format
|
8613
8774
|
# @param password Document password.
|
8614
8775
|
# @param folder Document folder.
|
8615
8776
|
# @param storage Document storage.
|
@@ -8623,8 +8784,8 @@ module AsposeSlidesCloud
|
|
8623
8784
|
# @param name Document name.
|
8624
8785
|
# @param slide_index Slide index.
|
8625
8786
|
# @param format Output file format.
|
8626
|
-
# @param width
|
8627
|
-
# @param height
|
8787
|
+
# @param width The width of the slide representation in the output format.
|
8788
|
+
# @param height The height of the slide representation in the output format
|
8628
8789
|
# @param password Document password.
|
8629
8790
|
# @param folder Document folder.
|
8630
8791
|
# @param storage Document storage.
|
@@ -8692,8 +8853,8 @@ module AsposeSlidesCloud
|
|
8692
8853
|
# @param document Document data.
|
8693
8854
|
# @param slide_index Slide index.
|
8694
8855
|
# @param format Output file format.
|
8695
|
-
# @param width
|
8696
|
-
# @param height
|
8856
|
+
# @param width The width of the slide representation in the output format.
|
8857
|
+
# @param height The height of the slide representation in the output format.
|
8697
8858
|
# @param password Document password.
|
8698
8859
|
# @param fonts_folder Storage folder containing custom fonts to be used with the document.
|
8699
8860
|
def download_notes_slide_online(document, slide_index, format, width = nil, height = nil, password = nil, fonts_folder = nil)
|
@@ -8705,8 +8866,8 @@ module AsposeSlidesCloud
|
|
8705
8866
|
# @param document Document data.
|
8706
8867
|
# @param slide_index Slide index.
|
8707
8868
|
# @param format Output file format.
|
8708
|
-
# @param width
|
8709
|
-
# @param height
|
8869
|
+
# @param width The width of the slide representation in the output format.
|
8870
|
+
# @param height The height of the slide representation in the output format.
|
8710
8871
|
# @param password Document password.
|
8711
8872
|
# @param fonts_folder Storage folder containing custom fonts to be used with the document.
|
8712
8873
|
def download_notes_slide_online_with_http_info(document, slide_index, format, width = nil, height = nil, password = nil, fonts_folder = nil)
|
@@ -14766,11 +14927,12 @@ module AsposeSlidesCloud
|
|
14766
14927
|
# @param width The width of the imported group of shapes (default is SVG image width).
|
14767
14928
|
# @param height The height of the imported group of shapes (default is SVG image width).
|
14768
14929
|
# @param shapes Indexes of shapes to import. All shapes are imported if not specified.
|
14930
|
+
# @param group If true, the set of shapes will be imported as a one group shape.
|
14769
14931
|
# @param password Document password.
|
14770
14932
|
# @param folder Presentation folder.
|
14771
14933
|
# @param storage Presentation storage.
|
14772
|
-
def import_shapes_from_svg(name, slide_index, image = nil, x = nil, y = nil, width = nil, height = nil, shapes = nil, password = nil, folder = nil, storage = nil)
|
14773
|
-
data, _status_code, _headers = import_shapes_from_svg_with_http_info(name, slide_index, image, x, y, width, height, shapes, password, folder, storage)
|
14934
|
+
def import_shapes_from_svg(name, slide_index, image = nil, x = nil, y = nil, width = nil, height = nil, shapes = nil, group = nil, password = nil, folder = nil, storage = nil)
|
14935
|
+
data, _status_code, _headers = import_shapes_from_svg_with_http_info(name, slide_index, image, x, y, width, height, shapes, group, password, folder, storage)
|
14774
14936
|
data
|
14775
14937
|
end
|
14776
14938
|
|
@@ -14783,10 +14945,11 @@ module AsposeSlidesCloud
|
|
14783
14945
|
# @param width The width of the imported group of shapes (default is SVG image width).
|
14784
14946
|
# @param height The height of the imported group of shapes (default is SVG image width).
|
14785
14947
|
# @param shapes Indexes of shapes to import. All shapes are imported if not specified.
|
14948
|
+
# @param group If true, the set of shapes will be imported as a one group shape.
|
14786
14949
|
# @param password Document password.
|
14787
14950
|
# @param folder Presentation folder.
|
14788
14951
|
# @param storage Presentation storage.
|
14789
|
-
def import_shapes_from_svg_with_http_info(name, slide_index, image = nil, x = nil, y = nil, width = nil, height = nil, shapes = nil, password = nil, folder = nil, storage = nil)
|
14952
|
+
def import_shapes_from_svg_with_http_info(name, slide_index, image = nil, x = nil, y = nil, width = nil, height = nil, shapes = nil, group = nil, password = nil, folder = nil, storage = nil)
|
14790
14953
|
if @api_client.config.debugging
|
14791
14954
|
@api_client.config.logger.debug 'Calling API: SlidesApi.import_shapes_from_svg ...'
|
14792
14955
|
end
|
@@ -14811,6 +14974,7 @@ module AsposeSlidesCloud
|
|
14811
14974
|
query_params[:'width'] = @api_client.prepare_for_query(width) unless width.nil?
|
14812
14975
|
query_params[:'height'] = @api_client.prepare_for_query(height) unless height.nil?
|
14813
14976
|
query_params[:'shapes'] = @api_client.prepare_for_query(shapes) unless shapes.nil?
|
14977
|
+
query_params[:'group'] = @api_client.prepare_for_query(group) unless group.nil?
|
14814
14978
|
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
14815
14979
|
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
14816
14980
|
|
@@ -15633,6 +15797,156 @@ module AsposeSlidesCloud
|
|
15633
15797
|
:return_type => 'Slides')
|
15634
15798
|
return data, status_code, headers
|
15635
15799
|
end
|
15800
|
+
# Replaces specified font and returns presentation fonts info.
|
15801
|
+
# @param name Document name.
|
15802
|
+
# @param source_font Source font name.
|
15803
|
+
# @param target_font Target font name.
|
15804
|
+
# @param embed Embed target font.
|
15805
|
+
# @param password Document password.
|
15806
|
+
# @param folder Document folder.
|
15807
|
+
# @param storage Document storage.
|
15808
|
+
# @param fonts_folder Custom fonts folder.
|
15809
|
+
def replace_font(name, source_font, target_font, embed = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
15810
|
+
data, _status_code, _headers = replace_font_with_http_info(name, source_font, target_font, embed, password, folder, storage, fonts_folder)
|
15811
|
+
data
|
15812
|
+
end
|
15813
|
+
|
15814
|
+
# Replaces specified font and returns presentation fonts info.
|
15815
|
+
# @param name Document name.
|
15816
|
+
# @param source_font Source font name.
|
15817
|
+
# @param target_font Target font name.
|
15818
|
+
# @param embed Embed target font.
|
15819
|
+
# @param password Document password.
|
15820
|
+
# @param folder Document folder.
|
15821
|
+
# @param storage Document storage.
|
15822
|
+
# @param fonts_folder Custom fonts folder.
|
15823
|
+
def replace_font_with_http_info(name, source_font, target_font, embed = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
15824
|
+
if @api_client.config.debugging
|
15825
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.replace_font ...'
|
15826
|
+
end
|
15827
|
+
|
15828
|
+
# verify the required parameter 'name' is set
|
15829
|
+
if @api_client.config.client_side_validation && name.nil?
|
15830
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.replace_font"
|
15831
|
+
end
|
15832
|
+
# verify the required parameter 'source_font' is set
|
15833
|
+
if @api_client.config.client_side_validation && source_font.nil?
|
15834
|
+
fail ArgumentError, "Missing the required parameter 'source_font' when calling SlidesApi.replace_font"
|
15835
|
+
end
|
15836
|
+
# verify the required parameter 'target_font' is set
|
15837
|
+
if @api_client.config.client_side_validation && target_font.nil?
|
15838
|
+
fail ArgumentError, "Missing the required parameter 'target_font' when calling SlidesApi.replace_font"
|
15839
|
+
end
|
15840
|
+
# resource path
|
15841
|
+
local_var_path = '/slides/{name}/fonts/{sourceFont}/replace/{targetFont}'
|
15842
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
15843
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'sourceFont', source_font)
|
15844
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'targetFont', target_font)
|
15845
|
+
|
15846
|
+
# query parameters
|
15847
|
+
query_params = {}
|
15848
|
+
query_params[:'embed'] = @api_client.prepare_for_query(embed) unless embed.nil?
|
15849
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
15850
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
15851
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
15852
|
+
|
15853
|
+
# header parameters
|
15854
|
+
header_params = {}
|
15855
|
+
# HTTP header 'Accept' (if needed)
|
15856
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
15857
|
+
# HTTP header 'Content-Type'
|
15858
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
15859
|
+
header_params[:'password'] = password unless password.nil?
|
15860
|
+
|
15861
|
+
# http body (model)
|
15862
|
+
post_body = nil
|
15863
|
+
|
15864
|
+
# form parameters
|
15865
|
+
post_files = []
|
15866
|
+
|
15867
|
+
auth_names = ['JWT']
|
15868
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
15869
|
+
:header_params => header_params,
|
15870
|
+
:query_params => query_params,
|
15871
|
+
:body => post_body,
|
15872
|
+
:files => post_files,
|
15873
|
+
:auth_names => auth_names,
|
15874
|
+
:return_type => 'FontsData')
|
15875
|
+
return data, status_code, headers
|
15876
|
+
end
|
15877
|
+
# Replaces specified font and returns presentation.
|
15878
|
+
# @param document Document data.
|
15879
|
+
# @param source_font Source font name.
|
15880
|
+
# @param target_font Target font name.
|
15881
|
+
# @param embed Embed target font.
|
15882
|
+
# @param password Document password.
|
15883
|
+
# @param fonts_folder Custom fonts folder.
|
15884
|
+
def replace_font_online(document, source_font, target_font, embed = nil, password = nil, fonts_folder = nil)
|
15885
|
+
data, _status_code, _headers = replace_font_online_with_http_info(document, source_font, target_font, embed, password, fonts_folder)
|
15886
|
+
data
|
15887
|
+
end
|
15888
|
+
|
15889
|
+
# Replaces specified font and returns presentation.
|
15890
|
+
# @param document Document data.
|
15891
|
+
# @param source_font Source font name.
|
15892
|
+
# @param target_font Target font name.
|
15893
|
+
# @param embed Embed target font.
|
15894
|
+
# @param password Document password.
|
15895
|
+
# @param fonts_folder Custom fonts folder.
|
15896
|
+
def replace_font_online_with_http_info(document, source_font, target_font, embed = nil, password = nil, fonts_folder = nil)
|
15897
|
+
if @api_client.config.debugging
|
15898
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.replace_font_online ...'
|
15899
|
+
end
|
15900
|
+
|
15901
|
+
# verify the required parameter 'document' is set
|
15902
|
+
if @api_client.config.client_side_validation && document.nil?
|
15903
|
+
fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.replace_font_online"
|
15904
|
+
end
|
15905
|
+
# verify the required parameter 'source_font' is set
|
15906
|
+
if @api_client.config.client_side_validation && source_font.nil?
|
15907
|
+
fail ArgumentError, "Missing the required parameter 'source_font' when calling SlidesApi.replace_font_online"
|
15908
|
+
end
|
15909
|
+
# verify the required parameter 'target_font' is set
|
15910
|
+
if @api_client.config.client_side_validation && target_font.nil?
|
15911
|
+
fail ArgumentError, "Missing the required parameter 'target_font' when calling SlidesApi.replace_font_online"
|
15912
|
+
end
|
15913
|
+
# resource path
|
15914
|
+
local_var_path = '/slides/fonts/{sourceFont}/replace/{targetFont}'
|
15915
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'sourceFont', source_font)
|
15916
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'targetFont', target_font)
|
15917
|
+
|
15918
|
+
# query parameters
|
15919
|
+
query_params = {}
|
15920
|
+
query_params[:'embed'] = @api_client.prepare_for_query(embed) unless embed.nil?
|
15921
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
15922
|
+
|
15923
|
+
# header parameters
|
15924
|
+
header_params = {}
|
15925
|
+
# HTTP header 'Accept' (if needed)
|
15926
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
15927
|
+
# HTTP header 'Content-Type'
|
15928
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
15929
|
+
header_params[:'password'] = password unless password.nil?
|
15930
|
+
|
15931
|
+
# http body (model)
|
15932
|
+
post_body = nil
|
15933
|
+
|
15934
|
+
# form parameters
|
15935
|
+
post_files = []
|
15936
|
+
if document
|
15937
|
+
post_files = post_files.push(document)
|
15938
|
+
end
|
15939
|
+
|
15940
|
+
auth_names = ['JWT']
|
15941
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
15942
|
+
:header_params => header_params,
|
15943
|
+
:query_params => query_params,
|
15944
|
+
:body => post_body,
|
15945
|
+
:files => post_files,
|
15946
|
+
:auth_names => auth_names,
|
15947
|
+
:return_type => 'File')
|
15948
|
+
return data, status_code, headers
|
15949
|
+
end
|
15636
15950
|
# Replace text with a new value.
|
15637
15951
|
# @param name Document name.
|
15638
15952
|
# @param old_value Text value to be replaced.
|
@@ -17534,24 +17848,26 @@ module AsposeSlidesCloud
|
|
17534
17848
|
end
|
17535
17849
|
# Embeds specified font and returns presentation fonts info.
|
17536
17850
|
# @param name Document name.
|
17537
|
-
# @param font_name
|
17851
|
+
# @param font_name Font name.
|
17538
17852
|
# @param only_used Only used characters will be embedded.
|
17539
17853
|
# @param password Document password.
|
17540
17854
|
# @param folder Document folder.
|
17541
17855
|
# @param storage Document storage.
|
17542
|
-
|
17543
|
-
|
17856
|
+
# @param fonts_folder Custom fonts folder.
|
17857
|
+
def set_embedded_font(name, font_name, only_used = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
17858
|
+
data, _status_code, _headers = set_embedded_font_with_http_info(name, font_name, only_used, password, folder, storage, fonts_folder)
|
17544
17859
|
data
|
17545
17860
|
end
|
17546
17861
|
|
17547
17862
|
# Embeds specified font and returns presentation fonts info.
|
17548
17863
|
# @param name Document name.
|
17549
|
-
# @param font_name
|
17864
|
+
# @param font_name Font name.
|
17550
17865
|
# @param only_used Only used characters will be embedded.
|
17551
17866
|
# @param password Document password.
|
17552
17867
|
# @param folder Document folder.
|
17553
17868
|
# @param storage Document storage.
|
17554
|
-
|
17869
|
+
# @param fonts_folder Custom fonts folder.
|
17870
|
+
def set_embedded_font_with_http_info(name, font_name, only_used = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
17555
17871
|
if @api_client.config.debugging
|
17556
17872
|
@api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font ...'
|
17557
17873
|
end
|
@@ -17574,6 +17890,7 @@ module AsposeSlidesCloud
|
|
17574
17890
|
query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
|
17575
17891
|
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
17576
17892
|
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
17893
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
17577
17894
|
|
17578
17895
|
# header parameters
|
17579
17896
|
header_params = {}
|
@@ -17599,13 +17916,148 @@ module AsposeSlidesCloud
|
|
17599
17916
|
:return_type => 'FontsData')
|
17600
17917
|
return data, status_code, headers
|
17601
17918
|
end
|
17919
|
+
# Embeds font from request and returns presentation fonts info.
|
17920
|
+
# @param font Font data.
|
17921
|
+
# @param name Document name.
|
17922
|
+
# @param only_used Only used characters will be embedded.
|
17923
|
+
# @param password Document password.
|
17924
|
+
# @param folder Document folder.
|
17925
|
+
# @param storage Document storage.
|
17926
|
+
def set_embedded_font_from_request(font, name, only_used = nil, password = nil, folder = nil, storage = nil)
|
17927
|
+
data, _status_code, _headers = set_embedded_font_from_request_with_http_info(font, name, only_used, password, folder, storage)
|
17928
|
+
data
|
17929
|
+
end
|
17930
|
+
|
17931
|
+
# Embeds font from request and returns presentation fonts info.
|
17932
|
+
# @param font Font data.
|
17933
|
+
# @param name Document name.
|
17934
|
+
# @param only_used Only used characters will be embedded.
|
17935
|
+
# @param password Document password.
|
17936
|
+
# @param folder Document folder.
|
17937
|
+
# @param storage Document storage.
|
17938
|
+
def set_embedded_font_from_request_with_http_info(font, name, only_used = nil, password = nil, folder = nil, storage = nil)
|
17939
|
+
if @api_client.config.debugging
|
17940
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font_from_request ...'
|
17941
|
+
end
|
17942
|
+
|
17943
|
+
# verify the required parameter 'font' is set
|
17944
|
+
if @api_client.config.client_side_validation && font.nil?
|
17945
|
+
fail ArgumentError, "Missing the required parameter 'font' when calling SlidesApi.set_embedded_font_from_request"
|
17946
|
+
end
|
17947
|
+
# verify the required parameter 'name' is set
|
17948
|
+
if @api_client.config.client_side_validation && name.nil?
|
17949
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.set_embedded_font_from_request"
|
17950
|
+
end
|
17951
|
+
# resource path
|
17952
|
+
local_var_path = '/slides/{name}/fonts/embedded'
|
17953
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
17954
|
+
|
17955
|
+
# query parameters
|
17956
|
+
query_params = {}
|
17957
|
+
query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
|
17958
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
17959
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
17960
|
+
|
17961
|
+
# header parameters
|
17962
|
+
header_params = {}
|
17963
|
+
# HTTP header 'Accept' (if needed)
|
17964
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
17965
|
+
# HTTP header 'Content-Type'
|
17966
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
17967
|
+
header_params[:'password'] = password unless password.nil?
|
17968
|
+
|
17969
|
+
# http body (model)
|
17970
|
+
post_body = nil
|
17971
|
+
|
17972
|
+
# form parameters
|
17973
|
+
post_files = []
|
17974
|
+
if font
|
17975
|
+
post_files = post_files.push(font)
|
17976
|
+
end
|
17977
|
+
|
17978
|
+
auth_names = ['JWT']
|
17979
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
17980
|
+
:header_params => header_params,
|
17981
|
+
:query_params => query_params,
|
17982
|
+
:body => post_body,
|
17983
|
+
:files => post_files,
|
17984
|
+
:auth_names => auth_names,
|
17985
|
+
:return_type => 'FontsData')
|
17986
|
+
return data, status_code, headers
|
17987
|
+
end
|
17988
|
+
# Embeds font from request and returns presentation.
|
17989
|
+
# @param document Document data.
|
17990
|
+
# @param font Font data.
|
17991
|
+
# @param only_used Only used characters will be embedded.
|
17992
|
+
# @param password Document password.
|
17993
|
+
def set_embedded_font_from_request_online(document, font, only_used = nil, password = nil)
|
17994
|
+
data, _status_code, _headers = set_embedded_font_from_request_online_with_http_info(document, font, only_used, password)
|
17995
|
+
data
|
17996
|
+
end
|
17997
|
+
|
17998
|
+
# Embeds font from request and returns presentation.
|
17999
|
+
# @param document Document data.
|
18000
|
+
# @param font Font data.
|
18001
|
+
# @param only_used Only used characters will be embedded.
|
18002
|
+
# @param password Document password.
|
18003
|
+
def set_embedded_font_from_request_online_with_http_info(document, font, only_used = nil, password = nil)
|
18004
|
+
if @api_client.config.debugging
|
18005
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font_from_request_online ...'
|
18006
|
+
end
|
18007
|
+
|
18008
|
+
# verify the required parameter 'document' is set
|
18009
|
+
if @api_client.config.client_side_validation && document.nil?
|
18010
|
+
fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.set_embedded_font_from_request_online"
|
18011
|
+
end
|
18012
|
+
# verify the required parameter 'font' is set
|
18013
|
+
if @api_client.config.client_side_validation && font.nil?
|
18014
|
+
fail ArgumentError, "Missing the required parameter 'font' when calling SlidesApi.set_embedded_font_from_request_online"
|
18015
|
+
end
|
18016
|
+
# resource path
|
18017
|
+
local_var_path = '/slides/fonts/embedded'
|
18018
|
+
|
18019
|
+
# query parameters
|
18020
|
+
query_params = {}
|
18021
|
+
query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
|
18022
|
+
|
18023
|
+
# header parameters
|
18024
|
+
header_params = {}
|
18025
|
+
# HTTP header 'Accept' (if needed)
|
18026
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
18027
|
+
# HTTP header 'Content-Type'
|
18028
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
18029
|
+
header_params[:'password'] = password unless password.nil?
|
18030
|
+
|
18031
|
+
# http body (model)
|
18032
|
+
post_body = nil
|
18033
|
+
|
18034
|
+
# form parameters
|
18035
|
+
post_files = []
|
18036
|
+
if document
|
18037
|
+
post_files = post_files.push(document)
|
18038
|
+
end
|
18039
|
+
if font
|
18040
|
+
post_files = post_files.push(font)
|
18041
|
+
end
|
18042
|
+
|
18043
|
+
auth_names = ['JWT']
|
18044
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
18045
|
+
:header_params => header_params,
|
18046
|
+
:query_params => query_params,
|
18047
|
+
:body => post_body,
|
18048
|
+
:files => post_files,
|
18049
|
+
:auth_names => auth_names,
|
18050
|
+
:return_type => 'File')
|
18051
|
+
return data, status_code, headers
|
18052
|
+
end
|
17602
18053
|
# Embeds specified font and returns presentation.
|
17603
18054
|
# @param document Document data.
|
17604
18055
|
# @param font_name Font name.
|
17605
18056
|
# @param only_used Only used characters will be embedded.
|
17606
18057
|
# @param password Document password.
|
17607
|
-
|
17608
|
-
|
18058
|
+
# @param fonts_folder Custom fonts folder.
|
18059
|
+
def set_embedded_font_online(document, font_name, only_used = nil, password = nil, fonts_folder = nil)
|
18060
|
+
data, _status_code, _headers = set_embedded_font_online_with_http_info(document, font_name, only_used, password, fonts_folder)
|
17609
18061
|
data
|
17610
18062
|
end
|
17611
18063
|
|
@@ -17614,7 +18066,8 @@ module AsposeSlidesCloud
|
|
17614
18066
|
# @param font_name Font name.
|
17615
18067
|
# @param only_used Only used characters will be embedded.
|
17616
18068
|
# @param password Document password.
|
17617
|
-
|
18069
|
+
# @param fonts_folder Custom fonts folder.
|
18070
|
+
def set_embedded_font_online_with_http_info(document, font_name, only_used = nil, password = nil, fonts_folder = nil)
|
17618
18071
|
if @api_client.config.debugging
|
17619
18072
|
@api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font_online ...'
|
17620
18073
|
end
|
@@ -17634,6 +18087,7 @@ module AsposeSlidesCloud
|
|
17634
18087
|
# query parameters
|
17635
18088
|
query_params = {}
|
17636
18089
|
query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
|
18090
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
17637
18091
|
|
17638
18092
|
# header parameters
|
17639
18093
|
header_params = {}
|
@@ -76,6 +76,10 @@ module AsposeSlidesCloud
|
|
76
76
|
def ==(o)
|
77
77
|
return true if self.equal?(o)
|
78
78
|
self.class == o.class &&
|
79
|
+
fill_format == o.fill_format &&
|
80
|
+
effect_format == o.effect_format &&
|
81
|
+
three_d_format == o.three_d_format &&
|
82
|
+
line_format == o.line_format &&
|
79
83
|
x_value == o.x_value &&
|
80
84
|
y_value == o.y_value &&
|
81
85
|
bubble_size == o.bubble_size
|
@@ -90,7 +94,7 @@ module AsposeSlidesCloud
|
|
90
94
|
# Calculates hash code according to all attributes.
|
91
95
|
# @return [Fixnum] Hash code
|
92
96
|
def hash
|
93
|
-
[x_value, y_value, bubble_size].hash
|
97
|
+
[fill_format, effect_format, three_d_format, line_format, x_value, y_value, bubble_size].hash
|
94
98
|
end
|
95
99
|
|
96
100
|
# Builds the object from hash
|