aspose_slides_cloud 24.6.0 → 24.7.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -5
- data/README.md +12 -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 +3 -0
- 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/pdf_export_options.rb +13 -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
@@ -74,10 +74,6 @@ module AsposeSlidesCloud
|
|
74
74
|
# @return Array for valid properties with the reasons
|
75
75
|
def list_invalid_properties
|
76
76
|
invalid_properties = super
|
77
|
-
if @built_in.nil?
|
78
|
-
invalid_properties.push('invalid value for "built_in", built_in cannot be nil.')
|
79
|
-
end
|
80
|
-
|
81
77
|
invalid_properties
|
82
78
|
end
|
83
79
|
|
@@ -85,7 +81,6 @@ module AsposeSlidesCloud
|
|
85
81
|
# @return true if the model is valid
|
86
82
|
def valid?
|
87
83
|
return false if !super
|
88
|
-
return false if @built_in.nil?
|
89
84
|
true
|
90
85
|
end
|
91
86
|
|
@@ -28,6 +28,9 @@ module AsposeSlidesCloud
|
|
28
28
|
# Default regular font for rendering the presentation.
|
29
29
|
attr_accessor :default_regular_font
|
30
30
|
|
31
|
+
# Default regular font for rendering the presentation.
|
32
|
+
attr_accessor :gradient_style
|
33
|
+
|
31
34
|
# Gets of sets list of font fallback rules.
|
32
35
|
attr_accessor :font_fallback_rules
|
33
36
|
|
@@ -40,6 +43,7 @@ module AsposeSlidesCloud
|
|
40
43
|
def self.attribute_map
|
41
44
|
{
|
42
45
|
:'default_regular_font' => :'DefaultRegularFont',
|
46
|
+
:'gradient_style' => :'GradientStyle',
|
43
47
|
:'font_fallback_rules' => :'FontFallbackRules',
|
44
48
|
:'font_subst_rules' => :'FontSubstRules',
|
45
49
|
:'format' => :'Format',
|
@@ -50,6 +54,7 @@ module AsposeSlidesCloud
|
|
50
54
|
def self.swagger_types
|
51
55
|
{
|
52
56
|
:'default_regular_font' => :'String',
|
57
|
+
:'gradient_style' => :'String',
|
53
58
|
:'font_fallback_rules' => :'Array<FontFallbackRule>',
|
54
59
|
:'font_subst_rules' => :'Array<FontSubstRule>',
|
55
60
|
:'format' => :'String',
|
@@ -68,6 +73,10 @@ module AsposeSlidesCloud
|
|
68
73
|
self.default_regular_font = attributes[:'DefaultRegularFont']
|
69
74
|
end
|
70
75
|
|
76
|
+
if attributes.has_key?(:'GradientStyle')
|
77
|
+
self.gradient_style = attributes[:'GradientStyle']
|
78
|
+
end
|
79
|
+
|
71
80
|
if attributes.has_key?(:'FontFallbackRules')
|
72
81
|
if (value = attributes[:'FontFallbackRules']).is_a?(Array)
|
73
82
|
self.font_fallback_rules = value
|
@@ -95,15 +104,28 @@ module AsposeSlidesCloud
|
|
95
104
|
# Check to see if the all the properties in the model are valid
|
96
105
|
# @return true if the model is valid
|
97
106
|
def valid?
|
107
|
+
gradient_style_validator = EnumAttributeValidator.new('String', ['Default', 'PowerPointUI'])
|
108
|
+
return false unless gradient_style_validator.valid?(@gradient_style)
|
98
109
|
true
|
99
110
|
end
|
100
111
|
|
112
|
+
# Custom attribute writer method checking allowed values (enum).
|
113
|
+
# @param [Object] gradient_style Object to be assigned
|
114
|
+
def gradient_style=(gradient_style)
|
115
|
+
validator = EnumAttributeValidator.new('String', ['Default', 'PowerPointUI'])
|
116
|
+
unless validator.valid?(gradient_style)
|
117
|
+
fail ArgumentError, 'invalid value for "gradient_style", must be one of #{validator.allowable_values}.'
|
118
|
+
end
|
119
|
+
@gradient_style = gradient_style
|
120
|
+
end
|
121
|
+
|
101
122
|
# Checks equality by comparing each attribute.
|
102
123
|
# @param [Object] Object to be compared
|
103
124
|
def ==(o)
|
104
125
|
return true if self.equal?(o)
|
105
126
|
self.class == o.class &&
|
106
127
|
default_regular_font == o.default_regular_font &&
|
128
|
+
gradient_style == o.gradient_style &&
|
107
129
|
font_fallback_rules == o.font_fallback_rules &&
|
108
130
|
font_subst_rules == o.font_subst_rules &&
|
109
131
|
format == o.format
|
@@ -118,7 +140,7 @@ module AsposeSlidesCloud
|
|
118
140
|
# Calculates hash code according to all attributes.
|
119
141
|
# @return [Fixnum] Hash code
|
120
142
|
def hash
|
121
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format].hash
|
143
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format].hash
|
122
144
|
end
|
123
145
|
end
|
124
146
|
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 &&
|
@@ -110,7 +111,7 @@ module AsposeSlidesCloud
|
|
110
111
|
# Calculates hash code according to all attributes.
|
111
112
|
# @return [Fixnum] Hash code
|
112
113
|
def hash
|
113
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
|
114
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
|
114
115
|
end
|
115
116
|
end
|
116
117
|
end
|
@@ -104,26 +104,6 @@ module AsposeSlidesCloud
|
|
104
104
|
# @return Array for valid properties with the reasons
|
105
105
|
def list_invalid_properties
|
106
106
|
invalid_properties = super
|
107
|
-
if @direction.nil?
|
108
|
-
invalid_properties.push('invalid value for "direction", direction cannot be nil.')
|
109
|
-
end
|
110
|
-
|
111
|
-
if @shape.nil?
|
112
|
-
invalid_properties.push('invalid value for "shape", shape cannot be nil.')
|
113
|
-
end
|
114
|
-
|
115
|
-
if @linear_angle.nil?
|
116
|
-
invalid_properties.push('invalid value for "linear_angle", linear_angle cannot be nil.')
|
117
|
-
end
|
118
|
-
|
119
|
-
if @is_scaled.nil?
|
120
|
-
invalid_properties.push('invalid value for "is_scaled", is_scaled cannot be nil.')
|
121
|
-
end
|
122
|
-
|
123
|
-
if @tile_flip.nil?
|
124
|
-
invalid_properties.push('invalid value for "tile_flip", tile_flip cannot be nil.')
|
125
|
-
end
|
126
|
-
|
127
107
|
invalid_properties
|
128
108
|
end
|
129
109
|
|
@@ -131,15 +111,10 @@ module AsposeSlidesCloud
|
|
131
111
|
# @return true if the model is valid
|
132
112
|
def valid?
|
133
113
|
return false if !super
|
134
|
-
return false if @direction.nil?
|
135
114
|
direction_validator = EnumAttributeValidator.new('String', ['FromCorner1', 'FromCorner2', 'FromCorner3', 'FromCorner4', 'FromCenter', 'NotDefined'])
|
136
115
|
return false unless direction_validator.valid?(@direction)
|
137
|
-
return false if @shape.nil?
|
138
116
|
shape_validator = EnumAttributeValidator.new('String', ['Linear', 'Rectangle', 'Radial', 'Path', 'NotDefined'])
|
139
117
|
return false unless shape_validator.valid?(@shape)
|
140
|
-
return false if @linear_angle.nil?
|
141
|
-
return false if @is_scaled.nil?
|
142
|
-
return false if @tile_flip.nil?
|
143
118
|
tile_flip_validator = EnumAttributeValidator.new('String', ['NoFlip', 'FlipX', 'FlipY', 'FlipBoth', 'NotDefined'])
|
144
119
|
return false unless tile_flip_validator.valid?(@tile_flip)
|
145
120
|
true
|
@@ -37,6 +37,9 @@ module AsposeSlidesCloud
|
|
37
37
|
# Slides layouting options
|
38
38
|
attr_accessor :notes_comments_layouting
|
39
39
|
|
40
|
+
# Path to custom templates
|
41
|
+
attr_accessor :templates_path
|
42
|
+
|
40
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
44
|
def self.attribute_map
|
42
45
|
super.merge({
|
@@ -44,6 +47,7 @@ module AsposeSlidesCloud
|
|
44
47
|
:'animate_shapes' => :'AnimateShapes',
|
45
48
|
:'embed_images' => :'EmbedImages',
|
46
49
|
:'notes_comments_layouting' => :'NotesCommentsLayouting',
|
50
|
+
:'templates_path' => :'TemplatesPath',
|
47
51
|
})
|
48
52
|
end
|
49
53
|
|
@@ -54,6 +58,7 @@ module AsposeSlidesCloud
|
|
54
58
|
:'animate_shapes' => :'BOOLEAN',
|
55
59
|
:'embed_images' => :'BOOLEAN',
|
56
60
|
:'notes_comments_layouting' => :'NotesCommentsLayoutingOptions',
|
61
|
+
:'templates_path' => :'String',
|
57
62
|
})
|
58
63
|
end
|
59
64
|
|
@@ -77,6 +82,10 @@ module AsposeSlidesCloud
|
|
77
82
|
if attributes.has_key?(:'NotesCommentsLayouting')
|
78
83
|
self.notes_comments_layouting = attributes[:'NotesCommentsLayouting']
|
79
84
|
end
|
85
|
+
|
86
|
+
if attributes.has_key?(:'TemplatesPath')
|
87
|
+
self.templates_path = attributes[:'TemplatesPath']
|
88
|
+
end
|
80
89
|
self.format = 'html5'
|
81
90
|
end
|
82
91
|
|
@@ -100,13 +109,15 @@ module AsposeSlidesCloud
|
|
100
109
|
return true if self.equal?(o)
|
101
110
|
self.class == o.class &&
|
102
111
|
default_regular_font == o.default_regular_font &&
|
112
|
+
gradient_style == o.gradient_style &&
|
103
113
|
font_fallback_rules == o.font_fallback_rules &&
|
104
114
|
font_subst_rules == o.font_subst_rules &&
|
105
115
|
format == o.format &&
|
106
116
|
animate_transitions == o.animate_transitions &&
|
107
117
|
animate_shapes == o.animate_shapes &&
|
108
118
|
embed_images == o.embed_images &&
|
109
|
-
notes_comments_layouting == o.notes_comments_layouting
|
119
|
+
notes_comments_layouting == o.notes_comments_layouting &&
|
120
|
+
templates_path == o.templates_path
|
110
121
|
end
|
111
122
|
|
112
123
|
# @see the `==` method
|
@@ -118,7 +129,7 @@ module AsposeSlidesCloud
|
|
118
129
|
# Calculates hash code according to all attributes.
|
119
130
|
# @return [Fixnum] Hash code
|
120
131
|
def hash
|
121
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes, embed_images, notes_comments_layouting].hash
|
132
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes, embed_images, notes_comments_layouting, templates_path].hash
|
122
133
|
end
|
123
134
|
end
|
124
135
|
end
|
@@ -148,6 +148,7 @@ module AsposeSlidesCloud
|
|
148
148
|
return true if self.equal?(o)
|
149
149
|
self.class == o.class &&
|
150
150
|
default_regular_font == o.default_regular_font &&
|
151
|
+
gradient_style == o.gradient_style &&
|
151
152
|
font_fallback_rules == o.font_fallback_rules &&
|
152
153
|
font_subst_rules == o.font_subst_rules &&
|
153
154
|
format == o.format &&
|
@@ -170,7 +171,7 @@ module AsposeSlidesCloud
|
|
170
171
|
# Calculates hash code according to all attributes.
|
171
172
|
# @return [Fixnum] Hash code
|
172
173
|
def hash
|
173
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, slides_layout_options].hash
|
174
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, slides_layout_options].hash
|
174
175
|
end
|
175
176
|
end
|
176
177
|
end
|
@@ -82,6 +82,7 @@ module AsposeSlidesCloud
|
|
82
82
|
return true if self.equal?(o)
|
83
83
|
self.class == o.class &&
|
84
84
|
default_regular_font == o.default_regular_font &&
|
85
|
+
gradient_style == o.gradient_style &&
|
85
86
|
font_fallback_rules == o.font_fallback_rules &&
|
86
87
|
font_subst_rules == o.font_subst_rules &&
|
87
88
|
format == o.format &&
|
@@ -100,7 +101,7 @@ module AsposeSlidesCloud
|
|
100
101
|
# Calculates hash code according to all attributes.
|
101
102
|
# @return [Fixnum] Hash code
|
102
103
|
def hash
|
103
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, show_hidden_slides, slides_layout_options].hash
|
104
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, show_hidden_slides, slides_layout_options].hash
|
104
105
|
end
|
105
106
|
end
|
106
107
|
end
|
@@ -81,6 +81,7 @@ module AsposeSlidesCloud
|
|
81
81
|
return true if self.equal?(o)
|
82
82
|
self.class == o.class &&
|
83
83
|
default_regular_font == o.default_regular_font &&
|
84
|
+
gradient_style == o.gradient_style &&
|
84
85
|
font_fallback_rules == o.font_fallback_rules &&
|
85
86
|
font_subst_rules == o.font_subst_rules &&
|
86
87
|
format == o.format &&
|
@@ -97,7 +98,7 @@ module AsposeSlidesCloud
|
|
97
98
|
# Calculates hash code according to all attributes.
|
98
99
|
# @return [Fixnum] Hash code
|
99
100
|
def hash
|
100
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width].hash
|
101
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, height, width].hash
|
101
102
|
end
|
102
103
|
end
|
103
104
|
end
|
@@ -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 &&
|
@@ -184,7 +185,7 @@ module AsposeSlidesCloud
|
|
184
185
|
# Calculates hash code according to all attributes.
|
185
186
|
# @return [Fixnum] Hash code
|
186
187
|
def hash
|
187
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, export_type, flavor, new_line_type, images_save_folder_name, show_slide_number, show_comments, show_hidden_slides].hash
|
188
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, export_type, flavor, new_line_type, images_save_folder_name, show_slide_number, show_comments, show_hidden_slides].hash
|
188
189
|
end
|
189
190
|
end
|
190
191
|
end
|
@@ -76,6 +76,9 @@ module AsposeSlidesCloud
|
|
76
76
|
# True to use ROP operation or Opacity for rendering brush.
|
77
77
|
attr_accessor :interpret_mask_op_as_opacity
|
78
78
|
|
79
|
+
# True if text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts.
|
80
|
+
attr_accessor :rasterize_unsupported_font_styles
|
81
|
+
|
79
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
83
|
def self.attribute_map
|
81
84
|
super.merge({
|
@@ -96,6 +99,7 @@ module AsposeSlidesCloud
|
|
96
99
|
:'access_permissions' => :'AccessPermissions',
|
97
100
|
:'hide_ink' => :'HideInk',
|
98
101
|
:'interpret_mask_op_as_opacity' => :'InterpretMaskOpAsOpacity',
|
102
|
+
:'rasterize_unsupported_font_styles' => :'RasterizeUnsupportedFontStyles',
|
99
103
|
})
|
100
104
|
end
|
101
105
|
|
@@ -119,6 +123,7 @@ module AsposeSlidesCloud
|
|
119
123
|
:'access_permissions' => :'AccessPermissions',
|
120
124
|
:'hide_ink' => :'BOOLEAN',
|
121
125
|
:'interpret_mask_op_as_opacity' => :'BOOLEAN',
|
126
|
+
:'rasterize_unsupported_font_styles' => :'BOOLEAN',
|
122
127
|
})
|
123
128
|
end
|
124
129
|
|
@@ -196,6 +201,10 @@ module AsposeSlidesCloud
|
|
196
201
|
if attributes.has_key?(:'InterpretMaskOpAsOpacity')
|
197
202
|
self.interpret_mask_op_as_opacity = attributes[:'InterpretMaskOpAsOpacity']
|
198
203
|
end
|
204
|
+
|
205
|
+
if attributes.has_key?(:'RasterizeUnsupportedFontStyles')
|
206
|
+
self.rasterize_unsupported_font_styles = attributes[:'RasterizeUnsupportedFontStyles']
|
207
|
+
end
|
199
208
|
self.format = 'pdf'
|
200
209
|
end
|
201
210
|
|
@@ -243,6 +252,7 @@ module AsposeSlidesCloud
|
|
243
252
|
return true if self.equal?(o)
|
244
253
|
self.class == o.class &&
|
245
254
|
default_regular_font == o.default_regular_font &&
|
255
|
+
gradient_style == o.gradient_style &&
|
246
256
|
font_fallback_rules == o.font_fallback_rules &&
|
247
257
|
font_subst_rules == o.font_subst_rules &&
|
248
258
|
format == o.format &&
|
@@ -262,7 +272,8 @@ module AsposeSlidesCloud
|
|
262
272
|
apply_image_transparent == o.apply_image_transparent &&
|
263
273
|
access_permissions == o.access_permissions &&
|
264
274
|
hide_ink == o.hide_ink &&
|
265
|
-
interpret_mask_op_as_opacity == o.interpret_mask_op_as_opacity
|
275
|
+
interpret_mask_op_as_opacity == o.interpret_mask_op_as_opacity &&
|
276
|
+
rasterize_unsupported_font_styles == o.rasterize_unsupported_font_styles
|
266
277
|
end
|
267
278
|
|
268
279
|
# @see the `==` method
|
@@ -274,7 +285,7 @@ module AsposeSlidesCloud
|
|
274
285
|
# Calculates hash code according to all attributes.
|
275
286
|
# @return [Fixnum] Hash code
|
276
287
|
def hash
|
277
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, slides_layout_options, image_transparent_color, apply_image_transparent, access_permissions, hide_ink, interpret_mask_op_as_opacity].hash
|
288
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, slides_layout_options, image_transparent_color, apply_image_transparent, access_permissions, hide_ink, interpret_mask_op_as_opacity, rasterize_unsupported_font_styles].hash
|
278
289
|
end
|
279
290
|
end
|
280
291
|
end
|
@@ -25,13 +25,17 @@ require 'date'
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Provides options that control how a presentation is saved in PPTX format.
|
27
27
|
class PptxExportOptions < ExportOptions
|
28
|
-
# The conformance class to which the PresentationML document conforms.
|
28
|
+
# The conformance class to which the PresentationML document conforms.
|
29
29
|
attr_accessor :conformance
|
30
30
|
|
31
|
+
# Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.
|
32
|
+
attr_accessor :zip64_mode
|
33
|
+
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
35
|
def self.attribute_map
|
33
36
|
super.merge({
|
34
37
|
:'conformance' => :'Conformance',
|
38
|
+
:'zip64_mode' => :'Zip64Mode',
|
35
39
|
})
|
36
40
|
end
|
37
41
|
|
@@ -39,6 +43,7 @@ module AsposeSlidesCloud
|
|
39
43
|
def self.swagger_types
|
40
44
|
super.merge({
|
41
45
|
:'conformance' => :'String',
|
46
|
+
:'zip64_mode' => :'String',
|
42
47
|
})
|
43
48
|
end
|
44
49
|
|
@@ -50,6 +55,10 @@ module AsposeSlidesCloud
|
|
50
55
|
if attributes.has_key?(:'Conformance')
|
51
56
|
self.conformance = attributes[:'Conformance']
|
52
57
|
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'Zip64Mode')
|
60
|
+
self.zip64_mode = attributes[:'Zip64Mode']
|
61
|
+
end
|
53
62
|
self.format = 'pptx'
|
54
63
|
end
|
55
64
|
|
@@ -66,6 +75,8 @@ module AsposeSlidesCloud
|
|
66
75
|
return false if !super
|
67
76
|
conformance_validator = EnumAttributeValidator.new('String', ['Ecma376', 'Iso29500Transitional', 'Iso29500Strict'])
|
68
77
|
return false unless conformance_validator.valid?(@conformance)
|
78
|
+
zip64_mode_validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always'])
|
79
|
+
return false unless zip64_mode_validator.valid?(@zip64_mode)
|
69
80
|
true
|
70
81
|
end
|
71
82
|
|
@@ -79,16 +90,28 @@ module AsposeSlidesCloud
|
|
79
90
|
@conformance = conformance
|
80
91
|
end
|
81
92
|
|
93
|
+
# Custom attribute writer method checking allowed values (enum).
|
94
|
+
# @param [Object] zip64_mode Object to be assigned
|
95
|
+
def zip64_mode=(zip64_mode)
|
96
|
+
validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always'])
|
97
|
+
unless validator.valid?(zip64_mode)
|
98
|
+
fail ArgumentError, 'invalid value for "zip64_mode", must be one of #{validator.allowable_values}.'
|
99
|
+
end
|
100
|
+
@zip64_mode = zip64_mode
|
101
|
+
end
|
102
|
+
|
82
103
|
# Checks equality by comparing each attribute.
|
83
104
|
# @param [Object] Object to be compared
|
84
105
|
def ==(o)
|
85
106
|
return true if self.equal?(o)
|
86
107
|
self.class == o.class &&
|
87
108
|
default_regular_font == o.default_regular_font &&
|
109
|
+
gradient_style == o.gradient_style &&
|
88
110
|
font_fallback_rules == o.font_fallback_rules &&
|
89
111
|
font_subst_rules == o.font_subst_rules &&
|
90
112
|
format == o.format &&
|
91
|
-
conformance == o.conformance
|
113
|
+
conformance == o.conformance &&
|
114
|
+
zip64_mode == o.zip64_mode
|
92
115
|
end
|
93
116
|
|
94
117
|
# @see the `==` method
|
@@ -100,7 +123,7 @@ module AsposeSlidesCloud
|
|
100
123
|
# Calculates hash code according to all attributes.
|
101
124
|
# @return [Fixnum] Hash code
|
102
125
|
def hash
|
103
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, conformance].hash
|
126
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, conformance, zip64_mode].hash
|
104
127
|
end
|
105
128
|
end
|
106
129
|
end
|
@@ -101,14 +101,6 @@ module AsposeSlidesCloud
|
|
101
101
|
# @return Array for valid properties with the reasons
|
102
102
|
def list_invalid_properties
|
103
103
|
invalid_properties = super
|
104
|
-
if @is_write_protected.nil?
|
105
|
-
invalid_properties.push('invalid value for "is_write_protected", is_write_protected cannot be nil.')
|
106
|
-
end
|
107
|
-
|
108
|
-
if @is_encrypted.nil?
|
109
|
-
invalid_properties.push('invalid value for "is_encrypted", is_encrypted cannot be nil.')
|
110
|
-
end
|
111
|
-
|
112
104
|
invalid_properties
|
113
105
|
end
|
114
106
|
|
@@ -116,8 +108,6 @@ module AsposeSlidesCloud
|
|
116
108
|
# @return true if the model is valid
|
117
109
|
def valid?
|
118
110
|
return false if !super
|
119
|
-
return false if @is_write_protected.nil?
|
120
|
-
return false if @is_encrypted.nil?
|
121
111
|
true
|
122
112
|
end
|
123
113
|
|
@@ -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
|