aspose_slides_cloud 26.6.0 → 26.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d3d7773c1d1a6765985ffce35a5a3626cf55c17106cb9b5516b9ba286577cd2
4
- data.tar.gz: 4cbe528430dac91c10ae8d86c6e37256df3d28f9f0f7369e451b42b15074234a
3
+ metadata.gz: 737a62ac77d668c38a4bb700d305999dd1fdc59ee52677013f47d3f2355d4a98
4
+ data.tar.gz: 36f0ecc973c4efd3a53776f46980bbfd9baaf46cf8a2c0e81728dd3ee64c01b9
5
5
  SHA512:
6
- metadata.gz: fb2ca0a3b6c7d5add7b60dd12df5317c3e1e91fd2e99622faf3949ea142ed7b6f3eaf24ace321f16c2cbce199afa486b20305af4043629f583650b4ac571a26e
7
- data.tar.gz: 16cfe2a04fc007c53d29aa3a68b9877678a6b57861cc44f0208146e1fa4c07b0c4e2de6cc53165c64d7c76e035ec13bf7b79bad0a9a23a8789512359f7f90003
6
+ metadata.gz: b2898e5825fabd7df9bdd94658594b71e0ca51befce1e5d07d50b3fec66c81e25b0a07fceff4ef6c4e14696085343fc8585161f740977a95742d65262d3329bd
7
+ data.tar.gz: 749cfd9ca3e3fa6a34001bf96ede4a3c15a37d6c4868ecfb4ca6477b4714f410ed3458d6b3a19b33b5830b10a04c6195081cde79ce80c0fd57c29547b54d0997
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aspose_slides_cloud (26.6.0)
4
+ aspose_slides_cloud (26.10.0)
5
5
  faraday (~> 1.0, >= 1.0.0)
6
6
  faraday-httpclient (~> 1.0, >= 1.0.0)
7
7
  httpclient (~> 2.2, >= 2.2.0)
@@ -12,18 +12,18 @@ GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
14
  ZenTest (4.12.2)
15
- addressable (2.9.0)
15
+ addressable (2.9.2)
16
16
  public_suffix (>= 2.0.2, < 8.0)
17
17
  autotest (4.4.6)
18
18
  ZenTest (>= 4.4.1)
19
19
  autotest-growl (0.2.16)
20
20
  autotest-rails-pure (4.1.2)
21
- bigdecimal (4.1.2)
21
+ bigdecimal (4.1.3)
22
22
  crack (1.0.1)
23
23
  bigdecimal
24
24
  rexml
25
25
  diff-lcs (1.6.2)
26
- faraday (1.10.5)
26
+ faraday (1.10.6)
27
27
  faraday-em_http (~> 1.0)
28
28
  faraday-em_synchrony (~> 1.0)
29
29
  faraday-excon (~> 1.1)
@@ -47,9 +47,9 @@ GEM
47
47
  faraday-rack (1.0.0)
48
48
  faraday-retry (1.0.4)
49
49
  hashdiff (1.2.1)
50
- httpclient (2.9.0)
50
+ httpclient (2.10.0)
51
51
  mutex_m
52
- json (2.19.9)
52
+ json (2.21.2)
53
53
  multipart-post (2.4.1)
54
54
  mutex_m (0.3.0)
55
55
  public_suffix (6.0.2)
@@ -68,7 +68,7 @@ GEM
68
68
  diff-lcs (>= 1.2.0, < 2.0)
69
69
  rspec-support (~> 3.13.0)
70
70
  rspec-support (3.13.7)
71
- rspec_junit_formatter (0.6.0)
71
+ rspec_junit_formatter (0.6.2)
72
72
  rspec-core (>= 2, < 4, != 2.12.0)
73
73
  ruby2_keywords (0.0.5)
74
74
  rubyzip (2.4.1)
data/README.md CHANGED
@@ -27,28 +27,18 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
27
27
  **Web:** HTML/HTML5
28
28
  **Other:** MPEG4, SWF (export whole presentations)
29
29
 
30
- ## Enhancements in Version 25.10
31
-
32
- * Added **SetEmbeddedFonts** and **SetEmbeddedFontsOnline** methods to embed many fonts in one call.
33
- * Removed **SetEmbeddedFontFromRequest** and **SetEmbeddedFontFromRequestOnline** methods. The above methods can be used instead.
34
- * Added optional **shapeIndex** and **shapeIndex** parameters to **GetSlideImages** method.
35
- * Renamed **GetVideoCaptionTracks**, **CreateVideoCaptionTrack**, **DeleteVideoCaptionTracks** and **DeleteVideoCaptionTracks** methods into **GetCaptionTracks**, **CreateCaptionTrack**, **DeleteCaptionTracks** and **DeleteCaptionTracks**. The methods now work with video frames and audio frames.
36
-
37
- ## Enhancements in Version 25.6
38
-
39
- * Added **GetVideoCaptionTracks**, **CreateVideoCaptionTrack**, **DeleteVideoCaptionTracks**, **DeleteVideoCaptionTracks** method.
40
- * Removed deprecated **DeletePictureCroppedAreas** method.
41
- * Added an optional **quality** parameter to **DownloadImage**, **DownloadImageOnline**, **DownloadImages**, **DownloadImagesOnline** method. It applies to jpeg fromat.
42
- * Added **RemoveEmptyLines**, **SlideNumberFormat** and **HandleRepeatedSpaces** properties to **MarkdownExportOptions** class.
43
- * Added **DeletePictureCroppedAreas** and **Resolution** parameters to **PictureFill** class that allow to compress and/or delete cropped aread of picture fill formats.
44
- * Added **Emf** to the list of allowed values for **ExportFormat**, **SlideExportFormat** and **ShapeExportFormat** enumerations. You can now export presentations, slides and shapes to EMF format.
45
- * Added **VolumeValue**, **FadeInDuration**, **FadeOutDuration**, **TrimFromStart** and **TrimFromEnd** properties to **AudioFrame** class.
46
- * Added **SkipJavaScriptLinks** boolean property to **ExportOptions** class.
47
- * Added **DisableFontLigatures** boolean property to **HtmlExportOptions**, **Html5ExportOptions** and **SvgExportOptions** class.
48
- * Added **SlidesLayoutOptions** property and removed **NotesCommentsLayouting** property from **Html5ExportOptions** class.
49
- * Added **RemoveEmptyLines**, **SlideNumberFormat** and **HandleRepeatedSpaces** properties to **MarkdownExportOptions** class.
50
- * Added **SlidesLayoutOptions** property and removed **CommentsPosition**, **CommentsAreaColor**, **CommentsAreaWidth**, **NotesPosition** and **ShowCommentsByNoAuthor** properties from **SwfExportOptions** class.
51
- * Added **RefreshThumbnail** boolean property to **PptxExportOptions** class.
30
+ ## Enhancements in Version 26.10
31
+
32
+ * New **download_paragraph** and **save_paragraph** methods to render a paragraph to an image (JPEG, PNG, GIF, BMP or TIFF) and return it in the response or save it to a storage.
33
+ * New **download_table_cell_paragraph** and **save_table_cell_paragraph** methods to render a table cell paragraph to an image.
34
+ * Added **pictures_compression** property to **Html5ExportOptions** class. It specifies the compression level for pictures in the HTML5 output.
35
+
36
+ ## Enhancements in Version 26.6
37
+
38
+ * Added **clone_from_slide** parameter to **create_shape** and **create_special_slide_shape** methods, enabling cross-slide shape cloning.
39
+ * New **import_chart_from_workbook** and **import_table_from_workbook** methods to import charts and tables from an Excel workbook.
40
+ * Enriched **SmartArt** and **SmartArtNode** with **default_paragraph_format** write-only property. You can specify paragraph formatting for a smart art shape and individual nodes.
41
+ * Added **compression_level** property to **PptxExportOptions** class. It controls the ZIP compression used when saving a PPTX file.
52
42
 
53
43
  ## Licensing
54
44
  All Aspose.Slides Cloud SDKs are licensed under MIT License.
@@ -8480,6 +8480,110 @@ module AsposeSlidesCloud
8480
8480
  :return_type => 'File')
8481
8481
  return data, status_code, headers
8482
8482
  end
8483
+ # Render paragraph to specified picture format.
8484
+ # @param name Presentation name.
8485
+ # @param slide_index Slide index.
8486
+ # @param shape_index Index of shape starting from 1
8487
+ # @param paragraph_index Paragraph index.
8488
+ # @param format Export picture format.
8489
+ # @param scale_x X scale ratio.
8490
+ # @param scale_y Y scale ratio.
8491
+ # @param quality Image quality (1 to 100); applies to JPEG only.
8492
+ # @param password Document password.
8493
+ # @param folder Presentation folder.
8494
+ # @param storage Presentation storage.
8495
+ # @param fonts_folder Fonts folder.
8496
+ # @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
8497
+ def download_paragraph(name, slide_index, shape_index, paragraph_index, format, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, sub_shape = nil)
8498
+ data, _status_code, _headers = download_paragraph_with_http_info(name, slide_index, shape_index, paragraph_index, format, scale_x, scale_y, quality, password, folder, storage, fonts_folder, sub_shape)
8499
+ data
8500
+ end
8501
+
8502
+ # Render paragraph to specified picture format.
8503
+ # @param name Presentation name.
8504
+ # @param slide_index Slide index.
8505
+ # @param shape_index Index of shape starting from 1
8506
+ # @param paragraph_index Paragraph index.
8507
+ # @param format Export picture format.
8508
+ # @param scale_x X scale ratio.
8509
+ # @param scale_y Y scale ratio.
8510
+ # @param quality Image quality (1 to 100); applies to JPEG only.
8511
+ # @param password Document password.
8512
+ # @param folder Presentation folder.
8513
+ # @param storage Presentation storage.
8514
+ # @param fonts_folder Fonts folder.
8515
+ # @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
8516
+ def download_paragraph_with_http_info(name, slide_index, shape_index, paragraph_index, format, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, sub_shape = nil)
8517
+ if @api_client.config.debugging
8518
+ @api_client.config.logger.debug 'Calling API: SlidesApi.download_paragraph ...'
8519
+ end
8520
+
8521
+ # verify the required parameter 'name' is set
8522
+ if @api_client.config.client_side_validation && name.nil?
8523
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.download_paragraph"
8524
+ end
8525
+ # verify the required parameter 'slide_index' is set
8526
+ if @api_client.config.client_side_validation && slide_index.nil?
8527
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.download_paragraph"
8528
+ end
8529
+ # verify the required parameter 'shape_index' is set
8530
+ if @api_client.config.client_side_validation && shape_index.nil?
8531
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.download_paragraph"
8532
+ end
8533
+ # verify the required parameter 'paragraph_index' is set
8534
+ if @api_client.config.client_side_validation && paragraph_index.nil?
8535
+ fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.download_paragraph"
8536
+ end
8537
+ # verify the required parameter 'format' is set
8538
+ if @api_client.config.client_side_validation && format.nil?
8539
+ fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_paragraph"
8540
+ end
8541
+ # verify enum value
8542
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff'].any?{ |s| s.casecmp(format)==0 }
8543
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff"
8544
+ end
8545
+ # resource path
8546
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/{format}'
8547
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
8548
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
8549
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
8550
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
8551
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
8552
+
8553
+ # query parameters
8554
+ query_params = {}
8555
+ query_params[:'scaleX'] = @api_client.prepare_for_query(scale_x) unless scale_x.nil?
8556
+ query_params[:'scaleY'] = @api_client.prepare_for_query(scale_y) unless scale_y.nil?
8557
+ query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
8558
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
8559
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
8560
+ query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
8561
+ query_params[:'subShape'] = @api_client.prepare_for_query(sub_shape) unless sub_shape.nil?
8562
+
8563
+ # header parameters
8564
+ header_params = {}
8565
+ # HTTP header 'Accept' (if needed)
8566
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
8567
+ # HTTP header 'Content-Type'
8568
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
8569
+ header_params[:'password'] = password unless password.nil?
8570
+
8571
+ # http body (model)
8572
+ post_body = nil
8573
+
8574
+ # form parameters
8575
+ post_files = []
8576
+
8577
+ auth_names = ['JWT']
8578
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
8579
+ :header_params => header_params,
8580
+ :query_params => query_params,
8581
+ :body => post_body,
8582
+ :files => post_files,
8583
+ :auth_names => auth_names,
8584
+ :return_type => 'File')
8585
+ return data, status_code, headers
8586
+ end
8483
8587
  # Save a presentation to a specified format.
8484
8588
  # @param name Document name.
8485
8589
  # @param format Export format.
@@ -9098,6 +9202,121 @@ module AsposeSlidesCloud
9098
9202
  :return_type => 'File')
9099
9203
  return data, status_code, headers
9100
9204
  end
9205
+ # Render table cell paragraph to specified picture format.
9206
+ # @param name Document name.
9207
+ # @param slide_index Slide index.
9208
+ # @param shape_index Shape index.
9209
+ # @param row_index Row index.
9210
+ # @param cell_index Table cell index.
9211
+ # @param paragraph_index Paragraph index.
9212
+ # @param format Export picture format.
9213
+ # @param scale_x X scale ratio.
9214
+ # @param scale_y Y scale ratio.
9215
+ # @param quality Image quality (1 to 100); applies to JPEG only.
9216
+ # @param password Document password.
9217
+ # @param folder Document folder.
9218
+ # @param storage Document storage.
9219
+ # @param fonts_folder Fonts folder.
9220
+ def download_table_cell_paragraph(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
9221
+ data, _status_code, _headers = download_table_cell_paragraph_with_http_info(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, scale_x, scale_y, quality, password, folder, storage, fonts_folder)
9222
+ data
9223
+ end
9224
+
9225
+ # Render table cell paragraph to specified picture format.
9226
+ # @param name Document name.
9227
+ # @param slide_index Slide index.
9228
+ # @param shape_index Shape index.
9229
+ # @param row_index Row index.
9230
+ # @param cell_index Table cell index.
9231
+ # @param paragraph_index Paragraph index.
9232
+ # @param format Export picture format.
9233
+ # @param scale_x X scale ratio.
9234
+ # @param scale_y Y scale ratio.
9235
+ # @param quality Image quality (1 to 100); applies to JPEG only.
9236
+ # @param password Document password.
9237
+ # @param folder Document folder.
9238
+ # @param storage Document storage.
9239
+ # @param fonts_folder Fonts folder.
9240
+ def download_table_cell_paragraph_with_http_info(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
9241
+ if @api_client.config.debugging
9242
+ @api_client.config.logger.debug 'Calling API: SlidesApi.download_table_cell_paragraph ...'
9243
+ end
9244
+
9245
+ # verify the required parameter 'name' is set
9246
+ if @api_client.config.client_side_validation && name.nil?
9247
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.download_table_cell_paragraph"
9248
+ end
9249
+ # verify the required parameter 'slide_index' is set
9250
+ if @api_client.config.client_side_validation && slide_index.nil?
9251
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.download_table_cell_paragraph"
9252
+ end
9253
+ # verify the required parameter 'shape_index' is set
9254
+ if @api_client.config.client_side_validation && shape_index.nil?
9255
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.download_table_cell_paragraph"
9256
+ end
9257
+ # verify the required parameter 'row_index' is set
9258
+ if @api_client.config.client_side_validation && row_index.nil?
9259
+ fail ArgumentError, "Missing the required parameter 'row_index' when calling SlidesApi.download_table_cell_paragraph"
9260
+ end
9261
+ # verify the required parameter 'cell_index' is set
9262
+ if @api_client.config.client_side_validation && cell_index.nil?
9263
+ fail ArgumentError, "Missing the required parameter 'cell_index' when calling SlidesApi.download_table_cell_paragraph"
9264
+ end
9265
+ # verify the required parameter 'paragraph_index' is set
9266
+ if @api_client.config.client_side_validation && paragraph_index.nil?
9267
+ fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.download_table_cell_paragraph"
9268
+ end
9269
+ # verify the required parameter 'format' is set
9270
+ if @api_client.config.client_side_validation && format.nil?
9271
+ fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_table_cell_paragraph"
9272
+ end
9273
+ # verify enum value
9274
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff'].any?{ |s| s.casecmp(format)==0 }
9275
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff"
9276
+ end
9277
+ # resource path
9278
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/{format}'
9279
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
9280
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
9281
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
9282
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'rowIndex', row_index)
9283
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'cellIndex', cell_index)
9284
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
9285
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
9286
+
9287
+ # query parameters
9288
+ query_params = {}
9289
+ query_params[:'scaleX'] = @api_client.prepare_for_query(scale_x) unless scale_x.nil?
9290
+ query_params[:'scaleY'] = @api_client.prepare_for_query(scale_y) unless scale_y.nil?
9291
+ query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
9292
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
9293
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
9294
+ query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
9295
+
9296
+ # header parameters
9297
+ header_params = {}
9298
+ # HTTP header 'Accept' (if needed)
9299
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
9300
+ # HTTP header 'Content-Type'
9301
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
9302
+ header_params[:'password'] = password unless password.nil?
9303
+
9304
+ # http body (model)
9305
+ post_body = nil
9306
+
9307
+ # form parameters
9308
+ post_files = []
9309
+
9310
+ auth_names = ['JWT']
9311
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
9312
+ :header_params => header_params,
9313
+ :query_params => query_params,
9314
+ :body => post_body,
9315
+ :files => post_files,
9316
+ :auth_names => auth_names,
9317
+ :return_type => 'File')
9318
+ return data, status_code, headers
9319
+ end
9101
9320
  # Read slide animation effects.
9102
9321
  # @param name Document name.
9103
9322
  # @param slide_index Slide index.
@@ -16114,6 +16333,116 @@ module AsposeSlidesCloud
16114
16333
  :auth_names => auth_names)
16115
16334
  return data, status_code, headers
16116
16335
  end
16336
+ # Render paragraph to specified picture format and save it to the storage.
16337
+ # @param name Presentation name.
16338
+ # @param slide_index Slide index.
16339
+ # @param shape_index Index of shape starting from 1
16340
+ # @param paragraph_index Paragraph index.
16341
+ # @param format Export picture format.
16342
+ # @param out_path Output path.
16343
+ # @param scale_x X scale ratio.
16344
+ # @param scale_y Y scale ratio.
16345
+ # @param quality Image quality (1 to 100); applies to JPEG only.
16346
+ # @param password Document password.
16347
+ # @param folder Presentation folder.
16348
+ # @param storage Presentation storage.
16349
+ # @param fonts_folder Fonts folder.
16350
+ # @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
16351
+ def save_paragraph(name, slide_index, shape_index, paragraph_index, format, out_path, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, sub_shape = nil)
16352
+ save_paragraph_with_http_info(name, slide_index, shape_index, paragraph_index, format, out_path, scale_x, scale_y, quality, password, folder, storage, fonts_folder, sub_shape)
16353
+ nil
16354
+ end
16355
+
16356
+ # Render paragraph to specified picture format and save it to the storage.
16357
+ # @param name Presentation name.
16358
+ # @param slide_index Slide index.
16359
+ # @param shape_index Index of shape starting from 1
16360
+ # @param paragraph_index Paragraph index.
16361
+ # @param format Export picture format.
16362
+ # @param out_path Output path.
16363
+ # @param scale_x X scale ratio.
16364
+ # @param scale_y Y scale ratio.
16365
+ # @param quality Image quality (1 to 100); applies to JPEG only.
16366
+ # @param password Document password.
16367
+ # @param folder Presentation folder.
16368
+ # @param storage Presentation storage.
16369
+ # @param fonts_folder Fonts folder.
16370
+ # @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
16371
+ def save_paragraph_with_http_info(name, slide_index, shape_index, paragraph_index, format, out_path, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, sub_shape = nil)
16372
+ if @api_client.config.debugging
16373
+ @api_client.config.logger.debug 'Calling API: SlidesApi.save_paragraph ...'
16374
+ end
16375
+
16376
+ # verify the required parameter 'name' is set
16377
+ if @api_client.config.client_side_validation && name.nil?
16378
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.save_paragraph"
16379
+ end
16380
+ # verify the required parameter 'slide_index' is set
16381
+ if @api_client.config.client_side_validation && slide_index.nil?
16382
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.save_paragraph"
16383
+ end
16384
+ # verify the required parameter 'shape_index' is set
16385
+ if @api_client.config.client_side_validation && shape_index.nil?
16386
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.save_paragraph"
16387
+ end
16388
+ # verify the required parameter 'paragraph_index' is set
16389
+ if @api_client.config.client_side_validation && paragraph_index.nil?
16390
+ fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.save_paragraph"
16391
+ end
16392
+ # verify the required parameter 'format' is set
16393
+ if @api_client.config.client_side_validation && format.nil?
16394
+ fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_paragraph"
16395
+ end
16396
+ # verify enum value
16397
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff'].any?{ |s| s.casecmp(format)==0 }
16398
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff"
16399
+ end
16400
+ # verify the required parameter 'out_path' is set
16401
+ if @api_client.config.client_side_validation && out_path.nil?
16402
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesApi.save_paragraph"
16403
+ end
16404
+ # resource path
16405
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/{format}'
16406
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
16407
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
16408
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
16409
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
16410
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
16411
+
16412
+ # query parameters
16413
+ query_params = {}
16414
+ query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil?
16415
+ query_params[:'scaleX'] = @api_client.prepare_for_query(scale_x) unless scale_x.nil?
16416
+ query_params[:'scaleY'] = @api_client.prepare_for_query(scale_y) unless scale_y.nil?
16417
+ query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
16418
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
16419
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
16420
+ query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
16421
+ query_params[:'subShape'] = @api_client.prepare_for_query(sub_shape) unless sub_shape.nil?
16422
+
16423
+ # header parameters
16424
+ header_params = {}
16425
+ # HTTP header 'Accept' (if needed)
16426
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
16427
+ # HTTP header 'Content-Type'
16428
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
16429
+ header_params[:'password'] = password unless password.nil?
16430
+
16431
+ # http body (model)
16432
+ post_body = nil
16433
+
16434
+ # form parameters
16435
+ post_files = []
16436
+
16437
+ auth_names = ['JWT']
16438
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
16439
+ :header_params => header_params,
16440
+ :query_params => query_params,
16441
+ :body => post_body,
16442
+ :files => post_files,
16443
+ :auth_names => auth_names)
16444
+ return data, status_code, headers
16445
+ end
16117
16446
  # Save a presentation to a specified format.
16118
16447
  # @param name Document name.
16119
16448
  # @param format Export format.
@@ -16710,6 +17039,127 @@ module AsposeSlidesCloud
16710
17039
  :auth_names => auth_names)
16711
17040
  return data, status_code, headers
16712
17041
  end
17042
+ # Render table cell paragraph to specified picture format and save it to the storage.
17043
+ # @param name Document name.
17044
+ # @param slide_index Slide index.
17045
+ # @param shape_index Shape index.
17046
+ # @param row_index Row index.
17047
+ # @param cell_index Table cell index.
17048
+ # @param paragraph_index Paragraph index.
17049
+ # @param format Export picture format.
17050
+ # @param out_path Output path.
17051
+ # @param scale_x X scale ratio.
17052
+ # @param scale_y Y scale ratio.
17053
+ # @param quality Image quality (1 to 100); applies to JPEG only.
17054
+ # @param password Document password.
17055
+ # @param folder Document folder.
17056
+ # @param storage Document storage.
17057
+ # @param fonts_folder Fonts folder.
17058
+ def save_table_cell_paragraph(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, out_path, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
17059
+ save_table_cell_paragraph_with_http_info(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, out_path, scale_x, scale_y, quality, password, folder, storage, fonts_folder)
17060
+ nil
17061
+ end
17062
+
17063
+ # Render table cell paragraph to specified picture format and save it to the storage.
17064
+ # @param name Document name.
17065
+ # @param slide_index Slide index.
17066
+ # @param shape_index Shape index.
17067
+ # @param row_index Row index.
17068
+ # @param cell_index Table cell index.
17069
+ # @param paragraph_index Paragraph index.
17070
+ # @param format Export picture format.
17071
+ # @param out_path Output path.
17072
+ # @param scale_x X scale ratio.
17073
+ # @param scale_y Y scale ratio.
17074
+ # @param quality Image quality (1 to 100); applies to JPEG only.
17075
+ # @param password Document password.
17076
+ # @param folder Document folder.
17077
+ # @param storage Document storage.
17078
+ # @param fonts_folder Fonts folder.
17079
+ def save_table_cell_paragraph_with_http_info(name, slide_index, shape_index, row_index, cell_index, paragraph_index, format, out_path, scale_x = nil, scale_y = nil, quality = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
17080
+ if @api_client.config.debugging
17081
+ @api_client.config.logger.debug 'Calling API: SlidesApi.save_table_cell_paragraph ...'
17082
+ end
17083
+
17084
+ # verify the required parameter 'name' is set
17085
+ if @api_client.config.client_side_validation && name.nil?
17086
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.save_table_cell_paragraph"
17087
+ end
17088
+ # verify the required parameter 'slide_index' is set
17089
+ if @api_client.config.client_side_validation && slide_index.nil?
17090
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.save_table_cell_paragraph"
17091
+ end
17092
+ # verify the required parameter 'shape_index' is set
17093
+ if @api_client.config.client_side_validation && shape_index.nil?
17094
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.save_table_cell_paragraph"
17095
+ end
17096
+ # verify the required parameter 'row_index' is set
17097
+ if @api_client.config.client_side_validation && row_index.nil?
17098
+ fail ArgumentError, "Missing the required parameter 'row_index' when calling SlidesApi.save_table_cell_paragraph"
17099
+ end
17100
+ # verify the required parameter 'cell_index' is set
17101
+ if @api_client.config.client_side_validation && cell_index.nil?
17102
+ fail ArgumentError, "Missing the required parameter 'cell_index' when calling SlidesApi.save_table_cell_paragraph"
17103
+ end
17104
+ # verify the required parameter 'paragraph_index' is set
17105
+ if @api_client.config.client_side_validation && paragraph_index.nil?
17106
+ fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.save_table_cell_paragraph"
17107
+ end
17108
+ # verify the required parameter 'format' is set
17109
+ if @api_client.config.client_side_validation && format.nil?
17110
+ fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_table_cell_paragraph"
17111
+ end
17112
+ # verify enum value
17113
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff'].any?{ |s| s.casecmp(format)==0 }
17114
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff"
17115
+ end
17116
+ # verify the required parameter 'out_path' is set
17117
+ if @api_client.config.client_side_validation && out_path.nil?
17118
+ fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesApi.save_table_cell_paragraph"
17119
+ end
17120
+ # resource path
17121
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/rows/{rowIndex}/cells/{cellIndex}/paragraphs/{paragraphIndex}/{format}'
17122
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
17123
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
17124
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
17125
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'rowIndex', row_index)
17126
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'cellIndex', cell_index)
17127
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
17128
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
17129
+
17130
+ # query parameters
17131
+ query_params = {}
17132
+ query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil?
17133
+ query_params[:'scaleX'] = @api_client.prepare_for_query(scale_x) unless scale_x.nil?
17134
+ query_params[:'scaleY'] = @api_client.prepare_for_query(scale_y) unless scale_y.nil?
17135
+ query_params[:'quality'] = @api_client.prepare_for_query(quality) unless quality.nil?
17136
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
17137
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
17138
+ query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
17139
+
17140
+ # header parameters
17141
+ header_params = {}
17142
+ # HTTP header 'Accept' (if needed)
17143
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
17144
+ # HTTP header 'Content-Type'
17145
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
17146
+ header_params[:'password'] = password unless password.nil?
17147
+
17148
+ # http body (model)
17149
+ post_body = nil
17150
+
17151
+ # form parameters
17152
+ post_files = []
17153
+
17154
+ auth_names = ['JWT']
17155
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
17156
+ :header_params => header_params,
17157
+ :query_params => query_params,
17158
+ :body => post_body,
17159
+ :files => post_files,
17160
+ :auth_names => auth_names)
17161
+ return data, status_code, headers
17162
+ end
16713
17163
  # Set slide animation.
16714
17164
  # @param name Document name.
16715
17165
  # @param slide_index Slide index.
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
43
43
  # true to disable ligatures in the rendered output.
44
44
  attr_accessor :disable_font_ligatures
45
45
 
46
+ # Represents the pictures compression level. Pictures are not compressed (DocumentResolution) by default. Not applied when TemplatesPath is set.
47
+ attr_accessor :pictures_compression
48
+
46
49
  # Attribute mapping from ruby-style variable name to JSON key.
47
50
  def self.attribute_map
48
51
  super.merge({
@@ -52,6 +55,7 @@ module AsposeSlidesCloud
52
55
  :'slides_layout_options' => :'SlidesLayoutOptions',
53
56
  :'templates_path' => :'TemplatesPath',
54
57
  :'disable_font_ligatures' => :'DisableFontLigatures',
58
+ :'pictures_compression' => :'PicturesCompression',
55
59
  })
56
60
  end
57
61
 
@@ -64,6 +68,7 @@ module AsposeSlidesCloud
64
68
  :'slides_layout_options' => :'SlidesLayoutOptions',
65
69
  :'templates_path' => :'String',
66
70
  :'disable_font_ligatures' => :'BOOLEAN',
71
+ :'pictures_compression' => :'String',
67
72
  })
68
73
  end
69
74
 
@@ -95,6 +100,10 @@ module AsposeSlidesCloud
95
100
  if attributes.has_key?(:'DisableFontLigatures')
96
101
  self.disable_font_ligatures = attributes[:'DisableFontLigatures']
97
102
  end
103
+
104
+ if attributes.has_key?(:'PicturesCompression')
105
+ self.pictures_compression = attributes[:'PicturesCompression']
106
+ end
98
107
  self.format = 'html5'
99
108
  end
100
109
 
@@ -109,9 +118,21 @@ module AsposeSlidesCloud
109
118
  # @return true if the model is valid
110
119
  def valid?
111
120
  return false if !super
121
+ pictures_compression_validator = EnumAttributeValidator.new('String', ['Dpi330', 'Dpi220', 'Dpi150', 'Dpi96', 'Dpi72', 'DocumentResolution'])
122
+ return false unless pictures_compression_validator.valid?(@pictures_compression)
112
123
  true
113
124
  end
114
125
 
126
+ # Custom attribute writer method checking allowed values (enum).
127
+ # @param [Object] pictures_compression Object to be assigned
128
+ def pictures_compression=(pictures_compression)
129
+ validator = EnumAttributeValidator.new('String', ['Dpi330', 'Dpi220', 'Dpi150', 'Dpi96', 'Dpi72', 'DocumentResolution'])
130
+ unless validator.valid?(pictures_compression)
131
+ fail ArgumentError, 'invalid value for "pictures_compression", must be one of #{validator.allowable_values}.'
132
+ end
133
+ @pictures_compression = pictures_compression
134
+ end
135
+
115
136
  # Checks equality by comparing each attribute.
116
137
  # @param [Object] Object to be compared
117
138
  def ==(o)
@@ -129,7 +150,8 @@ module AsposeSlidesCloud
129
150
  embed_images == o.embed_images &&
130
151
  slides_layout_options == o.slides_layout_options &&
131
152
  templates_path == o.templates_path &&
132
- disable_font_ligatures == o.disable_font_ligatures
153
+ disable_font_ligatures == o.disable_font_ligatures &&
154
+ pictures_compression == o.pictures_compression
133
155
  end
134
156
 
135
157
  # @see the `==` method
@@ -141,7 +163,7 @@ module AsposeSlidesCloud
141
163
  # Calculates hash code according to all attributes.
142
164
  # @return [Fixnum] Hash code
143
165
  def hash
144
- [default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, animate_transitions, animate_shapes, embed_images, slides_layout_options, templates_path, disable_font_ligatures].hash
166
+ [default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, animate_transitions, animate_shapes, embed_images, slides_layout_options, templates_path, disable_font_ligatures, pictures_compression].hash
145
167
  end
146
168
  end
147
169
  end