aspose_slides_cloud 22.2.0 → 22.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -7
  3. data/LICENSE +20 -20
  4. data/README.md +27 -0
  5. data/Rakefile +8 -8
  6. data/TestData/oleObject.xlsx +0 -0
  7. data/TestData/test.pptx +0 -0
  8. data/aspose_slides_cloud.gemspec +56 -56
  9. data/lib/aspose_slides_cloud/api/slides_api.rb +192 -13
  10. data/lib/aspose_slides_cloud/api_error.rb +48 -48
  11. data/lib/aspose_slides_cloud/configuration.rb +188 -188
  12. data/lib/aspose_slides_cloud/models/access_permissions.rb +321 -0
  13. data/lib/aspose_slides_cloud/models/{waterfall_series.rb → alpha_bi_level_effect.rb} +16 -26
  14. data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +223 -0
  15. data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +223 -0
  16. data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +223 -0
  17. data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +223 -0
  18. data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +238 -0
  19. data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +238 -0
  20. data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -3
  21. data/lib/aspose_slides_cloud/models/axis.rb +22 -2
  22. data/lib/aspose_slides_cloud/models/bi_level_effect.rb +238 -0
  23. data/lib/aspose_slides_cloud/models/blur_image_effect.rb +253 -0
  24. data/lib/aspose_slides_cloud/models/chart.rb +1 -2
  25. data/lib/aspose_slides_cloud/models/chart_lines_format.rb +221 -0
  26. data/lib/aspose_slides_cloud/models/color_change_effect.rb +243 -0
  27. data/lib/aspose_slides_cloud/models/color_replace_effect.rb +233 -0
  28. data/lib/aspose_slides_cloud/models/connector.rb +1 -2
  29. data/lib/aspose_slides_cloud/models/duotone_effect.rb +243 -0
  30. data/lib/aspose_slides_cloud/models/export_options.rb +10 -18
  31. data/lib/aspose_slides_cloud/models/fill_overlay_image_effect.rb +260 -0
  32. data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +243 -0
  33. data/lib/aspose_slides_cloud/models/geometry_shape.rb +1 -2
  34. data/lib/aspose_slides_cloud/models/gif_export_options.rb +4 -3
  35. data/lib/aspose_slides_cloud/models/graphical_object.rb +1 -2
  36. data/lib/aspose_slides_cloud/models/{waterfall_chart_data_point.rb → gray_scale_effect.rb} +26 -13
  37. data/lib/aspose_slides_cloud/models/group_shape.rb +12 -3
  38. data/lib/aspose_slides_cloud/models/hsl_effect.rb +268 -0
  39. data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -3
  40. data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -3
  41. data/lib/aspose_slides_cloud/models/image_export_options.rb +4 -3
  42. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +222 -0
  43. data/lib/aspose_slides_cloud/models/image_transform_effect.rb +244 -0
  44. data/lib/aspose_slides_cloud/models/legend.rb +12 -2
  45. data/lib/aspose_slides_cloud/models/luminance_effect.rb +253 -0
  46. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +72 -3
  47. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +12 -2
  48. data/lib/aspose_slides_cloud/models/one_value_series.rb +74 -2
  49. data/lib/aspose_slides_cloud/models/paragraph.rb +12 -2
  50. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +3 -16
  51. data/lib/aspose_slides_cloud/models/picture_fill.rb +14 -2
  52. data/lib/aspose_slides_cloud/models/picture_frame.rb +1 -2
  53. data/lib/aspose_slides_cloud/models/portion.rb +32 -2
  54. data/lib/aspose_slides_cloud/models/portion_format.rb +633 -0
  55. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -3
  56. data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -2
  57. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +1 -2
  58. data/lib/aspose_slides_cloud/models/shape.rb +1 -2
  59. data/lib/aspose_slides_cloud/models/shape_base.rb +1 -11
  60. data/lib/aspose_slides_cloud/models/shape_type.rb +54 -0
  61. data/lib/aspose_slides_cloud/models/slide_comment.rb +32 -48
  62. data/lib/aspose_slides_cloud/models/slide_comment_base.rb +286 -0
  63. data/lib/aspose_slides_cloud/models/slide_comments.rb +1 -1
  64. data/lib/aspose_slides_cloud/models/{box_and_whisker_series.rb → slide_modern_comment.rb} +37 -68
  65. data/lib/aspose_slides_cloud/models/smart_art.rb +1 -2
  66. data/lib/aspose_slides_cloud/models/smart_art_node.rb +12 -2
  67. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +1 -2
  68. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +1 -2
  69. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +1 -2
  70. data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -3
  71. data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -3
  72. data/lib/aspose_slides_cloud/models/table.rb +1 -2
  73. data/lib/aspose_slides_cloud/models/table_cell.rb +22 -2
  74. data/lib/aspose_slides_cloud/models/text_bounds.rb +261 -0
  75. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +4 -3
  76. data/lib/aspose_slides_cloud/models/tint_effect.rb +253 -0
  77. data/lib/aspose_slides_cloud/models/video_export_options.rb +35 -4
  78. data/lib/aspose_slides_cloud/models/video_frame.rb +12 -3
  79. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -3
  80. data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -3
  81. data/lib/aspose_slides_cloud/models/zoom_frame.rb +1 -2
  82. data/lib/aspose_slides_cloud/models/zoom_object.rb +2 -2
  83. data/lib/aspose_slides_cloud/type_registry.rb +54 -13
  84. data/lib/aspose_slides_cloud/version.rb +1 -1
  85. data/lib/aspose_slides_cloud.rb +31 -7
  86. data/spec/api/slides_api_spec.rb +585 -33
  87. data/spec/spec_helper.rb +122 -122
  88. data/spec/use_cases/merge_spec.rb +0 -1
  89. data/spec/use_cases/shape_spec.rb +0 -2
  90. data/testRules.json +6 -4
  91. metadata +30 -7
  92. data/Dockerfile +0 -16
  93. data/docker-entrypoint.sh +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e883a826b9ad805e25ec620b64ddfe1374953723ce4b90f38628a0942c0b07d5
4
- data.tar.gz: e5802f2a20ddbc53345befc1408b75850ec8dcb5f487d2b46222bb9ad3cea30d
3
+ metadata.gz: f58cf5db7fc44e88265b152b83f65a92c26f01ae3f6ac878b370e6cbf3858d36
4
+ data.tar.gz: 8dfd1210dadc35d0e75243bac2b012ef860ab75c13430cf84844891629d39b3f
5
5
  SHA512:
6
- metadata.gz: 2720026450b35f9a5ab9ad792a0bcc9216966f4849601b6589f7e57d7f1a68c6f86d0088a488a408b761f2213c0062e1ea8a92845406a11e2c16c5ef01d31d8a
7
- data.tar.gz: 5faaf99eda00e312e3c5384ddcb41d9dd9b7bacd8fa5bc7134ebd9a0e6ea215d80730879702103e626589839718e4dfd071252e058883f682c166be5c10bb478
6
+ metadata.gz: 69310b94341210c5dd92792b2c5b442c04878b0b4b2fdb51d8d62681db9ed9595b198fbf518445220a482317caa2813a90a7bf39777a800640d2b4597e1791f8
7
+ data.tar.gz: cfbcfbb28bb8c41d7c0e48964aa3417c83defd8c0be3e6afbafba2cf5cc8486cea63508d6633e98e368e63b75bafd8056bdbbfa4ae631c5abb526172f9a3ba09
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :development, :test do
6
- gem 'rake', '~> 12.3.3'
7
- end
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.3.3'
7
+ end
data/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018 Aspose Pty Ltd
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Aspose Pty Ltd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
data/README.md CHANGED
@@ -27,6 +27,33 @@ 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.5
31
+ * Added **Paragraphs** property to **SmartArtNode** class to enable getting and setting text for SmartArt nodes.
32
+ * Added **ImageTransformList** property to **PictureFill** class to enable setting image transform effects. Added **ImageTransformEffect** class and subclasses for different kind of of effects.
33
+ * Added **PictureFillFormat** property to **VideoFrame** class to enable setting poster image for video frames.
34
+ * Added **SlideIndex** and **ShapeIndex** properties to **ResourceUri** class to simplify retrieveing slide & shape indexes for resources.
35
+ * Removed redundant **BoxAndWhiskersSeries**, **WaterfallSeries** and **WaterfallChartDataPoint** classes.
36
+
37
+ ## Enhancements in Version 22.4
38
+ * Added **TransitionType** and **SlidesTransitionDuration** properties to **VideoExportOptions** class to enable creation videos with transitions.
39
+ * Added **DefaultPortionFormat** property to **Paragraph** class. Added new **PortionFormat** class.
40
+ * Added **EmbeddedFileBase64Data** and a number of other properties to **OleObjectFrame** class to enable creation of OLE Object frames.
41
+ * Added **AccessPermissions** class to support access permissions for PDF export.
42
+ * Added **PictureFillformat** property to **AudioFrame** class.
43
+ * Added **RowIndex** and **ColumnIndex** properties to **TableCell** class.
44
+ * Moved **Width** and **Height** properties from **ExportOptions** base class to the new **ImageExportOptionsBase class**. This is a superclass for **ImageExportOptions**, **GifExportOptions** and **TiffExportOptions** classes.
45
+ * Removed redundant **Shapes** property from **ShapeBase** class. It is only left for **GroupShape** class.
46
+
47
+ ## Enhancements in Version 22.3
48
+ * Added **ModernSlideComment** class to support modern comments. Also added **SlideCommentBase** as base class for comments.
49
+ * Added optional **shapeIndex** parameter to **CreateComment** and **CreateCommentOnline** methods.
50
+ * Added **GetParagraphRectangle**, **GetPortionRectangle** method and new **TextBounds** class to get paragraph or portion bounds.
51
+ * Added optional **shapeType** parameter for **GetShapes** method. You can now get list of shapes of a particular type (e.g. charts or tables).
52
+ * Added **FontFallbackRules** class and **FontFallbackRules** property to **ExportOptions** class.
53
+ * Added **LatinFont**, **EastAsianFont** and **ComplexScriptFont** properties to **Portion** class to enable getting and seting portion font name.
54
+ * Added **ChartLinesFormat** class; added **MajorGridLinesFormat** and **MinorGridLinesFormat** properties to Axis class.
55
+ * Added **HideLegend** boolean property to **Legend** class.
56
+
30
57
  ## Enhancements in Version 22.2
31
58
  * Added **Mpeg4** to the list of allowed values for **ExportFormat** type. You can now convert presentations to video.
32
59
  * New **HighlightShapeText** and **HighlightShapeRegex** methods.
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
- begin
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
- task default: :spec
6
- rescue LoadError
7
- # no rspec available
8
- end
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
Binary file
data/TestData/test.pptx CHANGED
Binary file
@@ -1,56 +1,56 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- =begin
4
- Copyright (c) 2019 Aspose Pty Ltd
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
23
- =end
24
-
25
- $:.push File.expand_path("../lib", __FILE__)
26
- require "aspose_slides_cloud/version"
27
-
28
- Gem::Specification.new do |s|
29
- s.name = "aspose_slides_cloud"
30
- s.version = AsposeSlidesCloud::VERSION
31
- s.platform = Gem::Platform::RUBY
32
- s.authors = ["Victor Putrov"]
33
- s.email = ["victor.putrov@aspose.com"]
34
- s.homepage = "https://github.com/aspose-slides-cloud/aspose-slides-cloud-ruby"
35
- s.summary = "Aspose.Slides Cloud SDK"
36
- s.description = "SDK for Aspose.Slides Cloud"
37
- s.license = "MIT"
38
- s.required_ruby_version = ">= 1.9"
39
-
40
- s.add_dependency 'faraday', '~> 0.17', '>= 0.17.3'
41
- s.add_dependency 'json', '~> 2.1', '>= 2.1.0'
42
-
43
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
44
- s.add_development_dependency 'rspec_junit_formatter', '~> 0.5', '>= 0.5.1'
45
- s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
46
- s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
47
- s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
48
- s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
49
- s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
50
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
51
- s.add_development_dependency 'rubyzip', '~> 2.3', '>= 2.3.0'
52
- s.files = `git ls-files -z`.split("\x0").uniq.sort.select { |f| !f.empty? }
53
- s.test_files = `git ls-files -z`.split("\x0").uniq.sort.select { |f| !f.empty? && f.start_with?("spec") }
54
- s.executables = []
55
- s.require_paths = ["lib"]
56
- end
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ Copyright (c) 2019 Aspose Pty Ltd
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
23
+ =end
24
+
25
+ $:.push File.expand_path("../lib", __FILE__)
26
+ require "aspose_slides_cloud/version"
27
+
28
+ Gem::Specification.new do |s|
29
+ s.name = "aspose_slides_cloud"
30
+ s.version = AsposeSlidesCloud::VERSION
31
+ s.platform = Gem::Platform::RUBY
32
+ s.authors = ["Victor Putrov"]
33
+ s.email = ["victor.putrov@aspose.com"]
34
+ s.homepage = "https://github.com/aspose-slides-cloud/aspose-slides-cloud-ruby"
35
+ s.summary = "Aspose.Slides Cloud SDK"
36
+ s.description = "SDK for Aspose.Slides Cloud"
37
+ s.license = "MIT"
38
+ s.required_ruby_version = ">= 1.9"
39
+
40
+ s.add_dependency 'faraday', '~> 0.17', '>= 0.17.3'
41
+ s.add_dependency 'json', '~> 2.1', '>= 2.1.0'
42
+
43
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
44
+ s.add_development_dependency 'rspec_junit_formatter', '~> 0.5', '>= 0.5.1'
45
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
46
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
47
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
48
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
49
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
50
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
51
+ s.add_development_dependency 'rubyzip', '~> 2.3', '>= 2.3.0'
52
+ s.files = `git ls-files -z`.split("\x0").uniq.sort.select { |f| !f.empty? }
53
+ s.test_files = `git ls-files -z`.split("\x0").uniq.sort.select { |f| !f.empty? && f.start_with?("spec") }
54
+ s.executables = []
55
+ s.require_paths = ["lib"]
56
+ end
@@ -1262,11 +1262,12 @@ module AsposeSlidesCloud
1262
1262
  # @param name Document name.
1263
1263
  # @param slide_index Slide index.
1264
1264
  # @param dto Comment DTO.
1265
+ # @param shape_index Shape index.
1265
1266
  # @param password Document password.
1266
1267
  # @param folder Document folder.
1267
1268
  # @param storage Document storage.
1268
- def create_comment(name, slide_index, dto, password = nil, folder = nil, storage = nil)
1269
- data, _status_code, _headers = create_comment_with_http_info(name, slide_index, dto, password, folder, storage)
1269
+ def create_comment(name, slide_index, dto, shape_index = nil, password = nil, folder = nil, storage = nil)
1270
+ data, _status_code, _headers = create_comment_with_http_info(name, slide_index, dto, shape_index, password, folder, storage)
1270
1271
  data
1271
1272
  end
1272
1273
 
@@ -1274,10 +1275,11 @@ module AsposeSlidesCloud
1274
1275
  # @param name Document name.
1275
1276
  # @param slide_index Slide index.
1276
1277
  # @param dto Comment DTO.
1278
+ # @param shape_index Shape index.
1277
1279
  # @param password Document password.
1278
1280
  # @param folder Document folder.
1279
1281
  # @param storage Document storage.
1280
- def create_comment_with_http_info(name, slide_index, dto, password = nil, folder = nil, storage = nil)
1282
+ def create_comment_with_http_info(name, slide_index, dto, shape_index = nil, password = nil, folder = nil, storage = nil)
1281
1283
  if @api_client.config.debugging
1282
1284
  @api_client.config.logger.debug 'Calling API: SlidesApi.create_comment ...'
1283
1285
  end
@@ -1301,6 +1303,7 @@ module AsposeSlidesCloud
1301
1303
 
1302
1304
  # query parameters
1303
1305
  query_params = {}
1306
+ query_params[:'shapeIndex'] = @api_client.prepare_for_query(shape_index) unless shape_index.nil?
1304
1307
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
1305
1308
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
1306
1309
 
@@ -1332,9 +1335,10 @@ module AsposeSlidesCloud
1332
1335
  # @param document Document data.
1333
1336
  # @param slide_index Slide index.
1334
1337
  # @param dto Comment DTO.
1338
+ # @param shape_index Shape index.
1335
1339
  # @param password Document password.
1336
- def create_comment_online(document, slide_index, dto, password = nil)
1337
- data, _status_code, _headers = create_comment_online_with_http_info(document, slide_index, dto, password)
1340
+ def create_comment_online(document, slide_index, dto, shape_index = nil, password = nil)
1341
+ data, _status_code, _headers = create_comment_online_with_http_info(document, slide_index, dto, shape_index, password)
1338
1342
  data
1339
1343
  end
1340
1344
 
@@ -1342,8 +1346,9 @@ module AsposeSlidesCloud
1342
1346
  # @param document Document data.
1343
1347
  # @param slide_index Slide index.
1344
1348
  # @param dto Comment DTO.
1349
+ # @param shape_index Shape index.
1345
1350
  # @param password Document password.
1346
- def create_comment_online_with_http_info(document, slide_index, dto, password = nil)
1351
+ def create_comment_online_with_http_info(document, slide_index, dto, shape_index = nil, password = nil)
1347
1352
  if @api_client.config.debugging
1348
1353
  @api_client.config.logger.debug 'Calling API: SlidesApi.create_comment_online ...'
1349
1354
  end
@@ -1366,6 +1371,7 @@ module AsposeSlidesCloud
1366
1371
 
1367
1372
  # query parameters
1368
1373
  query_params = {}
1374
+ query_params[:'shapeIndex'] = @api_client.prepare_for_query(shape_index) unless shape_index.nil?
1369
1375
 
1370
1376
  # header parameters
1371
1377
  header_params = {}
@@ -10526,6 +10532,84 @@ module AsposeSlidesCloud
10526
10532
  :return_type => 'Paragraph')
10527
10533
  return data, status_code, headers
10528
10534
  end
10535
+ # Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
10536
+ # @param name Document name.
10537
+ # @param slide_index Slide index.
10538
+ # @param shape_index Shape index.
10539
+ # @param paragraph_index Paragraph index.
10540
+ # @param password Document password.
10541
+ # @param folder Document folder.
10542
+ # @param storage Document storage.
10543
+ def get_paragraph_rectangle(name, slide_index, shape_index, paragraph_index, password = nil, folder = nil, storage = nil)
10544
+ data, _status_code, _headers = get_paragraph_rectangle_with_http_info(name, slide_index, shape_index, paragraph_index, password, folder, storage)
10545
+ data
10546
+ end
10547
+
10548
+ # Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
10549
+ # @param name Document name.
10550
+ # @param slide_index Slide index.
10551
+ # @param shape_index Shape index.
10552
+ # @param paragraph_index Paragraph index.
10553
+ # @param password Document password.
10554
+ # @param folder Document folder.
10555
+ # @param storage Document storage.
10556
+ def get_paragraph_rectangle_with_http_info(name, slide_index, shape_index, paragraph_index, password = nil, folder = nil, storage = nil)
10557
+ if @api_client.config.debugging
10558
+ @api_client.config.logger.debug 'Calling API: SlidesApi.get_paragraph_rectangle ...'
10559
+ end
10560
+
10561
+ # verify the required parameter 'name' is set
10562
+ if @api_client.config.client_side_validation && name.nil?
10563
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_paragraph_rectangle"
10564
+ end
10565
+ # verify the required parameter 'slide_index' is set
10566
+ if @api_client.config.client_side_validation && slide_index.nil?
10567
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_paragraph_rectangle"
10568
+ end
10569
+ # verify the required parameter 'shape_index' is set
10570
+ if @api_client.config.client_side_validation && shape_index.nil?
10571
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.get_paragraph_rectangle"
10572
+ end
10573
+ # verify the required parameter 'paragraph_index' is set
10574
+ if @api_client.config.client_side_validation && paragraph_index.nil?
10575
+ fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.get_paragraph_rectangle"
10576
+ end
10577
+ # resource path
10578
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/bounds'
10579
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
10580
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
10581
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
10582
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
10583
+
10584
+ # query parameters
10585
+ query_params = {}
10586
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
10587
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
10588
+
10589
+ # header parameters
10590
+ header_params = {}
10591
+ # HTTP header 'Accept' (if needed)
10592
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10593
+ # HTTP header 'Content-Type'
10594
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
10595
+ header_params[:'password'] = password unless password.nil?
10596
+
10597
+ # http body (model)
10598
+ post_body = nil
10599
+
10600
+ # form parameters
10601
+ post_files = []
10602
+
10603
+ auth_names = ['JWT']
10604
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
10605
+ :header_params => header_params,
10606
+ :query_params => query_params,
10607
+ :body => post_body,
10608
+ :files => post_files,
10609
+ :auth_names => auth_names,
10610
+ :return_type => 'TextBounds')
10611
+ return data, status_code, headers
10612
+ end
10529
10613
  # Read shape paragraphs info.
10530
10614
  # @param name Document name.
10531
10615
  # @param slide_index Slide index.
@@ -10817,6 +10901,91 @@ module AsposeSlidesCloud
10817
10901
  :return_type => 'Portion')
10818
10902
  return data, status_code, headers
10819
10903
  end
10904
+ # Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
10905
+ # @param name Document name.
10906
+ # @param slide_index Slide index.
10907
+ # @param shape_index Shape index.
10908
+ # @param paragraph_index Paragraph index.
10909
+ # @param portion_index Portion index.
10910
+ # @param password Document password.
10911
+ # @param folder Document folder.
10912
+ # @param storage Document storage.
10913
+ def get_portion_rectangle(name, slide_index, shape_index, paragraph_index, portion_index, password = nil, folder = nil, storage = nil)
10914
+ data, _status_code, _headers = get_portion_rectangle_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, password, folder, storage)
10915
+ data
10916
+ end
10917
+
10918
+ # Return coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.
10919
+ # @param name Document name.
10920
+ # @param slide_index Slide index.
10921
+ # @param shape_index Shape index.
10922
+ # @param paragraph_index Paragraph index.
10923
+ # @param portion_index Portion index.
10924
+ # @param password Document password.
10925
+ # @param folder Document folder.
10926
+ # @param storage Document storage.
10927
+ def get_portion_rectangle_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, password = nil, folder = nil, storage = nil)
10928
+ if @api_client.config.debugging
10929
+ @api_client.config.logger.debug 'Calling API: SlidesApi.get_portion_rectangle ...'
10930
+ end
10931
+
10932
+ # verify the required parameter 'name' is set
10933
+ if @api_client.config.client_side_validation && name.nil?
10934
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.get_portion_rectangle"
10935
+ end
10936
+ # verify the required parameter 'slide_index' is set
10937
+ if @api_client.config.client_side_validation && slide_index.nil?
10938
+ fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_portion_rectangle"
10939
+ end
10940
+ # verify the required parameter 'shape_index' is set
10941
+ if @api_client.config.client_side_validation && shape_index.nil?
10942
+ fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.get_portion_rectangle"
10943
+ end
10944
+ # verify the required parameter 'paragraph_index' is set
10945
+ if @api_client.config.client_side_validation && paragraph_index.nil?
10946
+ fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.get_portion_rectangle"
10947
+ end
10948
+ # verify the required parameter 'portion_index' is set
10949
+ if @api_client.config.client_side_validation && portion_index.nil?
10950
+ fail ArgumentError, "Missing the required parameter 'portion_index' when calling SlidesApi.get_portion_rectangle"
10951
+ end
10952
+ # resource path
10953
+ local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/bounds'
10954
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
10955
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
10956
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
10957
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
10958
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'portionIndex', portion_index)
10959
+
10960
+ # query parameters
10961
+ query_params = {}
10962
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
10963
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
10964
+
10965
+ # header parameters
10966
+ header_params = {}
10967
+ # HTTP header 'Accept' (if needed)
10968
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10969
+ # HTTP header 'Content-Type'
10970
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
10971
+ header_params[:'password'] = password unless password.nil?
10972
+
10973
+ # http body (model)
10974
+ post_body = nil
10975
+
10976
+ # form parameters
10977
+ post_files = []
10978
+
10979
+ auth_names = ['JWT']
10980
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
10981
+ :header_params => header_params,
10982
+ :query_params => query_params,
10983
+ :body => post_body,
10984
+ :files => post_files,
10985
+ :auth_names => auth_names,
10986
+ :return_type => 'TextBounds')
10987
+ return data, status_code, headers
10988
+ end
10820
10989
  # Read paragraph portions info.
10821
10990
  # @param name Document name.
10822
10991
  # @param slide_index Slide index.
@@ -11331,8 +11500,9 @@ module AsposeSlidesCloud
11331
11500
  # @param password Document password.
11332
11501
  # @param folder Document folder.
11333
11502
  # @param storage Document storage.
11334
- def get_shapes(name, slide_index, password = nil, folder = nil, storage = nil)
11335
- data, _status_code, _headers = get_shapes_with_http_info(name, slide_index, password, folder, storage)
11503
+ # @param shape_type Shape type.
11504
+ def get_shapes(name, slide_index, password = nil, folder = nil, storage = nil, shape_type = nil)
11505
+ data, _status_code, _headers = get_shapes_with_http_info(name, slide_index, password, folder, storage, shape_type)
11336
11506
  data
11337
11507
  end
11338
11508
 
@@ -11342,7 +11512,8 @@ module AsposeSlidesCloud
11342
11512
  # @param password Document password.
11343
11513
  # @param folder Document folder.
11344
11514
  # @param storage Document storage.
11345
- def get_shapes_with_http_info(name, slide_index, password = nil, folder = nil, storage = nil)
11515
+ # @param shape_type Shape type.
11516
+ def get_shapes_with_http_info(name, slide_index, password = nil, folder = nil, storage = nil, shape_type = nil)
11346
11517
  if @api_client.config.debugging
11347
11518
  @api_client.config.logger.debug 'Calling API: SlidesApi.get_shapes ...'
11348
11519
  end
@@ -11355,6 +11526,9 @@ module AsposeSlidesCloud
11355
11526
  if @api_client.config.client_side_validation && slide_index.nil?
11356
11527
  fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.get_shapes"
11357
11528
  end
11529
+ if @api_client.config.client_side_validation && shape_type && !['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape', 'ZoomFrame', 'SectionZoomFrame', 'SummaryZoomFrame', 'SummaryZoomSection'].any?{ |s| s.casecmp(shape_type)==0 }
11530
+ fail ArgumentError, "Invalid value for parameter shape_type: " + shape_type + ". Must be one of Shape, Chart, Table, PictureFrame, VideoFrame, AudioFrame, SmartArt, OleObjectFrame, GroupShape, GraphicalObject, Connector, SmartArtShape, ZoomFrame, SectionZoomFrame, SummaryZoomFrame, SummaryZoomSection"
11531
+ end
11358
11532
  # resource path
11359
11533
  local_var_path = '/slides/{name}/slides/{slideIndex}/shapes'
11360
11534
  local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
@@ -11364,6 +11538,7 @@ module AsposeSlidesCloud
11364
11538
  query_params = {}
11365
11539
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
11366
11540
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
11541
+ query_params[:'shapeType'] = @api_client.prepare_for_query(shape_type) unless shape_type.nil?
11367
11542
 
11368
11543
  # header parameters
11369
11544
  header_params = {}
@@ -13667,7 +13842,7 @@ module AsposeSlidesCloud
13667
13842
  post_files = []
13668
13843
 
13669
13844
  auth_names = ['JWT']
13670
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
13845
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
13671
13846
  :header_params => header_params,
13672
13847
  :query_params => query_params,
13673
13848
  :body => post_body,
@@ -13758,7 +13933,7 @@ module AsposeSlidesCloud
13758
13933
  post_files = []
13759
13934
 
13760
13935
  auth_names = ['JWT']
13761
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
13936
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
13762
13937
  :header_params => header_params,
13763
13938
  :query_params => query_params,
13764
13939
  :body => post_body,
@@ -13832,7 +14007,7 @@ module AsposeSlidesCloud
13832
14007
  # @param password Document password.
13833
14008
  # @param folder Document folder.
13834
14009
  # @param storage Document storage.
13835
- def import_from_pdf(name, pdf = nil, password = nil, folder = nil, storage = nil)
14010
+ def import_from_pdf(name, pdf, password = nil, folder = nil, storage = nil)
13836
14011
  data, _status_code, _headers = import_from_pdf_with_http_info(name, pdf, password, folder, storage)
13837
14012
  data
13838
14013
  end
@@ -13843,7 +14018,7 @@ module AsposeSlidesCloud
13843
14018
  # @param password Document password.
13844
14019
  # @param folder Document folder.
13845
14020
  # @param storage Document storage.
13846
- def import_from_pdf_with_http_info(name, pdf = nil, password = nil, folder = nil, storage = nil)
14021
+ def import_from_pdf_with_http_info(name, pdf, password = nil, folder = nil, storage = nil)
13847
14022
  if @api_client.config.debugging
13848
14023
  @api_client.config.logger.debug 'Calling API: SlidesApi.import_from_pdf ...'
13849
14024
  end
@@ -13852,6 +14027,10 @@ module AsposeSlidesCloud
13852
14027
  if @api_client.config.client_side_validation && name.nil?
13853
14028
  fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.import_from_pdf"
13854
14029
  end
14030
+ # verify the required parameter 'pdf' is set
14031
+ if @api_client.config.client_side_validation && pdf.nil?
14032
+ fail ArgumentError, "Missing the required parameter 'pdf' when calling SlidesApi.import_from_pdf"
14033
+ end
13855
14034
  # resource path
13856
14035
  local_var_path = '/slides/{name}/fromPdf'
13857
14036
  local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)