aspose_slides_cloud 24.2.0 → 24.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +18 -0
- data/docker-entrypoint.sh +5 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +290 -22
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +8 -8
- data/lib/aspose_slides_cloud/models/audio_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +2 -1
- data/lib/aspose_slides_cloud/models/chart.rb +2 -1
- data/lib/aspose_slides_cloud/models/connector.rb +2 -1
- data/lib/aspose_slides_cloud/models/data_point.rb +11 -1
- data/lib/aspose_slides_cloud/models/effect.rb +23 -1
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -1
- data/lib/aspose_slides_cloud/models/group_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/handout_layouting_options.rb +133 -0
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +22 -2
- data/lib/aspose_slides_cloud/models/html_export_options.rb +8 -72
- data/lib/aspose_slides_cloud/models/image_export_options.rb +12 -66
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +190 -0
- data/lib/aspose_slides_cloud/models/math_format.rb +40 -0
- data/lib/aspose_slides_cloud/models/notes_comments_layouting_options.rb +155 -0
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +2 -1
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +8 -72
- data/lib/aspose_slides_cloud/models/picture_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +2 -1
- data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/shape_base.rb +11 -1
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/slide_show_properties.rb +11 -1
- data/lib/aspose_slides_cloud/models/slides_layout_options.rb +102 -0
- data/lib/aspose_slides_cloud/models/smart_art.rb +2 -1
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +2 -1
- data/lib/aspose_slides_cloud/models/table.rb +2 -1
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +23 -65
- data/lib/aspose_slides_cloud/models/video_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/zoom_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/zoom_object.rb +2 -1
- data/lib/aspose_slides_cloud/type_registry.rb +8 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +5 -0
- data/spec/api/slides_api_spec.rb +782 -0
- data/spec/use_cases/image_spec.rb +27 -0
- data/spec/use_cases/math_spec.rb +3 -3
- data/testRules.json +6 -2
- metadata +7 -2
@@ -119,5 +119,32 @@ describe 'UseCases' do
|
|
119
119
|
response = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online(file, image_index, image, password)
|
120
120
|
expect(response.size).not_to eq(0)
|
121
121
|
end
|
122
|
+
|
123
|
+
it 'delete picture cropped areas' do
|
124
|
+
folder_name = "TempSlidesSDK"
|
125
|
+
file_name = "test.pptx"
|
126
|
+
slide_index = 2
|
127
|
+
shape_index = 2
|
128
|
+
password = "password"
|
129
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
130
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas(
|
131
|
+
file_name, slide_index, shape_index, password, folder_name)
|
132
|
+
end
|
133
|
+
|
134
|
+
it 'delete picture cropped areas wrong shape type' do
|
135
|
+
folder_name = "TempSlidesSDK"
|
136
|
+
file_name = "test.pptx"
|
137
|
+
slide_index = 2
|
138
|
+
shape_index = 3
|
139
|
+
password = "password"
|
140
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
141
|
+
begin
|
142
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_picture_cropped_areas(
|
143
|
+
file_name, slide_index, shape_index, password, folder_name)
|
144
|
+
fail "Should throw an exception if shape is not PictureFrame"
|
145
|
+
rescue AsposeSlidesCloud::ApiError => e
|
146
|
+
expect(e.code).to eq(400)
|
147
|
+
end
|
148
|
+
end
|
122
149
|
end
|
123
150
|
end
|
data/spec/use_cases/math_spec.rb
CHANGED
@@ -135,7 +135,7 @@ describe 'UseCases' do
|
|
135
135
|
folder_name = "TempSlidesSDK"
|
136
136
|
file_name = "test.pptx"
|
137
137
|
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
138
|
-
mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.
|
138
|
+
mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion(file_name, 2, 3, 1, 1, "MathML", "password", folder_name)
|
139
139
|
expect(mathMl).to be_truthy
|
140
140
|
end
|
141
141
|
|
@@ -144,7 +144,7 @@ describe 'UseCases' do
|
|
144
144
|
file_name = "test.pptx"
|
145
145
|
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
146
146
|
begin
|
147
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.
|
147
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion(file_name, 2, 1, 1, 1, "MathML", "password", folder_name)
|
148
148
|
fail "Must have failed because conversion to MathML works only for math portions"
|
149
149
|
rescue AsposeSlidesCloud::ApiError => e
|
150
150
|
expect(e.code).to eq(400)
|
@@ -156,7 +156,7 @@ describe 'UseCases' do
|
|
156
156
|
file_name = "test.pptx"
|
157
157
|
out_path = folder_name + "/mathml.xml"
|
158
158
|
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
159
|
-
mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.
|
159
|
+
mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion(file_name, 2, 3, 1, 1, "MathML", out_path, "password", folder_name)
|
160
160
|
expect(AsposeSlidesCloud::SpecUtils.testSlidesApi.object_exists(out_path).exists).to be true
|
161
161
|
end
|
162
162
|
end
|
data/testRules.json
CHANGED
@@ -31,11 +31,13 @@
|
|
31
31
|
{ "Value": 7, "Parameter": "SlideIndex", "Method": "/SmartArt/" },
|
32
32
|
{ "Value": 5, "Parameter": "SlideIndex", "Method": "CreateSection" },
|
33
33
|
{ "Value": 4, "Parameter": "SlideIndex", "Method": "/ShapeGeometryPath/" },
|
34
|
-
{ "Value": 2, "Parameter": "SlideIndex", "Method": "/
|
34
|
+
{ "Value": 2, "Parameter": "SlideIndex", "Method": "/Math/" },
|
35
|
+
{ "Value": 2, "Parameter": "SlideIndex", "Method": "DeletePictureCroppedAreas" },
|
35
36
|
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "/ChartDataPoint/" },
|
36
37
|
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "/ChartWall/" },
|
37
38
|
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "/ShapeGeometryPath/" },
|
38
|
-
{ "Value":
|
39
|
+
{ "Value": 2, "Parameter": "ShapeIndex", "Method": "DeletePictureCroppedAreas" },
|
40
|
+
{ "Value": 3, "Parameter": "ShapeIndex", "Method": "/Math/" },
|
39
41
|
{ "Value": 2, "Parameter": "SectionIndex" },
|
40
42
|
{ "Value": 20, "InvalidValue": 593, "Parameter": "FontHeight" },
|
41
43
|
{ "Value": 256, "InvalidValue": 593, "Parameter": "FontColor" },
|
@@ -111,6 +113,7 @@
|
|
111
113
|
{ "InvalidValue": "svg", "Parameter": "Format", "Language": "NET" },
|
112
114
|
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "/NotesSlide/", "Language": "NET" },
|
113
115
|
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "/Image/", "Language": "NET" },
|
116
|
+
{ "Value": "MathML", "InvalidValue": "LaTeX", "Parameter": "Format", "Method": "/Math/" },
|
114
117
|
{ "Value": "MasterSlide", "Parameter": "SlideType" },
|
115
118
|
{ "InvalidValue": "LayoutSlide", "Parameter": "SlideType", "Language": "NET" },
|
116
119
|
{ "Value": "Chart", "InvalidValue": "Table", "Parameter": "ShapeType" },
|
@@ -172,6 +175,7 @@
|
|
172
175
|
{ "Parameter": "Format", "Language": "NET" },
|
173
176
|
{ "Parameter": "Format", "Language": "Java" },
|
174
177
|
{ "Parameter": "Format", "Language": "Swift" },
|
178
|
+
{ "Parameter": "Format", "Method": "/Math/" },
|
175
179
|
{ "Parameter": "SlideType" },
|
176
180
|
{ "Parameter": "ShapeType" },
|
177
181
|
{ "Parameter": "AlignmentType" },
|
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: 24.
|
4
|
+
version: 24.4.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: 2024-
|
11
|
+
date: 2024-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -374,6 +374,7 @@ files:
|
|
374
374
|
- lib/aspose_slides_cloud/models/gray_scale_effect.rb
|
375
375
|
- lib/aspose_slides_cloud/models/group_shape.rb
|
376
376
|
- lib/aspose_slides_cloud/models/grouping_character_element.rb
|
377
|
+
- lib/aspose_slides_cloud/models/handout_layouting_options.rb
|
377
378
|
- lib/aspose_slides_cloud/models/header_footer.rb
|
378
379
|
- lib/aspose_slides_cloud/models/hsl_effect.rb
|
379
380
|
- lib/aspose_slides_cloud/models/html5_export_options.rb
|
@@ -400,9 +401,11 @@ files:
|
|
400
401
|
- lib/aspose_slides_cloud/models/line_to_path_segment.rb
|
401
402
|
- lib/aspose_slides_cloud/models/literals.rb
|
402
403
|
- lib/aspose_slides_cloud/models/luminance_effect.rb
|
404
|
+
- lib/aspose_slides_cloud/models/markdown_export_options.rb
|
403
405
|
- lib/aspose_slides_cloud/models/master_slide.rb
|
404
406
|
- lib/aspose_slides_cloud/models/master_slides.rb
|
405
407
|
- lib/aspose_slides_cloud/models/math_element.rb
|
408
|
+
- lib/aspose_slides_cloud/models/math_format.rb
|
406
409
|
- lib/aspose_slides_cloud/models/math_paragraph.rb
|
407
410
|
- lib/aspose_slides_cloud/models/matrix_element.rb
|
408
411
|
- lib/aspose_slides_cloud/models/merge.rb
|
@@ -411,6 +414,7 @@ files:
|
|
411
414
|
- lib/aspose_slides_cloud/models/nary_operator_element.rb
|
412
415
|
- lib/aspose_slides_cloud/models/no_fill.rb
|
413
416
|
- lib/aspose_slides_cloud/models/normal_view_restored_properties.rb
|
417
|
+
- lib/aspose_slides_cloud/models/notes_comments_layouting_options.rb
|
414
418
|
- lib/aspose_slides_cloud/models/notes_slide.rb
|
415
419
|
- lib/aspose_slides_cloud/models/notes_slide_export_format.rb
|
416
420
|
- lib/aspose_slides_cloud/models/notes_slide_header_footer.rb
|
@@ -490,6 +494,7 @@ files:
|
|
490
494
|
- lib/aspose_slides_cloud/models/slide_show_properties.rb
|
491
495
|
- lib/aspose_slides_cloud/models/slide_show_transition.rb
|
492
496
|
- lib/aspose_slides_cloud/models/slides.rb
|
497
|
+
- lib/aspose_slides_cloud/models/slides_layout_options.rb
|
493
498
|
- lib/aspose_slides_cloud/models/smart_art.rb
|
494
499
|
- lib/aspose_slides_cloud/models/smart_art_node.rb
|
495
500
|
- lib/aspose_slides_cloud/models/smart_art_shape.rb
|