aspose_slides_cloud 22.7.0 → 22.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ca853b76b83608f1f2fa907ba09a5b6791ba55bc856e563f1d3c11591013489
4
- data.tar.gz: 02f4e40029d045dc320b4fd8a7b4929bfc4caa9ec6b210f68751490ec578a938
3
+ metadata.gz: 90ef1251d56743c89a33bba00001b0b1ebc7c5a411b38984bd185c610666314e
4
+ data.tar.gz: 5549286ec30f2c2507b39319a40ab295cb67ac2d11533875baa1324f246dacd1
5
5
  SHA512:
6
- metadata.gz: 3d66816c50b2db5caeae59d3314725dc236fb3e159d7e047c8deae76cb432c7703a3afe8547d40a4760d6d79ab5722609f3f3a5337ea44d3bde1fd9796208e88
7
- data.tar.gz: 3d28a2246cea34e5a5b477b45060418d86eb97797a0967403412619dfbc787683f784a09a72df02c99adbc3dafbbc24ce7a370f863238af8e43d8ffe3d87b01d
6
+ metadata.gz: bb88b9619058f4463b9fea8528ee44781600f50c618a3d1e3faa079190551714ff9a94b0d43a1dd8f5246b59936db67c547d249df17693c370509ab40312fedf
7
+ data.tar.gz: 707baaae1c36b96af1ad153bd3b423746b8b2c69b03ba3b644750180f205486850a9afa5d452d20177cc501a21fb81007c081cc02f38cc5944f9fcc8eb1d9520
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aspose_slides_cloud (22.7.0)
4
+ aspose_slides_cloud (22.8.0)
5
5
  faraday (~> 0.17, >= 0.17.3)
6
6
  json (~> 2.1, >= 2.1.0)
7
7
 
@@ -9,8 +9,8 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ZenTest (4.12.1)
12
- addressable (2.8.0)
13
- public_suffix (>= 2.0.2, < 5.0)
12
+ addressable (2.8.1)
13
+ public_suffix (>= 2.0.2, < 6.0)
14
14
  autotest (4.4.6)
15
15
  ZenTest (>= 4.4.1)
16
16
  autotest-fsevent (0.2.19)
@@ -26,7 +26,7 @@ GEM
26
26
  hashdiff (1.0.1)
27
27
  json (2.6.2)
28
28
  multipart-post (2.2.3)
29
- public_suffix (4.0.7)
29
+ public_suffix (5.0.0)
30
30
  rake (12.3.3)
31
31
  rexml (3.2.5)
32
32
  rspec (3.11.0)
data/README.md CHANGED
@@ -27,6 +27,12 @@ You may want to check out Aspose free [PPT to PDF](https://products.aspose.app/s
27
27
  **Web:** HTML/HTML5
28
28
  **Other:** MPEG4, SWF (export whole presentations)
29
29
 
30
+ ## Enhancements in Version 22.8
31
+
32
+ * With new **GetFonts** and **GetFontsOnline** methods you can get a list for fonts used in the presentation.
33
+ * Added new **SetEmbeddedFont**, **SetEmbeddedFontOnline**, **DeleteEmbeddedFont** and **DeleteEmbeddedFontOnline** methods to embed/unembed presentation fonts.
34
+ * Added new **ImportImagesFromSvg** method to import SVG images as individual geometry shapes.
35
+
30
36
  ## Enhancements in Version 22.7
31
37
 
32
38
  * Added **Html**, **Pdf**, **Xps**, **Pptx**, **Odp**, **Otp**, **Ppt**, **Pps**, **Ppsx**, **Pptm**, **Ppsm**, **Potx**, **Pot**, **Potm**, **Svg**, **Fodp**, **Xaml**, **Html5** to the list of allowed values for **SlideExportFormat** enum. You can now export slide notes to those formats.
@@ -0,0 +1,20 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1280" height="720" viewBox="-196.5 -102 393 204" xml:space="preserve">
2
+ <desc>Created with Fabric.js 4.6.0</desc>
3
+ <defs>
4
+ </defs>
5
+ <g transform="matrix(1 0 0 1 -37.79 -46.59)" >
6
+ <rect style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: round; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-opacity: 0; fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" x="-50" y="-25" rx="0" ry="0" width="100" height="50" />
7
+ </g>
8
+ <g transform="matrix(1 0 0 1 -55.95 24.61)" >
9
+ <polygon style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: round; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-opacity: 0; fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" points="0,-35 40,35 -40,35 " />
10
+ </g>
11
+ <g transform="matrix(1 0 0 1 -46.97 39.61)" >
12
+ <circle style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: round; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-opacity: 0; fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" cx="0" cy="0" r="50" />
13
+ </g>
14
+ <g transform="matrix(1 0 0 1 70.14 37.97)" >
15
+ <polygon style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: round; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-opacity: 0; fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" points="-60,0 -20,30 -20,10 60,10 60,-10 -20,-10 -20,-30 " />
16
+ </g>
17
+ <g transform="matrix(1 0 0 1 0 -17.7)" >
18
+ <line style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" x1="-174.95139114253502" y1="71.91991432084097" x2="174.95139114253502" y2="-71.91991432084097" />
19
+ </g>
20
+ </svg>
data/TestData/test.pptx CHANGED
Binary file
@@ -4387,6 +4387,130 @@ module AsposeSlidesCloud
4387
4387
  :return_type => 'DocumentProperties')
4388
4388
  return data, status_code, headers
4389
4389
  end
4390
+ # Removes specified embedded font and returns presentation fonts info.
4391
+ # @param name Document name.
4392
+ # @param font_name Font name.
4393
+ # @param password Document password.
4394
+ # @param folder Document folder.
4395
+ # @param storage Document storage.
4396
+ def delete_embedded_font(name, font_name, password = nil, folder = nil, storage = nil)
4397
+ data, _status_code, _headers = delete_embedded_font_with_http_info(name, font_name, password, folder, storage)
4398
+ data
4399
+ end
4400
+
4401
+ # Removes specified embedded font and returns presentation fonts info.
4402
+ # @param name Document name.
4403
+ # @param font_name Font name.
4404
+ # @param password Document password.
4405
+ # @param folder Document folder.
4406
+ # @param storage Document storage.
4407
+ def delete_embedded_font_with_http_info(name, font_name, password = nil, folder = nil, storage = nil)
4408
+ if @api_client.config.debugging
4409
+ @api_client.config.logger.debug 'Calling API: SlidesApi.delete_embedded_font ...'
4410
+ end
4411
+
4412
+ # verify the required parameter 'name' is set
4413
+ if @api_client.config.client_side_validation && name.nil?
4414
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.delete_embedded_font"
4415
+ end
4416
+ # verify the required parameter 'font_name' is set
4417
+ if @api_client.config.client_side_validation && font_name.nil?
4418
+ fail ArgumentError, "Missing the required parameter 'font_name' when calling SlidesApi.delete_embedded_font"
4419
+ end
4420
+ # resource path
4421
+ local_var_path = '/slides/{name}/fonts/embedded/{fontName}'
4422
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
4423
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'fontName', font_name)
4424
+
4425
+ # query parameters
4426
+ query_params = {}
4427
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
4428
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
4429
+
4430
+ # header parameters
4431
+ header_params = {}
4432
+ # HTTP header 'Accept' (if needed)
4433
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4434
+ # HTTP header 'Content-Type'
4435
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4436
+ header_params[:'password'] = password unless password.nil?
4437
+
4438
+ # http body (model)
4439
+ post_body = nil
4440
+
4441
+ # form parameters
4442
+ post_files = []
4443
+
4444
+ auth_names = ['JWT']
4445
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
4446
+ :header_params => header_params,
4447
+ :query_params => query_params,
4448
+ :body => post_body,
4449
+ :files => post_files,
4450
+ :auth_names => auth_names,
4451
+ :return_type => 'FontsData')
4452
+ return data, status_code, headers
4453
+ end
4454
+ # Removes specified embedded font and returns presentation.
4455
+ # @param document Document data.
4456
+ # @param font_name Document name.
4457
+ # @param password Document password.
4458
+ def delete_embedded_font_online(document, font_name, password = nil)
4459
+ data, _status_code, _headers = delete_embedded_font_online_with_http_info(document, font_name, password)
4460
+ data
4461
+ end
4462
+
4463
+ # Removes specified embedded font and returns presentation.
4464
+ # @param document Document data.
4465
+ # @param font_name Document name.
4466
+ # @param password Document password.
4467
+ def delete_embedded_font_online_with_http_info(document, font_name, password = nil)
4468
+ if @api_client.config.debugging
4469
+ @api_client.config.logger.debug 'Calling API: SlidesApi.delete_embedded_font_online ...'
4470
+ end
4471
+
4472
+ # verify the required parameter 'document' is set
4473
+ if @api_client.config.client_side_validation && document.nil?
4474
+ fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.delete_embedded_font_online"
4475
+ end
4476
+ # verify the required parameter 'font_name' is set
4477
+ if @api_client.config.client_side_validation && font_name.nil?
4478
+ fail ArgumentError, "Missing the required parameter 'font_name' when calling SlidesApi.delete_embedded_font_online"
4479
+ end
4480
+ # resource path
4481
+ local_var_path = '/slides/fonts/embedded/{fontName}/delete'
4482
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'fontName', font_name)
4483
+
4484
+ # query parameters
4485
+ query_params = {}
4486
+
4487
+ # header parameters
4488
+ header_params = {}
4489
+ # HTTP header 'Accept' (if needed)
4490
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
4491
+ # HTTP header 'Content-Type'
4492
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
4493
+ header_params[:'password'] = password unless password.nil?
4494
+
4495
+ # http body (model)
4496
+ post_body = nil
4497
+
4498
+ # form parameters
4499
+ post_files = []
4500
+ if document
4501
+ post_files = post_files.push(document)
4502
+ end
4503
+
4504
+ auth_names = ['JWT']
4505
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4506
+ :header_params => header_params,
4507
+ :query_params => query_params,
4508
+ :body => post_body,
4509
+ :files => post_files,
4510
+ :auth_names => auth_names,
4511
+ :return_type => 'File')
4512
+ return data, status_code, headers
4513
+ end
4390
4514
  # Delete file
4391
4515
  # @param path File path e.g. '/folder/file.ext'
4392
4516
  # @param storage_name Storage name
@@ -10076,6 +10200,116 @@ module AsposeSlidesCloud
10076
10200
  :return_type => 'FontScheme')
10077
10201
  return data, status_code, headers
10078
10202
  end
10203
+ # Returns presentation fonts info.
10204
+ # @param name Document name.
10205
+ # @param password Document password.
10206
+ # @param folder Document folder.
10207
+ # @param storage Document storage.
10208
+ def get_fonts(name, password = nil, folder = nil, storage = nil)
10209
+ data, _status_code, _headers = get_fonts_with_http_info(name, password, folder, storage)
10210
+ data
10211
+ end
10212
+
10213
+ # Returns presentation fonts info.
10214
+ # @param name Document name.
10215
+ # @param password Document password.
10216
+ # @param folder Document folder.
10217
+ # @param storage Document storage.
10218
+ def get_fonts_with_http_info(name, password = nil, folder = nil, storage = nil)
10219
+ if @api_client.config.debugging
10220
+ @api_client.config.logger.debug 'Calling API: SlidesApi.get_fonts ...'
10221
+ end
10222
+
10223
+ # verify the required parameter 'name' is set
10224
+ if @api_client.config.client_side_validation && name.nil?
10225
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_fonts"
10226
+ end
10227
+ # resource path
10228
+ local_var_path = '/slides/{name}/fonts'
10229
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
10230
+
10231
+ # query parameters
10232
+ query_params = {}
10233
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
10234
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
10235
+
10236
+ # header parameters
10237
+ header_params = {}
10238
+ # HTTP header 'Accept' (if needed)
10239
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10240
+ # HTTP header 'Content-Type'
10241
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
10242
+ header_params[:'password'] = password unless password.nil?
10243
+
10244
+ # http body (model)
10245
+ post_body = nil
10246
+
10247
+ # form parameters
10248
+ post_files = []
10249
+
10250
+ auth_names = ['JWT']
10251
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
10252
+ :header_params => header_params,
10253
+ :query_params => query_params,
10254
+ :body => post_body,
10255
+ :files => post_files,
10256
+ :auth_names => auth_names,
10257
+ :return_type => 'FontsData')
10258
+ return data, status_code, headers
10259
+ end
10260
+ # Returns presentation fonts info.
10261
+ # @param document Document data.
10262
+ # @param password Document password.
10263
+ def get_fonts_online(document, password = nil)
10264
+ data, _status_code, _headers = get_fonts_online_with_http_info(document, password)
10265
+ data
10266
+ end
10267
+
10268
+ # Returns presentation fonts info.
10269
+ # @param document Document data.
10270
+ # @param password Document password.
10271
+ def get_fonts_online_with_http_info(document, password = nil)
10272
+ if @api_client.config.debugging
10273
+ @api_client.config.logger.debug 'Calling API: SlidesApi.get_fonts_online ...'
10274
+ end
10275
+
10276
+ # verify the required parameter 'document' is set
10277
+ if @api_client.config.client_side_validation && document.nil?
10278
+ fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.get_fonts_online"
10279
+ end
10280
+ # resource path
10281
+ local_var_path = '/slides/fonts'
10282
+
10283
+ # query parameters
10284
+ query_params = {}
10285
+
10286
+ # header parameters
10287
+ header_params = {}
10288
+ # HTTP header 'Accept' (if needed)
10289
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10290
+ # HTTP header 'Content-Type'
10291
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
10292
+ header_params[:'password'] = password unless password.nil?
10293
+
10294
+ # http body (model)
10295
+ post_body = nil
10296
+
10297
+ # form parameters
10298
+ post_files = []
10299
+ if document
10300
+ post_files = post_files.push(document)
10301
+ end
10302
+
10303
+ auth_names = ['JWT']
10304
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
10305
+ :header_params => header_params,
10306
+ :query_params => query_params,
10307
+ :body => post_body,
10308
+ :files => post_files,
10309
+ :auth_names => auth_names,
10310
+ :return_type => 'FontsData')
10311
+ return data, status_code, headers
10312
+ end
10079
10313
  # Read slide theme format scheme info.
10080
10314
  # @param name Document name.
10081
10315
  # @param slide_index Slide index.
@@ -14523,6 +14757,90 @@ module AsposeSlidesCloud
14523
14757
  :return_type => 'Document')
14524
14758
  return data, status_code, headers
14525
14759
  end
14760
+ # Imports shapes from SVG file.
14761
+ # @param name Document name.
14762
+ # @param slide_index Slide index.
14763
+ # @param image SVG image data.
14764
+ # @param x The X coordinate of the imported group of shapes (0 is default if not specified).
14765
+ # @param y The Y coordinate of the imported group of shapes (0 is default if not specified).
14766
+ # @param width The width of the imported group of shapes (default is SVG image width).
14767
+ # @param height The height of the imported group of shapes (default is SVG image width).
14768
+ # @param shapes Indexes of shapes to import. All shapes are imported if not specified.
14769
+ # @param password Document password.
14770
+ # @param folder Presentation folder.
14771
+ # @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)
14774
+ data
14775
+ end
14776
+
14777
+ # Imports shapes from SVG file.
14778
+ # @param name Document name.
14779
+ # @param slide_index Slide index.
14780
+ # @param image SVG image data.
14781
+ # @param x The X coordinate of the imported group of shapes (0 is default if not specified).
14782
+ # @param y The Y coordinate of the imported group of shapes (0 is default if not specified).
14783
+ # @param width The width of the imported group of shapes (default is SVG image width).
14784
+ # @param height The height of the imported group of shapes (default is SVG image width).
14785
+ # @param shapes Indexes of shapes to import. All shapes are imported if not specified.
14786
+ # @param password Document password.
14787
+ # @param folder Presentation folder.
14788
+ # @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)
14790
+ if @api_client.config.debugging
14791
+ @api_client.config.logger.debug 'Calling API: SlidesApi.import_shapes_from_svg ...'
14792
+ end
14793
+
14794
+ # verify the required parameter 'name' is set
14795
+ if @api_client.config.client_side_validation && name.nil?
14796
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.import_shapes_from_svg"
14797
+ end
14798
+ # verify the required parameter 'slide_index' is set
14799
+ if @api_client.config.client_side_validation && slide_index.nil?
14800
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.import_shapes_from_svg"
14801
+ end
14802
+ # resource path
14803
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/fromSvg'
14804
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
14805
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
14806
+
14807
+ # query parameters
14808
+ query_params = {}
14809
+ query_params[:'x'] = @api_client.prepare_for_query(x) unless x.nil?
14810
+ query_params[:'y'] = @api_client.prepare_for_query(y) unless y.nil?
14811
+ query_params[:'width'] = @api_client.prepare_for_query(width) unless width.nil?
14812
+ query_params[:'height'] = @api_client.prepare_for_query(height) unless height.nil?
14813
+ query_params[:'shapes'] = @api_client.prepare_for_query(shapes) unless shapes.nil?
14814
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
14815
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
14816
+
14817
+ # header parameters
14818
+ header_params = {}
14819
+ # HTTP header 'Accept' (if needed)
14820
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14821
+ # HTTP header 'Content-Type'
14822
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
14823
+ header_params[:'password'] = password unless password.nil?
14824
+
14825
+ # http body (model)
14826
+ post_body = nil
14827
+
14828
+ # form parameters
14829
+ post_files = []
14830
+ if image
14831
+ post_files = post_files.push(image)
14832
+ end
14833
+
14834
+ auth_names = ['JWT']
14835
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
14836
+ :header_params => header_params,
14837
+ :query_params => query_params,
14838
+ :body => post_body,
14839
+ :files => post_files,
14840
+ :auth_names => auth_names,
14841
+ :return_type => 'Shapes')
14842
+ return data, status_code, headers
14843
+ end
14526
14844
  # Merge the presentation with other presentations specified in the request parameter.
14527
14845
  # @param name Document name.
14528
14846
  # @param request PresentationsMergeRequest with a list of presentations to merge.
@@ -17214,6 +17532,136 @@ module AsposeSlidesCloud
17214
17532
  :return_type => 'DocumentProperty')
17215
17533
  return data, status_code, headers
17216
17534
  end
17535
+ # Embeds specified font and returns presentation fonts info.
17536
+ # @param name Document name.
17537
+ # @param font_name Document name.
17538
+ # @param only_used Only used characters will be embedded.
17539
+ # @param password Document password.
17540
+ # @param folder Document folder.
17541
+ # @param storage Document storage.
17542
+ def set_embedded_font(name, font_name, only_used = nil, password = nil, folder = nil, storage = nil)
17543
+ data, _status_code, _headers = set_embedded_font_with_http_info(name, font_name, only_used, password, folder, storage)
17544
+ data
17545
+ end
17546
+
17547
+ # Embeds specified font and returns presentation fonts info.
17548
+ # @param name Document name.
17549
+ # @param font_name Document name.
17550
+ # @param only_used Only used characters will be embedded.
17551
+ # @param password Document password.
17552
+ # @param folder Document folder.
17553
+ # @param storage Document storage.
17554
+ def set_embedded_font_with_http_info(name, font_name, only_used = nil, password = nil, folder = nil, storage = nil)
17555
+ if @api_client.config.debugging
17556
+ @api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font ...'
17557
+ end
17558
+
17559
+ # verify the required parameter 'name' is set
17560
+ if @api_client.config.client_side_validation && name.nil?
17561
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.set_embedded_font"
17562
+ end
17563
+ # verify the required parameter 'font_name' is set
17564
+ if @api_client.config.client_side_validation && font_name.nil?
17565
+ fail ArgumentError, "Missing the required parameter 'font_name' when calling SlidesApi.set_embedded_font"
17566
+ end
17567
+ # resource path
17568
+ local_var_path = '/slides/{name}/fonts/embedded/{fontName}'
17569
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
17570
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'fontName', font_name)
17571
+
17572
+ # query parameters
17573
+ query_params = {}
17574
+ query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
17575
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
17576
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
17577
+
17578
+ # header parameters
17579
+ header_params = {}
17580
+ # HTTP header 'Accept' (if needed)
17581
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
17582
+ # HTTP header 'Content-Type'
17583
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
17584
+ header_params[:'password'] = password unless password.nil?
17585
+
17586
+ # http body (model)
17587
+ post_body = nil
17588
+
17589
+ # form parameters
17590
+ post_files = []
17591
+
17592
+ auth_names = ['JWT']
17593
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
17594
+ :header_params => header_params,
17595
+ :query_params => query_params,
17596
+ :body => post_body,
17597
+ :files => post_files,
17598
+ :auth_names => auth_names,
17599
+ :return_type => 'FontsData')
17600
+ return data, status_code, headers
17601
+ end
17602
+ # Embeds specified font and returns presentation.
17603
+ # @param document Document data.
17604
+ # @param font_name Font name.
17605
+ # @param only_used Only used characters will be embedded.
17606
+ # @param password Document password.
17607
+ def set_embedded_font_online(document, font_name, only_used = nil, password = nil)
17608
+ data, _status_code, _headers = set_embedded_font_online_with_http_info(document, font_name, only_used, password)
17609
+ data
17610
+ end
17611
+
17612
+ # Embeds specified font and returns presentation.
17613
+ # @param document Document data.
17614
+ # @param font_name Font name.
17615
+ # @param only_used Only used characters will be embedded.
17616
+ # @param password Document password.
17617
+ def set_embedded_font_online_with_http_info(document, font_name, only_used = nil, password = nil)
17618
+ if @api_client.config.debugging
17619
+ @api_client.config.logger.debug 'Calling API: SlidesApi.set_embedded_font_online ...'
17620
+ end
17621
+
17622
+ # verify the required parameter 'document' is set
17623
+ if @api_client.config.client_side_validation && document.nil?
17624
+ fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.set_embedded_font_online"
17625
+ end
17626
+ # verify the required parameter 'font_name' is set
17627
+ if @api_client.config.client_side_validation && font_name.nil?
17628
+ fail ArgumentError, "Missing the required parameter 'font_name' when calling SlidesApi.set_embedded_font_online"
17629
+ end
17630
+ # resource path
17631
+ local_var_path = '/slides/fonts/embedded/{fontName}'
17632
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'fontName', font_name)
17633
+
17634
+ # query parameters
17635
+ query_params = {}
17636
+ query_params[:'onlyUsed'] = @api_client.prepare_for_query(only_used) unless only_used.nil?
17637
+
17638
+ # header parameters
17639
+ header_params = {}
17640
+ # HTTP header 'Accept' (if needed)
17641
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
17642
+ # HTTP header 'Content-Type'
17643
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
17644
+ header_params[:'password'] = password unless password.nil?
17645
+
17646
+ # http body (model)
17647
+ post_body = nil
17648
+
17649
+ # form parameters
17650
+ post_files = []
17651
+ if document
17652
+ post_files = post_files.push(document)
17653
+ end
17654
+
17655
+ auth_names = ['JWT']
17656
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
17657
+ :header_params => header_params,
17658
+ :query_params => query_params,
17659
+ :body => post_body,
17660
+ :files => post_files,
17661
+ :auth_names => auth_names,
17662
+ :return_type => 'File')
17663
+ return data, status_code, headers
17664
+ end
17217
17665
  # Set header/footer the notes slide.
17218
17666
  # @param name Document name.
17219
17667
  # @param slide_index Slide index.