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
@@ -98,6 +98,7 @@ module AsposeSlidesCloud
|
|
98
98
|
alternative_text == o.alternative_text &&
|
99
99
|
alternative_text_title == o.alternative_text_title &&
|
100
100
|
hidden == o.hidden &&
|
101
|
+
is_decorative == o.is_decorative &&
|
101
102
|
x == o.x &&
|
102
103
|
y == o.y &&
|
103
104
|
z_order_position == o.z_order_position &&
|
@@ -123,7 +124,7 @@ module AsposeSlidesCloud
|
|
123
124
|
# Calculates hash code according to all attributes.
|
124
125
|
# @return [Fixnum] Hash code
|
125
126
|
def hash
|
126
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, text, paragraphs, text_frame_format].hash
|
127
|
+
[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, shape_type, text, paragraphs, text_frame_format].hash
|
127
128
|
end
|
128
129
|
end
|
129
130
|
end
|
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
|
|
43
43
|
# Gets or sets a value indicating whether this ShapeBase is hidden.
|
44
44
|
attr_accessor :hidden
|
45
45
|
|
46
|
+
# Gets or sets 'Mark as decorative' option.
|
47
|
+
attr_accessor :is_decorative
|
48
|
+
|
46
49
|
# Gets or sets the X
|
47
50
|
attr_accessor :x
|
48
51
|
|
@@ -81,6 +84,7 @@ module AsposeSlidesCloud
|
|
81
84
|
:'alternative_text' => :'AlternativeText',
|
82
85
|
:'alternative_text_title' => :'AlternativeTextTitle',
|
83
86
|
:'hidden' => :'Hidden',
|
87
|
+
:'is_decorative' => :'IsDecorative',
|
84
88
|
:'x' => :'X',
|
85
89
|
:'y' => :'Y',
|
86
90
|
:'z_order_position' => :'ZOrderPosition',
|
@@ -103,6 +107,7 @@ module AsposeSlidesCloud
|
|
103
107
|
:'alternative_text' => :'String',
|
104
108
|
:'alternative_text_title' => :'String',
|
105
109
|
:'hidden' => :'BOOLEAN',
|
110
|
+
:'is_decorative' => :'BOOLEAN',
|
106
111
|
:'x' => :'Float',
|
107
112
|
:'y' => :'Float',
|
108
113
|
:'z_order_position' => :'Integer',
|
@@ -145,6 +150,10 @@ module AsposeSlidesCloud
|
|
145
150
|
self.hidden = attributes[:'Hidden']
|
146
151
|
end
|
147
152
|
|
153
|
+
if attributes.has_key?(:'IsDecorative')
|
154
|
+
self.is_decorative = attributes[:'IsDecorative']
|
155
|
+
end
|
156
|
+
|
148
157
|
if attributes.has_key?(:'X')
|
149
158
|
self.x = attributes[:'X']
|
150
159
|
end
|
@@ -230,6 +239,7 @@ module AsposeSlidesCloud
|
|
230
239
|
alternative_text == o.alternative_text &&
|
231
240
|
alternative_text_title == o.alternative_text_title &&
|
232
241
|
hidden == o.hidden &&
|
242
|
+
is_decorative == o.is_decorative &&
|
233
243
|
x == o.x &&
|
234
244
|
y == o.y &&
|
235
245
|
z_order_position == o.z_order_position &&
|
@@ -251,7 +261,7 @@ module AsposeSlidesCloud
|
|
251
261
|
# Calculates hash code according to all attributes.
|
252
262
|
# @return [Fixnum] Hash code
|
253
263
|
def hash
|
254
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
|
264
|
+
[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].hash
|
255
265
|
end
|
256
266
|
end
|
257
267
|
end
|
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
|
|
43
43
|
# Show narrration.
|
44
44
|
attr_accessor :show_narration
|
45
45
|
|
46
|
+
# Show media controls.
|
47
|
+
attr_accessor :show_media_controls
|
48
|
+
|
46
49
|
# Use timings.
|
47
50
|
attr_accessor :use_timings
|
48
51
|
|
@@ -61,6 +64,7 @@ module AsposeSlidesCloud
|
|
61
64
|
:'pen_color' => :'PenColor',
|
62
65
|
:'show_animation' => :'ShowAnimation',
|
63
66
|
:'show_narration' => :'ShowNarration',
|
67
|
+
:'show_media_controls' => :'ShowMediaControls',
|
64
68
|
:'use_timings' => :'UseTimings',
|
65
69
|
:'slide_show_type' => :'SlideShowType',
|
66
70
|
:'show_scrollbar' => :'ShowScrollbar',
|
@@ -76,6 +80,7 @@ module AsposeSlidesCloud
|
|
76
80
|
:'pen_color' => :'String',
|
77
81
|
:'show_animation' => :'BOOLEAN',
|
78
82
|
:'show_narration' => :'BOOLEAN',
|
83
|
+
:'show_media_controls' => :'BOOLEAN',
|
79
84
|
:'use_timings' => :'BOOLEAN',
|
80
85
|
:'slide_show_type' => :'String',
|
81
86
|
:'show_scrollbar' => :'BOOLEAN',
|
@@ -111,6 +116,10 @@ module AsposeSlidesCloud
|
|
111
116
|
self.show_narration = attributes[:'ShowNarration']
|
112
117
|
end
|
113
118
|
|
119
|
+
if attributes.has_key?(:'ShowMediaControls')
|
120
|
+
self.show_media_controls = attributes[:'ShowMediaControls']
|
121
|
+
end
|
122
|
+
|
114
123
|
if attributes.has_key?(:'UseTimings')
|
115
124
|
self.use_timings = attributes[:'UseTimings']
|
116
125
|
end
|
@@ -163,6 +172,7 @@ module AsposeSlidesCloud
|
|
163
172
|
pen_color == o.pen_color &&
|
164
173
|
show_animation == o.show_animation &&
|
165
174
|
show_narration == o.show_narration &&
|
175
|
+
show_media_controls == o.show_media_controls &&
|
166
176
|
use_timings == o.use_timings &&
|
167
177
|
slide_show_type == o.slide_show_type &&
|
168
178
|
show_scrollbar == o.show_scrollbar
|
@@ -177,7 +187,7 @@ module AsposeSlidesCloud
|
|
177
187
|
# Calculates hash code according to all attributes.
|
178
188
|
# @return [Fixnum] Hash code
|
179
189
|
def hash
|
180
|
-
[self_uri, alternate_links, loop, start_slide, end_slide, pen_color, show_animation, show_narration, use_timings, slide_show_type, show_scrollbar].hash
|
190
|
+
[self_uri, alternate_links, loop, start_slide, end_slide, pen_color, show_animation, show_narration, show_media_controls, use_timings, slide_show_type, show_scrollbar].hash
|
181
191
|
end
|
182
192
|
end
|
183
193
|
end
|
@@ -0,0 +1,102 @@
|
|
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 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# Slides layouting options.
|
27
|
+
class SlidesLayoutOptions < BaseObject
|
28
|
+
attr_accessor :layout_type
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'layout_type' => :'LayoutType',
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.swagger_types
|
39
|
+
{
|
40
|
+
:'layout_type' => :'String',
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Initializes the object
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
46
|
+
def initialize(attributes = {})
|
47
|
+
return unless attributes.is_a?(Hash)
|
48
|
+
|
49
|
+
# convert string to symbol for hash key
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
51
|
+
|
52
|
+
if attributes.has_key?(:'LayoutType')
|
53
|
+
self.layout_type = attributes[:'LayoutType']
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
+
# @return Array for valid properties with the reasons
|
59
|
+
def list_invalid_properties
|
60
|
+
invalid_properties = Array.new
|
61
|
+
invalid_properties
|
62
|
+
end
|
63
|
+
|
64
|
+
# Check to see if the all the properties in the model are valid
|
65
|
+
# @return true if the model is valid
|
66
|
+
def valid?
|
67
|
+
layout_type_validator = EnumAttributeValidator.new('String', ['NotesComments', 'Handout'])
|
68
|
+
return false unless layout_type_validator.valid?(@layout_type)
|
69
|
+
true
|
70
|
+
end
|
71
|
+
|
72
|
+
# Custom attribute writer method checking allowed values (enum).
|
73
|
+
# @param [Object] layout_type Object to be assigned
|
74
|
+
def layout_type=(layout_type)
|
75
|
+
validator = EnumAttributeValidator.new('String', ['NotesComments', 'Handout'])
|
76
|
+
unless validator.valid?(layout_type)
|
77
|
+
fail ArgumentError, 'invalid value for "layout_type", must be one of #{validator.allowable_values}.'
|
78
|
+
end
|
79
|
+
@layout_type = layout_type
|
80
|
+
end
|
81
|
+
|
82
|
+
# Checks equality by comparing each attribute.
|
83
|
+
# @param [Object] Object to be compared
|
84
|
+
def ==(o)
|
85
|
+
return true if self.equal?(o)
|
86
|
+
self.class == o.class &&
|
87
|
+
layout_type == o.layout_type
|
88
|
+
end
|
89
|
+
|
90
|
+
# @see the `==` method
|
91
|
+
# @param [Object] Object to be compared
|
92
|
+
def eql?(o)
|
93
|
+
self == o
|
94
|
+
end
|
95
|
+
|
96
|
+
# Calculates hash code according to all attributes.
|
97
|
+
# @return [Fixnum] Hash code
|
98
|
+
def hash
|
99
|
+
[layout_type].hash
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -174,6 +174,7 @@ module AsposeSlidesCloud
|
|
174
174
|
alternative_text == o.alternative_text &&
|
175
175
|
alternative_text_title == o.alternative_text_title &&
|
176
176
|
hidden == o.hidden &&
|
177
|
+
is_decorative == o.is_decorative &&
|
177
178
|
x == o.x &&
|
178
179
|
y == o.y &&
|
179
180
|
z_order_position == o.z_order_position &&
|
@@ -200,7 +201,7 @@ module AsposeSlidesCloud
|
|
200
201
|
# Calculates hash code according to all attributes.
|
201
202
|
# @return [Fixnum] Hash code
|
202
203
|
def hash
|
203
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, layout, quick_style, color_style, nodes, is_reversed].hash
|
204
|
+
[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, layout, quick_style, color_style, nodes, is_reversed].hash
|
204
205
|
end
|
205
206
|
end
|
206
207
|
end
|
@@ -71,6 +71,7 @@ module AsposeSlidesCloud
|
|
71
71
|
alternative_text == o.alternative_text &&
|
72
72
|
alternative_text_title == o.alternative_text_title &&
|
73
73
|
hidden == o.hidden &&
|
74
|
+
is_decorative == o.is_decorative &&
|
74
75
|
x == o.x &&
|
75
76
|
y == o.y &&
|
76
77
|
z_order_position == o.z_order_position &&
|
@@ -93,7 +94,7 @@ module AsposeSlidesCloud
|
|
93
94
|
# Calculates hash code according to all attributes.
|
94
95
|
# @return [Fixnum] Hash code
|
95
96
|
def hash
|
96
|
-
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, typeshape_type].hash
|
97
|
+
[self_uri, alternate_linksname, 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, typeshape_type].hash
|
97
98
|
end
|
98
99
|
end
|
99
100
|
end
|
@@ -103,6 +103,7 @@ module AsposeSlidesCloud
|
|
103
103
|
alternative_text == o.alternative_text &&
|
104
104
|
alternative_text_title == o.alternative_text_title &&
|
105
105
|
hidden == o.hidden &&
|
106
|
+
is_decorative == o.is_decorative &&
|
106
107
|
x == o.x &&
|
107
108
|
y == o.y &&
|
108
109
|
z_order_position == o.z_order_position &&
|
@@ -126,7 +127,7 @@ module AsposeSlidesCloud
|
|
126
127
|
# Calculates hash code according to all attributes.
|
127
128
|
# @return [Fixnum] Hash code
|
128
129
|
def hash
|
129
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, zoom_layout, sections].hash
|
130
|
+
[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, zoom_layout, sections].hash
|
130
131
|
end
|
131
132
|
end
|
132
133
|
end
|
@@ -89,6 +89,7 @@ module AsposeSlidesCloud
|
|
89
89
|
alternative_text == o.alternative_text &&
|
90
90
|
alternative_text_title == o.alternative_text_title &&
|
91
91
|
hidden == o.hidden &&
|
92
|
+
is_decorative == o.is_decorative &&
|
92
93
|
x == o.x &&
|
93
94
|
y == o.y &&
|
94
95
|
z_order_position == o.z_order_position &&
|
@@ -118,7 +119,7 @@ module AsposeSlidesCloud
|
|
118
119
|
# Calculates hash code according to all attributes.
|
119
120
|
# @return [Fixnum] Hash code
|
120
121
|
def hash
|
121
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, image_type, return_to_parent, show_background, image, transition_duration, target_section_index, title, description].hash
|
122
|
+
[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, image_type, return_to_parent, show_background, image, transition_duration, target_section_index, title, description].hash
|
122
123
|
end
|
123
124
|
end
|
124
125
|
end
|
@@ -177,6 +177,7 @@ module AsposeSlidesCloud
|
|
177
177
|
alternative_text == o.alternative_text &&
|
178
178
|
alternative_text_title == o.alternative_text_title &&
|
179
179
|
hidden == o.hidden &&
|
180
|
+
is_decorative == o.is_decorative &&
|
180
181
|
x == o.x &&
|
181
182
|
y == o.y &&
|
182
183
|
z_order_position == o.z_order_position &&
|
@@ -208,7 +209,7 @@ module AsposeSlidesCloud
|
|
208
209
|
# Calculates hash code according to all attributes.
|
209
210
|
# @return [Fixnum] Hash code
|
210
211
|
def hash
|
211
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, 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
|
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
|
212
213
|
end
|
213
214
|
end
|
214
215
|
end
|
@@ -40,20 +40,11 @@ module AsposeSlidesCloud
|
|
40
40
|
# Specifies the pixel format for the generated images. Read/write ImagePixelFormat.
|
41
41
|
attr_accessor :pixel_format
|
42
42
|
|
43
|
-
#
|
44
|
-
attr_accessor :
|
43
|
+
# Slides layouting options
|
44
|
+
attr_accessor :slides_layout_options
|
45
45
|
|
46
|
-
#
|
47
|
-
attr_accessor :
|
48
|
-
|
49
|
-
# Gets or sets the width of the comment output area in pixels (Applies only if comments are displayed on the right).
|
50
|
-
attr_accessor :comments_area_width
|
51
|
-
|
52
|
-
# Gets or sets the color of comments area (Applies only if comments are displayed on the right).
|
53
|
-
attr_accessor :comments_area_color
|
54
|
-
|
55
|
-
# True if comments that have no author are displayed. (Applies only if comments are displayed).
|
56
|
-
attr_accessor :show_comments_by_no_author
|
46
|
+
# Specifies the algorithm for converting a color image into a black and white image. This option will applied only if Aspose.Slides.Export.TiffOptions.CompressionType is set to Aspose.Slides.Export.TiffCompressionTypes.CCITT4 or Aspose.Slides.Export.TiffCompressionTypes.CCITT3.
|
47
|
+
attr_accessor :bw_conversion_mode
|
57
48
|
|
58
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
50
|
def self.attribute_map
|
@@ -63,11 +54,8 @@ module AsposeSlidesCloud
|
|
63
54
|
:'dpi_y' => :'DpiY',
|
64
55
|
:'show_hidden_slides' => :'ShowHiddenSlides',
|
65
56
|
:'pixel_format' => :'PixelFormat',
|
66
|
-
:'
|
67
|
-
:'
|
68
|
-
:'comments_area_width' => :'CommentsAreaWidth',
|
69
|
-
:'comments_area_color' => :'CommentsAreaColor',
|
70
|
-
:'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
|
57
|
+
:'slides_layout_options' => :'SlidesLayoutOptions',
|
58
|
+
:'bw_conversion_mode' => :'BwConversionMode',
|
71
59
|
})
|
72
60
|
end
|
73
61
|
|
@@ -79,11 +67,8 @@ module AsposeSlidesCloud
|
|
79
67
|
:'dpi_y' => :'Integer',
|
80
68
|
:'show_hidden_slides' => :'BOOLEAN',
|
81
69
|
:'pixel_format' => :'String',
|
82
|
-
:'
|
83
|
-
:'
|
84
|
-
:'comments_area_width' => :'Integer',
|
85
|
-
:'comments_area_color' => :'String',
|
86
|
-
:'show_comments_by_no_author' => :'BOOLEAN',
|
70
|
+
:'slides_layout_options' => :'SlidesLayoutOptions',
|
71
|
+
:'bw_conversion_mode' => :'String',
|
87
72
|
})
|
88
73
|
end
|
89
74
|
|
@@ -112,24 +97,12 @@ module AsposeSlidesCloud
|
|
112
97
|
self.pixel_format = attributes[:'PixelFormat']
|
113
98
|
end
|
114
99
|
|
115
|
-
if attributes.has_key?(:'
|
116
|
-
self.
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.has_key?(:'CommentsPosition')
|
120
|
-
self.comments_position = attributes[:'CommentsPosition']
|
121
|
-
end
|
122
|
-
|
123
|
-
if attributes.has_key?(:'CommentsAreaWidth')
|
124
|
-
self.comments_area_width = attributes[:'CommentsAreaWidth']
|
100
|
+
if attributes.has_key?(:'SlidesLayoutOptions')
|
101
|
+
self.slides_layout_options = attributes[:'SlidesLayoutOptions']
|
125
102
|
end
|
126
103
|
|
127
|
-
if attributes.has_key?(:'
|
128
|
-
self.
|
129
|
-
end
|
130
|
-
|
131
|
-
if attributes.has_key?(:'ShowCommentsByNoAuthor')
|
132
|
-
self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
|
104
|
+
if attributes.has_key?(:'BwConversionMode')
|
105
|
+
self.bw_conversion_mode = attributes[:'BwConversionMode']
|
133
106
|
end
|
134
107
|
self.format = 'tiff'
|
135
108
|
end
|
@@ -149,10 +122,8 @@ module AsposeSlidesCloud
|
|
149
122
|
return false unless compression_validator.valid?(@compression)
|
150
123
|
pixel_format_validator = EnumAttributeValidator.new('String', ['Format1bppIndexed', 'Format4bppIndexed', 'Format8bppIndexed', 'Format24bppRgb', 'Format32bppArgb'])
|
151
124
|
return false unless pixel_format_validator.valid?(@pixel_format)
|
152
|
-
|
153
|
-
return false unless
|
154
|
-
comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
155
|
-
return false unless comments_position_validator.valid?(@comments_position)
|
125
|
+
bw_conversion_mode_validator = EnumAttributeValidator.new('String', ['Default', 'Dithering', 'DitheringFloydSteinberg', 'Auto', 'AutoOtsu', 'Threshold25', 'Threshold50', 'Threshold75'])
|
126
|
+
return false unless bw_conversion_mode_validator.valid?(@bw_conversion_mode)
|
156
127
|
true
|
157
128
|
end
|
158
129
|
|
@@ -177,23 +148,13 @@ module AsposeSlidesCloud
|
|
177
148
|
end
|
178
149
|
|
179
150
|
# Custom attribute writer method checking allowed values (enum).
|
180
|
-
# @param [Object]
|
181
|
-
def
|
182
|
-
validator = EnumAttributeValidator.new('String', ['
|
183
|
-
unless validator.valid?(
|
184
|
-
fail ArgumentError, 'invalid value for "
|
185
|
-
end
|
186
|
-
@notes_position = notes_position
|
187
|
-
end
|
188
|
-
|
189
|
-
# Custom attribute writer method checking allowed values (enum).
|
190
|
-
# @param [Object] comments_position Object to be assigned
|
191
|
-
def comments_position=(comments_position)
|
192
|
-
validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
193
|
-
unless validator.valid?(comments_position)
|
194
|
-
fail ArgumentError, 'invalid value for "comments_position", must be one of #{validator.allowable_values}.'
|
151
|
+
# @param [Object] bw_conversion_mode Object to be assigned
|
152
|
+
def bw_conversion_mode=(bw_conversion_mode)
|
153
|
+
validator = EnumAttributeValidator.new('String', ['Default', 'Dithering', 'DitheringFloydSteinberg', 'Auto', 'AutoOtsu', 'Threshold25', 'Threshold50', 'Threshold75'])
|
154
|
+
unless validator.valid?(bw_conversion_mode)
|
155
|
+
fail ArgumentError, 'invalid value for "bw_conversion_mode", must be one of #{validator.allowable_values}.'
|
195
156
|
end
|
196
|
-
@
|
157
|
+
@bw_conversion_mode = bw_conversion_mode
|
197
158
|
end
|
198
159
|
|
199
160
|
# Checks equality by comparing each attribute.
|
@@ -212,11 +173,8 @@ module AsposeSlidesCloud
|
|
212
173
|
dpi_y == o.dpi_y &&
|
213
174
|
show_hidden_slides == o.show_hidden_slides &&
|
214
175
|
pixel_format == o.pixel_format &&
|
215
|
-
|
216
|
-
|
217
|
-
comments_area_width == o.comments_area_width &&
|
218
|
-
comments_area_color == o.comments_area_color &&
|
219
|
-
show_comments_by_no_author == o.show_comments_by_no_author
|
176
|
+
slides_layout_options == o.slides_layout_options &&
|
177
|
+
bw_conversion_mode == o.bw_conversion_mode
|
220
178
|
end
|
221
179
|
|
222
180
|
# @see the `==` method
|
@@ -228,7 +186,7 @@ module AsposeSlidesCloud
|
|
228
186
|
# Calculates hash code according to all attributes.
|
229
187
|
# @return [Fixnum] Hash code
|
230
188
|
def hash
|
231
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format,
|
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
|
232
190
|
end
|
233
191
|
end
|
234
192
|
end
|
@@ -185,6 +185,7 @@ module AsposeSlidesCloud
|
|
185
185
|
alternative_text == o.alternative_text &&
|
186
186
|
alternative_text_title == o.alternative_text_title &&
|
187
187
|
hidden == o.hidden &&
|
188
|
+
is_decorative == o.is_decorative &&
|
188
189
|
x == o.x &&
|
189
190
|
y == o.y &&
|
190
191
|
z_order_position == o.z_order_position &&
|
@@ -217,7 +218,7 @@ module AsposeSlidesCloud
|
|
217
218
|
# Calculates hash code according to all attributes.
|
218
219
|
# @return [Fixnum] Hash code
|
219
220
|
def hash
|
220
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, full_screen_mode, hide_at_showing, play_loop_mode, play_mode, rewind_video, volume, base64_data, picture_fill_format, trim_from_start, trim_from_end].hash
|
221
|
+
[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, shape_type, full_screen_mode, hide_at_showing, play_loop_mode, play_mode, rewind_video, volume, base64_data, picture_fill_format, trim_from_start, trim_from_end].hash
|
221
222
|
end
|
222
223
|
end
|
223
224
|
end
|
@@ -80,6 +80,7 @@ module AsposeSlidesCloud
|
|
80
80
|
alternative_text == o.alternative_text &&
|
81
81
|
alternative_text_title == o.alternative_text_title &&
|
82
82
|
hidden == o.hidden &&
|
83
|
+
is_decorative == o.is_decorative &&
|
83
84
|
x == o.x &&
|
84
85
|
y == o.y &&
|
85
86
|
z_order_position == o.z_order_position &&
|
@@ -107,7 +108,7 @@ module AsposeSlidesCloud
|
|
107
108
|
# Calculates hash code according to all attributes.
|
108
109
|
# @return [Fixnum] Hash code
|
109
110
|
def hash
|
110
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, image_type, return_to_parent, show_background, image, transition_duration, target_slide_index].hash
|
111
|
+
[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, image_type, return_to_parent, show_background, image, transition_duration, target_slide_index].hash
|
111
112
|
end
|
112
113
|
end
|
113
114
|
end
|
@@ -127,6 +127,7 @@ module AsposeSlidesCloud
|
|
127
127
|
alternative_text == o.alternative_text &&
|
128
128
|
alternative_text_title == o.alternative_text_title &&
|
129
129
|
hidden == o.hidden &&
|
130
|
+
is_decorative == o.is_decorative &&
|
130
131
|
x == o.x &&
|
131
132
|
y == o.y &&
|
132
133
|
z_order_position == o.z_order_position &&
|
@@ -153,7 +154,7 @@ module AsposeSlidesCloud
|
|
153
154
|
# Calculates hash code according to all attributes.
|
154
155
|
# @return [Fixnum] Hash code
|
155
156
|
def hash
|
156
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, image_type, return_to_parent, show_background, image, transition_duration].hash
|
157
|
+
[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, image_type, return_to_parent, show_background, image, transition_duration].hash
|
157
158
|
end
|
158
159
|
end
|
159
160
|
end
|
@@ -128,6 +128,7 @@ module AsposeSlidesCloud
|
|
128
128
|
:'GrayScaleEffect' => :'ImageTransformEffect',
|
129
129
|
:'GroupShape' => :'ShapeBase',
|
130
130
|
:'GroupingCharacterElement' => :'MathElement',
|
131
|
+
:'HandoutLayoutingOptions' => :'SlidesLayoutOptions',
|
131
132
|
:'HeaderFooter' => :'ResourceBase',
|
132
133
|
:'HslEffect' => :'ImageTransformEffect',
|
133
134
|
:'Html5ExportOptions' => :'ExportOptions',
|
@@ -142,6 +143,7 @@ module AsposeSlidesCloud
|
|
142
143
|
:'LineToPathSegment' => :'PathSegment',
|
143
144
|
:'Literals' => :'DataSource',
|
144
145
|
:'LuminanceEffect' => :'ImageTransformEffect',
|
146
|
+
:'MarkdownExportOptions' => :'ExportOptions',
|
145
147
|
:'MasterSlide' => :'ResourceBase',
|
146
148
|
:'MasterSlides' => :'ResourceBase',
|
147
149
|
:'MatrixElement' => :'MathElement',
|
@@ -149,6 +151,7 @@ module AsposeSlidesCloud
|
|
149
151
|
:'MoveToPathSegment' => :'PathSegment',
|
150
152
|
:'NaryOperatorElement' => :'MathElement',
|
151
153
|
:'NoFill' => :'FillFormat',
|
154
|
+
:'NotesCommentsLayoutingOptions' => :'SlidesLayoutOptions',
|
152
155
|
:'NotesSlide' => :'ResourceBase',
|
153
156
|
:'NotesSlideHeaderFooter' => :'ResourceBase',
|
154
157
|
:'OleObjectFrame' => :'ShapeBase',
|
@@ -335,6 +338,8 @@ module AsposeSlidesCloud
|
|
335
338
|
:'GrayScaleEffect' => { :'Type' => 'GrayScale', },
|
336
339
|
:'GroupShape' => { :'Type' => 'GroupShape', },
|
337
340
|
:'GroupingCharacterElement' => { :'Type' => 'GroupingCharacter', },
|
341
|
+
:'SlidesLayoutOptions' => { },
|
342
|
+
:'HandoutLayoutingOptions' => { :'LayoutType' => 'Handout', },
|
338
343
|
:'HeaderFooter' => { },
|
339
344
|
:'HslEffect' => { :'Type' => 'Hsl', },
|
340
345
|
:'Html5ExportOptions' => { :'Format' => 'html5', },
|
@@ -358,8 +363,10 @@ module AsposeSlidesCloud
|
|
358
363
|
:'LineToPathSegment' => { :'Type' => 'LineTo', },
|
359
364
|
:'Literals' => { :'Type' => 'Literals', },
|
360
365
|
:'LuminanceEffect' => { :'Type' => 'Luminance', },
|
366
|
+
:'MarkdownExportOptions' => { :'Format' => 'md', },
|
361
367
|
:'MasterSlide' => { },
|
362
368
|
:'MasterSlides' => { },
|
369
|
+
:'MathFormat' => { },
|
363
370
|
:'MathParagraph' => { },
|
364
371
|
:'MatrixElement' => { :'Type' => 'Matrix', },
|
365
372
|
:'Merge' => { :'Type' => 'Merge', },
|
@@ -368,6 +375,7 @@ module AsposeSlidesCloud
|
|
368
375
|
:'NaryOperatorElement' => { :'Type' => 'NaryOperator', },
|
369
376
|
:'NoFill' => { :'Type' => 'NoFill', },
|
370
377
|
:'NormalViewRestoredProperties' => { },
|
378
|
+
:'NotesCommentsLayoutingOptions' => { :'LayoutType' => 'NotesComments', },
|
371
379
|
:'NotesSlide' => { },
|
372
380
|
:'NotesSlideExportFormat' => { },
|
373
381
|
:'NotesSlideHeaderFooter' => { },
|
data/lib/aspose_slides_cloud.rb
CHANGED
@@ -133,6 +133,8 @@ require 'aspose_slides_cloud/models/graphical_object'
|
|
133
133
|
require 'aspose_slides_cloud/models/gray_scale_effect'
|
134
134
|
require 'aspose_slides_cloud/models/group_shape'
|
135
135
|
require 'aspose_slides_cloud/models/grouping_character_element'
|
136
|
+
require 'aspose_slides_cloud/models/slides_layout_options'
|
137
|
+
require 'aspose_slides_cloud/models/handout_layouting_options'
|
136
138
|
require 'aspose_slides_cloud/models/header_footer'
|
137
139
|
require 'aspose_slides_cloud/models/hsl_effect'
|
138
140
|
require 'aspose_slides_cloud/models/html5_export_options'
|
@@ -156,8 +158,10 @@ require 'aspose_slides_cloud/models/line_format'
|
|
156
158
|
require 'aspose_slides_cloud/models/line_to_path_segment'
|
157
159
|
require 'aspose_slides_cloud/models/literals'
|
158
160
|
require 'aspose_slides_cloud/models/luminance_effect'
|
161
|
+
require 'aspose_slides_cloud/models/markdown_export_options'
|
159
162
|
require 'aspose_slides_cloud/models/master_slide'
|
160
163
|
require 'aspose_slides_cloud/models/master_slides'
|
164
|
+
require 'aspose_slides_cloud/models/math_format'
|
161
165
|
require 'aspose_slides_cloud/models/math_paragraph'
|
162
166
|
require 'aspose_slides_cloud/models/matrix_element'
|
163
167
|
require 'aspose_slides_cloud/models/merge'
|
@@ -166,6 +170,7 @@ require 'aspose_slides_cloud/models/move_to_path_segment'
|
|
166
170
|
require 'aspose_slides_cloud/models/nary_operator_element'
|
167
171
|
require 'aspose_slides_cloud/models/no_fill'
|
168
172
|
require 'aspose_slides_cloud/models/normal_view_restored_properties'
|
173
|
+
require 'aspose_slides_cloud/models/notes_comments_layouting_options'
|
169
174
|
require 'aspose_slides_cloud/models/notes_slide'
|
170
175
|
require 'aspose_slides_cloud/models/notes_slide_export_format'
|
171
176
|
require 'aspose_slides_cloud/models/notes_slide_header_footer'
|