aspose_slides_cloud 24.5.0 → 24.7.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 +11 -9
- data/README.md +17 -0
- data/TestData/pictureFrame.html +39 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +1 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +75 -204
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +8 -8
- data/lib/aspose_slides_cloud/api_client.rb +15 -3
- data/lib/aspose_slides_cloud/models/document_property.rb +0 -5
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +0 -25
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/operation.rb +1 -10
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -2
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +26 -3
- data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -10
- 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/slide.rb +0 -5
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/table.rb +12 -2
- data/lib/aspose_slides_cloud/models/table_cell.rb +11 -1
- data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +0 -5
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +96 -543
- data/spec/use_cases/text_spec.rb +7 -4
- metadata +23 -2
@@ -87,7 +87,7 @@ module AsposeSlidesCloud
|
|
87
87
|
def valid?
|
88
88
|
return false if !super
|
89
89
|
return false if @format.nil?
|
90
|
-
format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md'])
|
90
|
+
format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'])
|
91
91
|
return false unless format_validator.valid?(@format)
|
92
92
|
true
|
93
93
|
end
|
@@ -95,7 +95,7 @@ module AsposeSlidesCloud
|
|
95
95
|
# Custom attribute writer method checking allowed values (enum).
|
96
96
|
# @param [Object] format Object to be assigned
|
97
97
|
def format=(format)
|
98
|
-
validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md'])
|
98
|
+
validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'])
|
99
99
|
unless validator.valid?(format)
|
100
100
|
fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
|
101
101
|
end
|
@@ -118,7 +118,7 @@ module AsposeSlidesCloud
|
|
118
118
|
def valid?
|
119
119
|
return false if !super
|
120
120
|
return false if @format.nil?
|
121
|
-
format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'])
|
121
|
+
format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'])
|
122
122
|
return false unless format_validator.valid?(@format)
|
123
123
|
return false if @position.nil?
|
124
124
|
true
|
@@ -127,7 +127,7 @@ module AsposeSlidesCloud
|
|
127
127
|
# Custom attribute writer method checking allowed values (enum).
|
128
128
|
# @param [Object] format Object to be assigned
|
129
129
|
def format=(format)
|
130
|
-
validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'])
|
130
|
+
validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'])
|
131
131
|
unless validator.valid?(format)
|
132
132
|
fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
|
133
133
|
end
|
@@ -163,10 +163,6 @@ module AsposeSlidesCloud
|
|
163
163
|
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
164
164
|
end
|
165
165
|
|
166
|
-
if @show_master_shapes.nil?
|
167
|
-
invalid_properties.push('invalid value for "show_master_shapes", show_master_shapes cannot be nil.')
|
168
|
-
end
|
169
|
-
|
170
166
|
invalid_properties
|
171
167
|
end
|
172
168
|
|
@@ -176,7 +172,6 @@ module AsposeSlidesCloud
|
|
176
172
|
return false if !super
|
177
173
|
return false if @width.nil?
|
178
174
|
return false if @height.nil?
|
179
|
-
return false if @show_master_shapes.nil?
|
180
175
|
true
|
181
176
|
end
|
182
177
|
|
@@ -187,6 +187,7 @@ module AsposeSlidesCloud
|
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
189
|
default_regular_font == o.default_regular_font &&
|
190
|
+
gradient_style == o.gradient_style &&
|
190
191
|
font_fallback_rules == o.font_fallback_rules &&
|
191
192
|
font_subst_rules == o.font_subst_rules &&
|
192
193
|
format == o.format &&
|
@@ -212,7 +213,7 @@ module AsposeSlidesCloud
|
|
212
213
|
# Calculates hash code according to all attributes.
|
213
214
|
# @return [Fixnum] Hash code
|
214
215
|
def hash
|
215
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, vectorize_text, metafile_rasterization_dpi, disable3_d_text, disable_gradient_split, disable_line_end_cropping, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, external_fonts_handling, use_frame_size, use_frame_rotation].hash
|
216
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, vectorize_text, metafile_rasterization_dpi, disable3_d_text, disable_gradient_split, disable_line_end_cropping, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, external_fonts_handling, use_frame_size, use_frame_rotation].hash
|
216
217
|
end
|
217
218
|
end
|
218
219
|
end
|
@@ -268,6 +268,7 @@ module AsposeSlidesCloud
|
|
268
268
|
return true if self.equal?(o)
|
269
269
|
self.class == o.class &&
|
270
270
|
default_regular_font == o.default_regular_font &&
|
271
|
+
gradient_style == o.gradient_style &&
|
271
272
|
font_fallback_rules == o.font_fallback_rules &&
|
272
273
|
font_subst_rules == o.font_subst_rules &&
|
273
274
|
format == o.format &&
|
@@ -302,7 +303,7 @@ module AsposeSlidesCloud
|
|
302
303
|
# Calculates hash code according to all attributes.
|
303
304
|
# @return [Fixnum] Hash code
|
304
305
|
def hash
|
305
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, show_hidden_slides, compressed, viewer_included, show_page_border, show_full_screen, show_page_stepper, show_search, show_top_pane, show_bottom_pane, show_left_pane, start_open_left_pane, enable_context_menu, logo_image, logo_link, jpeg_quality, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
306
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, show_hidden_slides, compressed, viewer_included, show_page_border, show_full_screen, show_page_stepper, show_search, show_top_pane, show_bottom_pane, show_left_pane, start_open_left_pane, enable_context_menu, logo_image, logo_link, jpeg_quality, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
306
307
|
end
|
307
308
|
end
|
308
309
|
end
|
@@ -55,6 +55,9 @@ module AsposeSlidesCloud
|
|
55
55
|
# Determines whether the even columns has to be drawn with a different formatting.
|
56
56
|
attr_accessor :vertical_banding
|
57
57
|
|
58
|
+
# Transparency.
|
59
|
+
attr_accessor :transparency
|
60
|
+
|
58
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
62
|
def self.attribute_map
|
60
63
|
super.merge({
|
@@ -68,6 +71,7 @@ module AsposeSlidesCloud
|
|
68
71
|
:'last_row' => :'LastRow',
|
69
72
|
:'right_to_left' => :'RightToLeft',
|
70
73
|
:'vertical_banding' => :'VerticalBanding',
|
74
|
+
:'transparency' => :'Transparency',
|
71
75
|
})
|
72
76
|
end
|
73
77
|
|
@@ -84,6 +88,7 @@ module AsposeSlidesCloud
|
|
84
88
|
:'last_row' => :'BOOLEAN',
|
85
89
|
:'right_to_left' => :'BOOLEAN',
|
86
90
|
:'vertical_banding' => :'BOOLEAN',
|
91
|
+
:'transparency' => :'Float',
|
87
92
|
})
|
88
93
|
end
|
89
94
|
|
@@ -135,6 +140,10 @@ module AsposeSlidesCloud
|
|
135
140
|
if attributes.has_key?(:'VerticalBanding')
|
136
141
|
self.vertical_banding = attributes[:'VerticalBanding']
|
137
142
|
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'Transparency')
|
145
|
+
self.transparency = attributes[:'Transparency']
|
146
|
+
end
|
138
147
|
self.type = 'Table'
|
139
148
|
end
|
140
149
|
|
@@ -197,7 +206,8 @@ module AsposeSlidesCloud
|
|
197
206
|
last_col == o.last_col &&
|
198
207
|
last_row == o.last_row &&
|
199
208
|
right_to_left == o.right_to_left &&
|
200
|
-
vertical_banding == o.vertical_banding
|
209
|
+
vertical_banding == o.vertical_banding &&
|
210
|
+
transparency == o.transparency
|
201
211
|
end
|
202
212
|
|
203
213
|
# @see the `==` method
|
@@ -209,7 +219,7 @@ module AsposeSlidesCloud
|
|
209
219
|
# Calculates hash code according to all attributes.
|
210
220
|
# @return [Fixnum] Hash code
|
211
221
|
def hash
|
212
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, style, rows, columns, first_col, first_row, horizontal_banding, last_col, last_row, right_to_left, vertical_banding].hash
|
222
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, style, rows, columns, first_col, first_row, horizontal_banding, last_col, last_row, right_to_left, vertical_banding, transparency].hash
|
213
223
|
end
|
214
224
|
end
|
215
225
|
end
|
@@ -46,6 +46,9 @@ module AsposeSlidesCloud
|
|
46
46
|
# The bottom margin of the cell.
|
47
47
|
attr_accessor :margin_bottom
|
48
48
|
|
49
|
+
# Transparency.
|
50
|
+
attr_accessor :transparency
|
51
|
+
|
49
52
|
# Text anchor type.
|
50
53
|
attr_accessor :text_anchor_type
|
51
54
|
|
@@ -95,6 +98,7 @@ module AsposeSlidesCloud
|
|
95
98
|
:'margin_right' => :'MarginRight',
|
96
99
|
:'margin_left' => :'MarginLeft',
|
97
100
|
:'margin_bottom' => :'MarginBottom',
|
101
|
+
:'transparency' => :'Transparency',
|
98
102
|
:'text_anchor_type' => :'TextAnchorType',
|
99
103
|
:'text_vertical_type' => :'TextVerticalType',
|
100
104
|
:'fill_format' => :'FillFormat',
|
@@ -121,6 +125,7 @@ module AsposeSlidesCloud
|
|
121
125
|
:'margin_right' => :'Float',
|
122
126
|
:'margin_left' => :'Float',
|
123
127
|
:'margin_bottom' => :'Float',
|
128
|
+
:'transparency' => :'Float',
|
124
129
|
:'text_anchor_type' => :'String',
|
125
130
|
:'text_vertical_type' => :'String',
|
126
131
|
:'fill_format' => :'FillFormat',
|
@@ -173,6 +178,10 @@ module AsposeSlidesCloud
|
|
173
178
|
self.margin_bottom = attributes[:'MarginBottom']
|
174
179
|
end
|
175
180
|
|
181
|
+
if attributes.has_key?(:'Transparency')
|
182
|
+
self.transparency = attributes[:'Transparency']
|
183
|
+
end
|
184
|
+
|
176
185
|
if attributes.has_key?(:'TextAnchorType')
|
177
186
|
self.text_anchor_type = attributes[:'TextAnchorType']
|
178
187
|
end
|
@@ -275,6 +284,7 @@ module AsposeSlidesCloud
|
|
275
284
|
margin_right == o.margin_right &&
|
276
285
|
margin_left == o.margin_left &&
|
277
286
|
margin_bottom == o.margin_bottom &&
|
287
|
+
transparency == o.transparency &&
|
278
288
|
text_anchor_type == o.text_anchor_type &&
|
279
289
|
text_vertical_type == o.text_vertical_type &&
|
280
290
|
fill_format == o.fill_format &&
|
@@ -299,7 +309,7 @@ module AsposeSlidesCloud
|
|
299
309
|
# Calculates hash code according to all attributes.
|
300
310
|
# @return [Fixnum] Hash code
|
301
311
|
def hash
|
302
|
-
[text, row_span, col_span, margin_top, margin_right, margin_left, margin_bottom, text_anchor_type, text_vertical_type, fill_format, border_top, border_right, border_left, border_bottom, border_diagonal_up, border_diagonal_down, column_index, row_index, text_frame_format, paragraphs].hash
|
312
|
+
[text, row_span, col_span, margin_top, margin_right, margin_left, margin_bottom, transparency, text_anchor_type, text_vertical_type, fill_format, border_top, border_right, border_left, border_bottom, border_diagonal_up, border_diagonal_down, column_index, row_index, text_frame_format, paragraphs].hash
|
303
313
|
end
|
304
314
|
end
|
305
315
|
end
|
@@ -111,10 +111,6 @@ module AsposeSlidesCloud
|
|
111
111
|
invalid_properties.push('invalid value for "last_cell_index", last_cell_index cannot be nil.')
|
112
112
|
end
|
113
113
|
|
114
|
-
if @allow_splitting.nil?
|
115
|
-
invalid_properties.push('invalid value for "allow_splitting", allow_splitting cannot be nil.')
|
116
|
-
end
|
117
|
-
|
118
114
|
invalid_properties
|
119
115
|
end
|
120
116
|
|
@@ -125,7 +121,6 @@ module AsposeSlidesCloud
|
|
125
121
|
return false if @first_cell_index.nil?
|
126
122
|
return false if @last_row_index.nil?
|
127
123
|
return false if @last_cell_index.nil?
|
128
|
-
return false if @allow_splitting.nil?
|
129
124
|
true
|
130
125
|
end
|
131
126
|
|
@@ -163,6 +163,7 @@ module AsposeSlidesCloud
|
|
163
163
|
return true if self.equal?(o)
|
164
164
|
self.class == o.class &&
|
165
165
|
default_regular_font == o.default_regular_font &&
|
166
|
+
gradient_style == o.gradient_style &&
|
166
167
|
font_fallback_rules == o.font_fallback_rules &&
|
167
168
|
font_subst_rules == o.font_subst_rules &&
|
168
169
|
format == o.format &&
|
@@ -186,7 +187,7 @@ module AsposeSlidesCloud
|
|
186
187
|
# Calculates hash code according to all attributes.
|
187
188
|
# @return [Fixnum] Hash code
|
188
189
|
def hash
|
189
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, slides_layout_options, bw_conversion_mode].hash
|
190
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, slides_layout_options, bw_conversion_mode].hash
|
190
191
|
end
|
191
192
|
end
|
192
193
|
end
|
@@ -124,6 +124,7 @@ module AsposeSlidesCloud
|
|
124
124
|
return true if self.equal?(o)
|
125
125
|
self.class == o.class &&
|
126
126
|
default_regular_font == o.default_regular_font &&
|
127
|
+
gradient_style == o.gradient_style &&
|
127
128
|
font_fallback_rules == o.font_fallback_rules &&
|
128
129
|
font_subst_rules == o.font_subst_rules &&
|
129
130
|
format == o.format &&
|
@@ -142,7 +143,7 @@ module AsposeSlidesCloud
|
|
142
143
|
# Calculates hash code according to all attributes.
|
143
144
|
# @return [Fixnum] Hash code
|
144
145
|
def hash
|
145
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
|
146
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
|
146
147
|
end
|
147
148
|
end
|
148
149
|
end
|
@@ -73,6 +73,7 @@ module AsposeSlidesCloud
|
|
73
73
|
return true if self.equal?(o)
|
74
74
|
self.class == o.class &&
|
75
75
|
default_regular_font == o.default_regular_font &&
|
76
|
+
gradient_style == o.gradient_style &&
|
76
77
|
font_fallback_rules == o.font_fallback_rules &&
|
77
78
|
font_subst_rules == o.font_subst_rules &&
|
78
79
|
format == o.format &&
|
@@ -88,7 +89,7 @@ module AsposeSlidesCloud
|
|
88
89
|
# Calculates hash code according to all attributes.
|
89
90
|
# @return [Fixnum] Hash code
|
90
91
|
def hash
|
91
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, export_hidden_slides].hash
|
92
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, export_hidden_slides].hash
|
92
93
|
end
|
93
94
|
end
|
94
95
|
end
|
@@ -91,6 +91,7 @@ module AsposeSlidesCloud
|
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
93
|
default_regular_font == o.default_regular_font &&
|
94
|
+
gradient_style == o.gradient_style &&
|
94
95
|
font_fallback_rules == o.font_fallback_rules &&
|
95
96
|
font_subst_rules == o.font_subst_rules &&
|
96
97
|
format == o.format &&
|
@@ -108,7 +109,7 @@ module AsposeSlidesCloud
|
|
108
109
|
# Calculates hash code according to all attributes.
|
109
110
|
# @return [Fixnum] Hash code
|
110
111
|
def hash
|
111
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
112
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
112
113
|
end
|
113
114
|
end
|
114
115
|
end
|