aspose_slides_cloud 22.8.0 → 22.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +13 -13
  3. data/README.md +17 -1
  4. data/TestData/calibri.ttf +0 -0
  5. data/TestData/test.pptx +0 -0
  6. data/docker-entrypoint.sh +1 -0
  7. data/lib/aspose_slides_cloud/api/slides_api.rb +5413 -8668
  8. data/lib/aspose_slides_cloud/api_client.rb +2 -2
  9. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +5 -1
  10. data/lib/aspose_slides_cloud/models/data_point.rb +42 -2
  11. data/lib/aspose_slides_cloud/models/effect.rb +22 -2
  12. data/lib/aspose_slides_cloud/models/export_options.rb +13 -1
  13. data/lib/aspose_slides_cloud/models/font_subst_rule.rb +231 -0
  14. data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
  15. data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -1
  16. data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
  17. data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
  18. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
  19. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +5 -1
  20. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -1
  21. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -1
  22. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +5 -1
  23. data/lib/aspose_slides_cloud/models/slide_show_properties.rb +325 -0
  24. data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
  25. data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
  26. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
  27. data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
  28. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
  29. data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
  30. data/lib/aspose_slides_cloud/type_registry.rb +3 -0
  31. data/lib/aspose_slides_cloud/version.rb +1 -1
  32. data/lib/aspose_slides_cloud.rb +2 -0
  33. data/spec/api/slides_api_spec.rb +23234 -32650
  34. data/spec/spec_utils.rb +2 -0
  35. data/spec/use_cases/chart_spec.rb +209 -0
  36. data/spec/use_cases/comment_spec.rb +159 -0
  37. data/spec/use_cases/convert_spec.rb +45 -0
  38. data/spec/use_cases/font_spec.rb +143 -0
  39. data/spec/use_cases/layout_slide_spec.rb +18 -0
  40. data/spec/use_cases/master_slide_spec.rb +16 -0
  41. data/spec/use_cases/merge_spec.rb +21 -0
  42. data/spec/use_cases/notes_slide_spec.rb +34 -0
  43. data/spec/use_cases/paragraph_spec.rb +330 -0
  44. data/spec/use_cases/portion_spec.rb +324 -0
  45. data/spec/use_cases/property_spec.rb +59 -0
  46. data/spec/use_cases/shape_spec.rb +214 -11
  47. data/spec/use_cases/slide_spec.rb +197 -0
  48. data/spec/use_cases/text_format_spec.rb +74 -0
  49. data/spec/use_cases/text_spec.rb +39 -0
  50. data/testRules.json +50 -1
  51. metadata +17 -2
@@ -0,0 +1,197 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'spec_helper'
24
+
25
+ describe 'UseCases' do
26
+ describe 'Slide' do
27
+ it "get slides" do
28
+ folder_name = "TempSlidesSDK"
29
+ file_name = "test.pptx"
30
+ password = "password"
31
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
32
+ slides = AsposeSlidesCloud::SpecUtils.api.get_slides(file_name, password, folder_name)
33
+ expect(slides.slide_list.length).to eq(8)
34
+ end
35
+
36
+ it "get slide" do
37
+ folder_name = "TempSlidesSDK"
38
+ file_name = "test.pptx"
39
+ password = "password"
40
+ slide_index = 1
41
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
42
+ slide = AsposeSlidesCloud::SpecUtils.api.get_slides(file_name, password, folder_name)
43
+ expect(slide).not_to eq(nil)
44
+ end
45
+
46
+ it "create slide" do
47
+ folder_name = "TempSlidesSDK"
48
+ file_name = "test.pptx"
49
+ password = "password"
50
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
51
+
52
+ slides = AsposeSlidesCloud::SpecUtils.api.create_slide(file_name, "layoutSlides/3", 1, password, folder_name)
53
+ expect(slides.slide_list.length).to eq(9)
54
+ slides = AsposeSlidesCloud::SpecUtils.api.create_slide(file_name, "layoutSlides/3", nil, password, folder_name)
55
+ expect(slides.slide_list.length).to eq(10)
56
+ end
57
+
58
+ it "copy slide" do
59
+ folder_name = "TempSlidesSDK"
60
+ file_name = "test.pptx"
61
+ password = "password"
62
+ slide_index = 3
63
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
64
+ slides = AsposeSlidesCloud::SpecUtils.api.copy_slide(file_name, slide_index, nil, nil, nil, nil, password, folder_name)
65
+ expect(slides.slide_list.length).to eq(9)
66
+ end
67
+
68
+ it "copy slide from source" do
69
+ folder_name = "TempSlidesSDK"
70
+ file_name = "test.pptx"
71
+ source_file_name = "TemplateCV.pptx"
72
+ password = "password"
73
+ slide_index = 1
74
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
75
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + source_file_name, folder_name + "/" + source_file_name)
76
+
77
+ slides = AsposeSlidesCloud::SpecUtils.api.copy_slide(file_name, slide_index, 1, folder_name + "/" + source_file_name,
78
+ nil, nil, password, folder_name)
79
+ expect(slides.slide_list.length).to eq(9)
80
+ end
81
+
82
+ it "move slide" do
83
+ folder_name = "TempSlidesSDK"
84
+ file_name = "test.pptx"
85
+ password = "password"
86
+ slide_index = 1
87
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
88
+ slides = AsposeSlidesCloud::SpecUtils.api.move_slide(file_name, slide_index, 2, password, folder_name)
89
+ expect(slides.slide_list.length).to eq(8)
90
+ end
91
+
92
+ it "reorder slides" do
93
+ folder_name = "TempSlidesSDK"
94
+ file_name = "test.pptx"
95
+ password = "password"
96
+ old_positions = [1,2,3,4,5,6]
97
+ new_positions = [6,5,4,3,2,1]
98
+
99
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
100
+ slides = AsposeSlidesCloud::SpecUtils.api.reorder_slides(file_name, old_positions, new_positions, password, folder_name)
101
+ expect(slides.slide_list.length).to eq(8)
102
+ end
103
+
104
+ it "update slide" do
105
+ folder_name = "TempSlidesSDK"
106
+ file_name = "test.pptx"
107
+ password = "password"
108
+ layout_slide_href = "layoutSlides/3"
109
+ slide_index = 1
110
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
111
+
112
+ dto = AsposeSlidesCloud::Slide.new
113
+ dto.layout_slide = AsposeSlidesCloud::ResourceUri.new
114
+ dto.layout_slide.href = layout_slide_href
115
+
116
+ slide = AsposeSlidesCloud::SpecUtils.api.update_slide(file_name, slide_index, dto, password, folder_name)
117
+ expect(slide.layout_slide.href.include? layout_slide_href).to eq(true)
118
+ end
119
+
120
+ it "delete slides" do
121
+ folder_name = "TempSlidesSDK"
122
+ file_name = "test.pptx"
123
+ password = "password"
124
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
125
+ slides = AsposeSlidesCloud::SpecUtils.api.delete_slides(file_name, nil, password, folder_name)
126
+ expect(slides.slide_list.length).to eq(1)
127
+ end
128
+
129
+ it "delete slides indexes" do
130
+ folder_name = "TempSlidesSDK"
131
+ file_name = "test.pptx"
132
+ password = "password"
133
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
134
+ slides = AsposeSlidesCloud::SpecUtils.api.delete_slides(file_name, [1,3,5], password, folder_name)
135
+ expect(slides.slide_list.length).to eq(5)
136
+ end
137
+
138
+ it "delete slide" do
139
+ folder_name = "TempSlidesSDK"
140
+ file_name = "test.pptx"
141
+ password = "password"
142
+ slide_index = 1
143
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
144
+ slides = AsposeSlidesCloud::SpecUtils.api.delete_slide(file_name, slide_index, password, folder_name)
145
+ expect(slides.slide_list.length).to eq(7)
146
+ end
147
+
148
+ it "get background" do
149
+ folder_name = "TempSlidesSDK"
150
+ file_name = "test.pptx"
151
+ password = "password"
152
+ slide_index = 5
153
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
154
+ response = AsposeSlidesCloud::SpecUtils.api.get_background(file_name, slide_index, password, folder_name)
155
+ expect(response.fill_format).to be_kind_of(AsposeSlidesCloud::SolidFill)
156
+ end
157
+
158
+ it "set background" do
159
+ folder_name = "TempSlidesSDK"
160
+ file_name = "test.pptx"
161
+ password = "password"
162
+ slide_index = 1
163
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
164
+ dto = AsposeSlidesCloud::SlideBackground.new
165
+ dto.fill_format = AsposeSlidesCloud::SolidFill.new
166
+ dto.fill_format.color = "#FFF5FF8A"
167
+
168
+ response = AsposeSlidesCloud::SpecUtils.api.set_background(file_name, slide_index, dto, password, folder_name)
169
+ expect(response.fill_format).to be_kind_of(AsposeSlidesCloud::SolidFill)
170
+ expect(response.fill_format.color).to eq(dto.fill_format.color)
171
+ end
172
+
173
+ it "set background color" do
174
+ folder_name = "TempSlidesSDK"
175
+ file_name = "test.pptx"
176
+ password = "password"
177
+ slide_index = 1
178
+ color = "#FFF5FF8A"
179
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
180
+
181
+ response = AsposeSlidesCloud::SpecUtils.api.set_background_color(file_name, slide_index, color, password, folder_name)
182
+ expect(response.fill_format).to be_kind_of(AsposeSlidesCloud::SolidFill)
183
+ expect(response.fill_format.color).to eq(color)
184
+ end
185
+
186
+ it "delete background color" do
187
+ folder_name = "TempSlidesSDK"
188
+ file_name = "test.pptx"
189
+ password = "password"
190
+ slide_index = 5
191
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
192
+
193
+ response = AsposeSlidesCloud::SpecUtils.api.delete_background(file_name, slide_index, password, folder_name)
194
+ expect(response.fill_format).to be_kind_of(AsposeSlidesCloud::NoFill)
195
+ end
196
+ end
197
+ end
@@ -0,0 +1,74 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'spec_helper'
24
+
25
+ describe 'UseCases' do
26
+ describe 'Text format' do
27
+ it "text format 3d" do
28
+ folder_name = "TempSlidesSDK"
29
+ file_name = "test.pptx"
30
+ password = "password"
31
+ slide_index = 1
32
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
33
+
34
+ dto = AsposeSlidesCloud::Shape.new
35
+ dto.shape_type = "Rectangle"
36
+ dto.x = 100
37
+ dto.y = 100
38
+ dto.height = 100
39
+ dto.width = 200
40
+ dto.text = "Sample text"
41
+
42
+ dto.text_frame_format = AsposeSlidesCloud::TextFrameFormat.new
43
+ dto.text_frame_format.transform = "ArchUpPour"
44
+
45
+ threeDFormat = AsposeSlidesCloud::ThreeDFormat.new
46
+ threeDFormat.bevel_bottom = AsposeSlidesCloud::ShapeBevel.new
47
+ threeDFormat.bevel_bottom.bevel_type = "Circle"
48
+ threeDFormat.bevel_bottom.height = 3.5
49
+ threeDFormat.bevel_bottom.width = 3.5
50
+ threeDFormat.bevel_top = AsposeSlidesCloud::ShapeBevel.new
51
+ threeDFormat.bevel_top.bevel_type = "Circle"
52
+ threeDFormat.bevel_top.height = 4
53
+ threeDFormat.bevel_top.width = 4
54
+ threeDFormat.extrusion_color = "#FF008000"
55
+ threeDFormat.extrusion_height = 6
56
+ threeDFormat.contour_color = "#FF25353D"
57
+ threeDFormat.contour_width = 1.5
58
+ threeDFormat.depth = 3
59
+ threeDFormat.material = "Plastic"
60
+ threeDFormat.light_rig = AsposeSlidesCloud::LightRig.new
61
+ #threeDFormat.light_rig.light_type = "Balanced"
62
+ threeDFormat.light_rig.direction = "Top"
63
+ threeDFormat.light_rig.x_rotation = 0
64
+ threeDFormat.light_rig.y_rotation = 0
65
+ threeDFormat.light_rig.z_rotation = 40
66
+ #threeDFormat.camera = AsposeSlidesCloud::Camera.new
67
+ #threeDFormat.camera_type = "PerspectiveContrastingRightFacing"
68
+ dto.text_frame_format.three_d_format = threeDFormat;
69
+
70
+ result = AsposeSlidesCloud::SpecUtils.api.create_shape(file_name, slide_index, dto, nil, nil, password, folder_name)
71
+ expect(result).to be_kind_of(AsposeSlidesCloud::Shape)
72
+ end
73
+ end
74
+ end
@@ -70,5 +70,44 @@ describe 'UseCases' do
70
70
  AsposeSlidesCloud::SpecUtils.api.replace_slide_text_online(source, slide_index, old_value, new_value, nil, password)
71
71
  AsposeSlidesCloud::SpecUtils.api.replace_slide_text_online(source, slide_index, old_value, new_value, true, password)
72
72
  end
73
+
74
+ it "highlight shape text" do
75
+ folder_name = "TempSlidesSDK"
76
+ file_name = "test.pptx"
77
+ password = "password"
78
+ slide_index = 6
79
+ shape_index = 1
80
+ paragraph_index = 1
81
+ highlight_color = "#FFF5FF8A"
82
+ text_to_highlight = "highlight"
83
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
84
+ AsposeSlidesCloud::SpecUtils.api.highlight_shape_text(file_name, slide_index, shape_index, text_to_highlight, highlight_color,
85
+ nil, false, password, folder_name)
86
+ para = AsposeSlidesCloud::SpecUtils.api.get_paragraph(file_name, slide_index, shape_index, paragraph_index, password, folder_name)
87
+ expect(para.portion_list[0].text).not_to eq(text_to_highlight)
88
+ expect(para.portion_list[0].highlight_color).not_to eq(highlight_color)
89
+ expect(para.portion_list[1].text).to eq(text_to_highlight)
90
+ expect(para.portion_list[1].highlight_color).to eq(highlight_color)
91
+ end
92
+
93
+ it "highlight shape regex" do
94
+ folder_name = "TempSlidesSDK"
95
+ file_name = "test.pptx"
96
+ password = "password"
97
+ slide_index = 6
98
+ shape_index = 1
99
+ paragraph_index = 1
100
+ text_to_highlight = "highlight"
101
+ highlight_color = "#FFF5FF8A"
102
+ regex = "h.ghl[abci]ght"
103
+ AsposeSlidesCloud::SpecUtils.api.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
104
+ AsposeSlidesCloud::SpecUtils.api.highlight_shape_regex(file_name, slide_index, shape_index, regex, highlight_color,
105
+ nil, false, password, folder_name)
106
+ para = AsposeSlidesCloud::SpecUtils.api.get_paragraph(file_name, slide_index, shape_index, paragraph_index, password, folder_name)
107
+ expect(para.portion_list[0].text).not_to eq(text_to_highlight)
108
+ expect(para.portion_list[0].highlight_color).not_to eq(highlight_color)
109
+ expect(para.portion_list[1].text).to eq(text_to_highlight)
110
+ expect(para.portion_list[1].highlight_color).to eq(highlight_color)
111
+ end
73
112
  end
74
113
  end
data/testRules.json CHANGED
@@ -76,6 +76,8 @@
76
76
  { "Value": 4, "Parameter": "SlideIndex", "Method": "SetShapeGeometryPath" },
77
77
  { "Value": 3, "Parameter": "SlideIndex", "Method": "SetChartAxis" },
78
78
  { "Value": 3, "Parameter": "SlideIndex", "Method": "SetChartLegend" },
79
+ { "Value": 7, "Parameter": "SlideIndex", "Method": "CreateSmartArtNode" },
80
+ { "Value": 7, "Parameter": "SlideIndex", "Method": "DeleteSmartArtNode" },
79
81
  { "Value": 8, "Parameter": "SlideIndex", "Method": "SetChartWall" },
80
82
  { "Value": 2, "Parameter": "ShapeIndex", "Method": "CreateChartDataPoint" },
81
83
  { "Value": 2, "Parameter": "ShapeIndex", "Method": "UpdateChartDataPoint" },
@@ -104,6 +106,9 @@
104
106
  { "Value": 2, "Parameter": "ShapeIndex", "Method": "SetShapeGeometryPath" },
105
107
  { "Value": 3, "Parameter": "ShapeIndex", "Method": "DownloadPortionAsMathMl" },
106
108
  { "Value": 3, "Parameter": "ShapeIndex", "Method": "SavePortionAsMathMl" },
109
+ { "Value": 8, "Parameter": "SlideIndex", "Method": "SetChartWall" },
110
+ { "Value": 1, "InvalidValue": 593, "Parameter": "SmartArtIndex" },
111
+ { "Value": 1, "InvalidValue": 593, "Parameter": "NodeIndex" },
107
112
  { "Value": null, "InvalidValue": [1, 593], "Parameter": "Shapes" },
108
113
  { "Value": null, "InvalidValue": 593, "Parameter": "ShapeToClone" },
109
114
  { "Value": "MasterSlide", "Parameter": "SlideType" },
@@ -161,11 +166,15 @@
161
166
  { "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "DeleteFile" },
162
167
  { "Value": "TempSlidesSDK/test.pptx", "InvalidValue": "invalid%v", "Parameter": "Path", "Method": "ObjectExists" },
163
168
  { "Value": "TempSlidesSDK", "Parameter": "Path", "Method": "DeleteFolder" },
169
+ { "Value": null, "Parameter": "SubShape" },
170
+ { "Value": null, "Parameter": "SubNode" },
164
171
  { "Value": "testProperty", "Parameter": "PropertyName" },
165
172
  { "Value": null, "Parameter": "Author" },
166
173
  { "Value": "Arial", "Parameter": "FontName" },
167
174
  { "Value": "Calibri", "Parameter": "FontName", "Method": "SetEmbeddedFont" },
168
175
  { "Value": "Calibri", "Parameter": "FontName", "Method": "SetEmbeddedFontOnline" },
176
+ { "Value": "Calibri Light", "Parameter": "FontName", "Method": "DeleteEmbeddedFont" },
177
+ { "Value": "Calibri Light", "Parameter": "FontName", "Method": "DeleteEmbeddedFontOnline" },
169
178
  { "InvalidValue": null, "Parameter": "Stream" },
170
179
  {
171
180
  "Value": "<staff><person><name>John Doe</name><address><line1>10 Downing Street</line1><line2>London</line2></address><phone>+457 123456</phone><bio>Hi, I'm John and this is my CV</bio><skills><skill><title>C#</title><level>Excellent</level></skill><skill><title>C++</title><level>Good</level></skill><skill><title>Java</title><level>Average</level></skill></skills></person></staff>",
@@ -211,6 +220,7 @@
211
220
  { "Value": {}, "InvalidValue": null, "Type": "ProtectionProperties", "Parameter": "DTO", "Method": "SetProtection" },
212
221
  { "Value": {}, "InvalidValue": null, "Type": "ProtectionProperties", "Parameter": "DTO", "Method": "SetProtectionOnline" },
213
222
  { "Value": {}, "InvalidValue": null, "Type": "ViewProperties", "Parameter": "DTO", "Method": "SetViewProperties" },
223
+ { "Value": {}, "InvalidValue": null, "Type": "SlideShowProperties", "Parameter": "DTO", "Method": "SetSlideShowProperties" },
214
224
  { "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "CreatePortion" },
215
225
  { "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "CreateSubshapePortion" },
216
226
  { "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "CreateNotesSlidePortion" },
@@ -272,6 +282,8 @@
272
282
  { "Value": null, "InvalidValue": false, "Parameter": "AlignToSlide" },
273
283
  { "Value": null, "InvalidValue": false, "Parameter": "IgnorePreserveField" },
274
284
  { "Value": null, "InvalidValue": false, "Parameter": "OnlyUsed" },
285
+ { "Value": null, "InvalidValue": false, "Parameter": "Group" },
286
+ { "Value": null, "InvalidValue": false, "Parameter": "Embed" },
275
287
  { "Value": null, "InvalidValue": 593, "Parameter": "JpegQuality" },
276
288
  { "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleX" },
277
289
  { "Value": null, "InvalidValue": 593.5, "Parameter": "ScaleY" },
@@ -302,6 +314,7 @@
302
314
  { "Parameter": "Stream" },
303
315
  { "Parameter": "Html" },
304
316
  { "Parameter": "Pdf" },
317
+ { "Parameter": "Font" },
305
318
  { "Parameter": "Options" },
306
319
  { "Parameter": "ApplyToAll" },
307
320
  { "Parameter": "SlideToCopy" },
@@ -327,6 +340,10 @@
327
340
  { "Parameter": "FontColor" },
328
341
  { "Parameter": "FontHeight" },
329
342
  { "Parameter": "FontName" },
343
+ { "Parameter": "Group" },
344
+ { "Parameter": "SourceFont" },
345
+ { "Parameter": "TargetFont" },
346
+ { "Parameter": "Embed" },
330
347
  { "Parameter": "Text" },
331
348
  { "Parameter": "Regex" },
332
349
  { "Parameter": "ShapeName" },
@@ -335,6 +352,7 @@
335
352
  { "Parameter": "Format", "Language": "Java", "Method": "Split" },
336
353
  { "Parameter": "Dto", "Method": "CreateNotesSlide" },
337
354
  { "Parameter": "DataPoint", "Language": "PHP" },
355
+ { "Parameter": "DataPoint", "Language": "Swift" },
338
356
  { "Parameter": "Dto", "Language": "Swift" },
339
357
  { "Parameter": "SlideDto", "Language": "Swift" },
340
358
  { "Parameter": "Request", "Language": "Swift" },
@@ -346,6 +364,10 @@
346
364
  { "Parameter": "Animation", "Language": "Swift" },
347
365
  { "Parameter": "Category", "Language": "Swift" },
348
366
  { "Parameter": "Series", "Language": "Swift" },
367
+ { "Parameter": "SeriesGroup", "Language": "Swift" },
368
+ { "Parameter": "Axis", "Language": "Swift" },
369
+ { "Parameter": "Legend", "Language": "Swift" },
370
+ { "Parameter": "ChartWall", "Language": "Swift" },
349
371
  { "Parameter": "Sections", "Language": "Swift" },
350
372
  { "Parameter": "Position", "Method": "MoveSlide" },
351
373
  { "Parameter": "Name", "Method": "CreatePresentation" },
@@ -366,6 +388,7 @@
366
388
  { "Parameter": "Password", "Method": "CreatePresentationFromSource" },
367
389
  { "Parameter": "Password", "Method": "CreatePresentationFromTemplate" },
368
390
  { "Parameter": "Data", "Method": "CreatePresentation" },
391
+ { "Parameter": "SubShape", "Method": "UpdateSpecialSlidePortion" },
369
392
  { "Parameter": "Files" },
370
393
  { "Parameter": "Request" },
371
394
  { "Parameter": "WithSlides" },
@@ -436,7 +459,7 @@
436
459
  { "Code": 404, "Message": "The storage %v was not found or is not associated with the application.", "Parameter": "TemplateStorage" },
437
460
  { "Code": 404, "Message": "The storage %v was not found or is not associated with the application.", "Parameter": "SourceStorage" },
438
461
  { "Code": 404, "Message": "Author with name %v not found", "Parameter": "Author" },
439
- { "Message": " is not found ", "Parameter": "FontName" },
462
+ { "Code": 404, "Message": " is not found ", "Parameter": "FontName" },
440
463
  { "Message": "Invalid password.", "Parameter": "Password" },
441
464
  { "Message": "Invalid password.", "Parameter": "CloneFromPassword" },
442
465
  { "Message": "Invalid password.", "Parameter": "SourcePassword" },
@@ -449,6 +472,8 @@
449
472
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "Slides" },
450
473
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "ShapeIndex" },
451
474
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "Shapes" },
475
+ { "Message": " is out of bounds. Valid index range is between ", "Parameter": "SmartArtIndex" },
476
+ { "Message": " is out of bounds. Valid index range is between ", "Parameter": "NodeIndex" },
452
477
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "ParagraphIndex" },
453
478
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "Paragraphs" },
454
479
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "PortionIndex" },
@@ -479,6 +504,18 @@
479
504
  { "Message": "Specified cast is not valid", "Parameter": "Path", "Method": "GetNotesSlideShapes" },
480
505
  { "Message": "Specified cast is not valid", "Parameter": "Path", "Method": "DeleteShapes" },
481
506
  { "Message": "Specified cast is not valid", "Parameter": "Path", "Method": "DeleteNotesSlideShapes" },
507
+ { "Message": "Invalid sub-shape path", "Parameter": "SubShape" },
508
+ { "Code": 500, "Message": "Unexpected Shapes subnode", "Parameter": "SubShape", "Method": "AlignShapes" },
509
+ { "Code": 500, "Message": "Unexpected Shapes subnode", "Parameter": "SubShape", "Method": "AlignSpecialSlideShapes" },
510
+ { "Code": 500, "Message": "Unexpected Shapes subnode", "Parameter": "SubShape", "Method": "CreateShape" },
511
+ { "Code": 500, "Message": "Unexpected Shapes subnode", "Parameter": "SubShape", "Method": "CreateSpecialSlideShape" },
512
+ { "Code": 500, "Message": "Unexpected Shapes subnode", "Parameter": "SubShape", "Method": "DeleteShapes" },
513
+ { "Code": 500, "Message": "Unexpected Shapes subnode", "Parameter": "SubShape", "Method": "DeleteSpecialSlideShapes" },
514
+ { "Code": 500, "Message": "Unexpected Shapes subnode", "Parameter": "SubShape", "Method": "GetShapes" },
515
+ { "Code": 500, "Message": "Unexpected Shapes subnode", "Parameter": "SubShape", "Method": "GetSpecialSlideShapes" },
516
+ { "Code": 500, "Message": "Unexpected Nodes", "Parameter": "SubNode", "Method": "CreateSmartArtNode" },
517
+ { "Message": "Invalid sub-node path", "Parameter": "SubNode" },
518
+ { "Code": 500, "Message": "Unexpected Nodes subnode", "Parameter": "SubNode", "Method": "CreateSmartArtNode" },
482
519
  { "Message" : "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "Path", "Method": "DownloadFile" },
483
520
  { "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "SrcPath" },
484
521
  { "Code": 404, "Message": "AmazonS3 Storage exception: The specified key does not exist.", "Parameter": "SourcePath" },
@@ -486,6 +523,16 @@
486
523
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "From" },
487
524
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "To" },
488
525
  { "Message": "Invalid value for", "Parameter": "Format" },
526
+ { "Message": "input data is not valid", "Parameter": "Format", "Language": "Swift" },
527
+ { "Code": 404, "Method": "DownloadShape", "Parameter": "Format", "Language": "Swift" },
528
+ { "Code": 404, "Method": "DownloadShapeOnline", "Parameter": "Format", "Language": "Swift" },
529
+ { "Code": 404, "Method": "DownloadSubshape", "Parameter": "Format", "Language": "Swift" },
530
+ { "Code": 404, "Method": "DownloadSpecialSlideShape", "Parameter": "Format", "Language": "Swift" },
531
+ { "Code": 404, "Method": "DownloadSpecialSlideSubshape", "Parameter": "Format", "Language": "Swift" },
532
+ { "Code": 404, "Method": "SaveShape", "Parameter": "Format", "Language": "Swift" },
533
+ { "Code": 404, "Method": "SaveSubshape", "Parameter": "Format", "Language": "Swift" },
534
+ { "Code": 404, "Method": "SaveSpecialSlideShape", "Parameter": "Format", "Language": "Swift" },
535
+ { "Code": 404, "Method": "SaveSpecialSlideSubshape", "Parameter": "Format", "Language": "Swift" },
489
536
  { "Message": " is not supported", "Parameter": "OutPath" },
490
537
  { "Message": "Invalid value for ", "Parameter": "SlideType" },
491
538
  { "Message": " is out of bounds. Valid index range is between ", "Method": "CreateSpecialSlideAnimationInteractiveSequenceEffect", "Parameter": "SlideType", "Language": "NET" },
@@ -543,11 +590,13 @@
543
590
  { "Message": " required parameter", "Parameter": "Document" },
544
591
  { "Message": " required parameter", "Parameter": "File" },
545
592
  { "Message": " required parameter", "Parameter": "Pdf" },
593
+ { "Message": " required parameter", "Parameter": "Font" },
546
594
  { "Message": "Failed to load the presentation", "Parameter": "Request", "Method": "MergeOnline" },
547
595
  { "Message": "Failed to load the presentation", "Parameter": "Request", "Method": "MergeAndSaveOnline" },
548
596
  { "Message": "The input data is not valid", "Parameter": "Image" },
549
597
  { "Message": " required parameter", "Parameter": "Image", "Method": "ImportShapesFromSvg" },
550
598
  { "Message": "Image expected", "Parameter": "Image", "Method": "CreateImageWatermark", "Language": "Python" },
599
+ { "Message": "Image expected", "Parameter": "Image", "Method": "ImportShapesFromSvg", "Language": "Python" },
551
600
  { "Message": " is out of bounds. Valid index range is between ", "Parameter": "Sections", "Method": "DeleteSections" },
552
601
  { "Message": "Layout slide DTO must be not null and contain", "Parameter": "SlideDTO", "Language": "Swift" },
553
602
  { "Message": "Object reference not set to an instance of an object.", "Parameter": "Bounds" },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_slides_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 22.8.0
4
+ version: 22.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Putrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2022-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -245,6 +245,7 @@ files:
245
245
  - Rakefile
246
246
  - TestData/TemplateCV.pptx
247
247
  - TestData/TemplatingCVDataWithBase64.xml
248
+ - TestData/calibri.ttf
248
249
  - TestData/oleObject.xlsx
249
250
  - TestData/shapes.svg
250
251
  - TestData/test-unprotected.pptx
@@ -331,6 +332,7 @@ files:
331
332
  - lib/aspose_slides_cloud/models/font_fallback_rule.rb
332
333
  - lib/aspose_slides_cloud/models/font_scheme.rb
333
334
  - lib/aspose_slides_cloud/models/font_set.rb
335
+ - lib/aspose_slides_cloud/models/font_subst_rule.rb
334
336
  - lib/aspose_slides_cloud/models/fonts_data.rb
335
337
  - lib/aspose_slides_cloud/models/format_scheme.rb
336
338
  - lib/aspose_slides_cloud/models/fraction_element.rb
@@ -455,6 +457,7 @@ files:
455
457
  - lib/aspose_slides_cloud/models/slide_modern_comment.rb
456
458
  - lib/aspose_slides_cloud/models/slide_properties.rb
457
459
  - lib/aspose_slides_cloud/models/slide_replace_result.rb
460
+ - lib/aspose_slides_cloud/models/slide_show_properties.rb
458
461
  - lib/aspose_slides_cloud/models/slides.rb
459
462
  - lib/aspose_slides_cloud/models/smart_art.rb
460
463
  - lib/aspose_slides_cloud/models/smart_art_node.rb
@@ -504,8 +507,10 @@ files:
504
507
  - spec/use_cases/animation_spec.rb
505
508
  - spec/use_cases/auth_spec.rb
506
509
  - spec/use_cases/chart_spec.rb
510
+ - spec/use_cases/comment_spec.rb
507
511
  - spec/use_cases/convert_spec.rb
508
512
  - spec/use_cases/create_spec.rb
513
+ - spec/use_cases/font_spec.rb
509
514
  - spec/use_cases/header_footer_spec.rb
510
515
  - spec/use_cases/hyperlink_spec.rb
511
516
  - spec/use_cases/image_spec.rb
@@ -515,12 +520,16 @@ files:
515
520
  - spec/use_cases/merge_spec.rb
516
521
  - spec/use_cases/notes_slide_spec.rb
517
522
  - spec/use_cases/nullable_field_spec.rb
523
+ - spec/use_cases/paragraph_spec.rb
518
524
  - spec/use_cases/pipeline_spec.rb
525
+ - spec/use_cases/portion_spec.rb
519
526
  - spec/use_cases/property_spec.rb
520
527
  - spec/use_cases/section_spec.rb
521
528
  - spec/use_cases/shape_format_spec.rb
522
529
  - spec/use_cases/shape_spec.rb
530
+ - spec/use_cases/slide_spec.rb
523
531
  - spec/use_cases/split_spec.rb
532
+ - spec/use_cases/text_format_spec.rb
524
533
  - spec/use_cases/text_spec.rb
525
534
  - spec/use_cases/timeout_spec.rb
526
535
  - spec/use_cases/watermark_spec.rb
@@ -557,8 +566,10 @@ test_files:
557
566
  - spec/use_cases/animation_spec.rb
558
567
  - spec/use_cases/auth_spec.rb
559
568
  - spec/use_cases/chart_spec.rb
569
+ - spec/use_cases/comment_spec.rb
560
570
  - spec/use_cases/convert_spec.rb
561
571
  - spec/use_cases/create_spec.rb
572
+ - spec/use_cases/font_spec.rb
562
573
  - spec/use_cases/header_footer_spec.rb
563
574
  - spec/use_cases/hyperlink_spec.rb
564
575
  - spec/use_cases/image_spec.rb
@@ -568,12 +579,16 @@ test_files:
568
579
  - spec/use_cases/merge_spec.rb
569
580
  - spec/use_cases/notes_slide_spec.rb
570
581
  - spec/use_cases/nullable_field_spec.rb
582
+ - spec/use_cases/paragraph_spec.rb
571
583
  - spec/use_cases/pipeline_spec.rb
584
+ - spec/use_cases/portion_spec.rb
572
585
  - spec/use_cases/property_spec.rb
573
586
  - spec/use_cases/section_spec.rb
574
587
  - spec/use_cases/shape_format_spec.rb
575
588
  - spec/use_cases/shape_spec.rb
589
+ - spec/use_cases/slide_spec.rb
576
590
  - spec/use_cases/split_spec.rb
591
+ - spec/use_cases/text_format_spec.rb
577
592
  - spec/use_cases/text_spec.rb
578
593
  - spec/use_cases/timeout_spec.rb
579
594
  - spec/use_cases/watermark_spec.rb