aspose_slides_cloud 22.7.0 → 22.9.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 +7 -7
- data/README.md +17 -1
- data/TestData/calibri.ttf +0 -0
- data/TestData/shapes.svg +20 -0
- data/TestData/test.pptx +0 -0
- data/docker-entrypoint.sh +3 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +953 -51
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +5 -1
- data/lib/aspose_slides_cloud/models/data_point.rb +42 -2
- data/lib/aspose_slides_cloud/models/export_options.rb +13 -1
- data/lib/aspose_slides_cloud/models/font_data.rb +221 -0
- data/lib/aspose_slides_cloud/models/font_subst_rule.rb +231 -0
- data/lib/aspose_slides_cloud/models/fonts_data.rb +213 -0
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -1
- 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/one_value_chart_data_point.rb +5 -1
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +5 -1
- 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/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/type_registry.rb +3 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +3 -0
- data/spec/api/slides_api_spec.rb +2414 -4
- data/spec/spec_utils.rb +5 -1
- data/spec/use_cases/chart_spec.rb +209 -0
- data/spec/use_cases/comment_spec.rb +159 -0
- data/spec/use_cases/convert_spec.rb +39 -0
- data/spec/use_cases/font_spec.rb +143 -0
- data/spec/use_cases/layout_slide_spec.rb +18 -0
- data/spec/use_cases/master_slide_spec.rb +16 -0
- data/spec/use_cases/merge_spec.rb +21 -0
- data/spec/use_cases/notes_slide_spec.rb +34 -0
- data/spec/use_cases/paragraph_spec.rb +322 -0
- data/spec/use_cases/portion_spec.rb +316 -0
- data/spec/use_cases/property_spec.rb +37 -1
- data/spec/use_cases/shape_spec.rb +193 -0
- data/spec/use_cases/slide_spec.rb +197 -0
- data/spec/use_cases/text_format_spec.rb +74 -0
- data/spec/use_cases/text_spec.rb +39 -0
- data/testRules.json +32 -1
- metadata +19 -2
@@ -0,0 +1,213 @@
|
|
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
|
+
# List of fonts data
|
27
|
+
class FontsData
|
28
|
+
# Fonts data list.
|
29
|
+
attr_accessor :list
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'list' => :'List',
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
{
|
41
|
+
:'list' => :'Array<FontData>',
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return unless attributes.is_a?(Hash)
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
|
+
|
53
|
+
if attributes.has_key?(:'List')
|
54
|
+
if (value = attributes[:'List']).is_a?(Array)
|
55
|
+
self.list = value
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
61
|
+
# @return Array for valid properties with the reasons
|
62
|
+
def list_invalid_properties
|
63
|
+
invalid_properties = Array.new
|
64
|
+
invalid_properties
|
65
|
+
end
|
66
|
+
|
67
|
+
# Check to see if the all the properties in the model are valid
|
68
|
+
# @return true if the model is valid
|
69
|
+
def valid?
|
70
|
+
true
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks equality by comparing each attribute.
|
74
|
+
# @param [Object] Object to be compared
|
75
|
+
def ==(o)
|
76
|
+
return true if self.equal?(o)
|
77
|
+
self.class == o.class &&
|
78
|
+
list == o.list
|
79
|
+
end
|
80
|
+
|
81
|
+
# @see the `==` method
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def eql?(o)
|
84
|
+
self == o
|
85
|
+
end
|
86
|
+
|
87
|
+
# Calculates hash code according to all attributes.
|
88
|
+
# @return [Fixnum] Hash code
|
89
|
+
def hash
|
90
|
+
[list].hash
|
91
|
+
end
|
92
|
+
|
93
|
+
# Builds the object from hash
|
94
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
95
|
+
# @return [Object] Returns the model itself
|
96
|
+
def build_from_hash(attributes)
|
97
|
+
return nil unless attributes.is_a?(Hash)
|
98
|
+
self.class.swagger_types.each_pair do |key, type|
|
99
|
+
mapKey = self.class.attribute_map[key]
|
100
|
+
if !mapKey.nil?
|
101
|
+
val = attributes[mapKey]
|
102
|
+
if val.nil?
|
103
|
+
mapKeyString = mapKey.to_s
|
104
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
105
|
+
mapKey = mapKeyString.to_sym
|
106
|
+
val = attributes[mapKey]
|
107
|
+
end
|
108
|
+
if !val.nil?
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
111
|
+
# is documented as an array but the input is not
|
112
|
+
if val.is_a?(Array)
|
113
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
114
|
+
end
|
115
|
+
else
|
116
|
+
self.send("#{key}=", _deserialize(type, val))
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
self
|
123
|
+
end
|
124
|
+
|
125
|
+
# Deserializes the data based on type
|
126
|
+
# @param string type Data type
|
127
|
+
# @param string value Value to be deserialized
|
128
|
+
# @return [Object] Deserialized data
|
129
|
+
def _deserialize(type, value)
|
130
|
+
case type.to_sym
|
131
|
+
when :DateTime
|
132
|
+
DateTime.parse(value)
|
133
|
+
when :Date
|
134
|
+
Date.parse(value)
|
135
|
+
when :String
|
136
|
+
value.to_s
|
137
|
+
when :Integer
|
138
|
+
value.to_i
|
139
|
+
when :Float
|
140
|
+
value.to_f
|
141
|
+
when :BOOLEAN
|
142
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
143
|
+
true
|
144
|
+
else
|
145
|
+
false
|
146
|
+
end
|
147
|
+
when :Object
|
148
|
+
# generic object (usually a Hash), return directly
|
149
|
+
value
|
150
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
151
|
+
inner_type = Regexp.last_match[:inner_type]
|
152
|
+
value.map { |v| _deserialize(inner_type, v) }
|
153
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
154
|
+
k_type = Regexp.last_match[:k_type]
|
155
|
+
v_type = Regexp.last_match[:v_type]
|
156
|
+
{}.tap do |hash|
|
157
|
+
value.each do |k, v|
|
158
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
else # model
|
162
|
+
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
163
|
+
if registry_type
|
164
|
+
type = registry_type
|
165
|
+
end
|
166
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
167
|
+
temp_model.build_from_hash(value)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the string representation of the object
|
172
|
+
# @return [String] String presentation of the object
|
173
|
+
def to_s
|
174
|
+
to_hash.to_s
|
175
|
+
end
|
176
|
+
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_body
|
180
|
+
to_hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the object in the form of hash
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
next if value.nil?
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Outputs non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
# @param [Object] value Any valid value
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
199
|
+
def _to_hash(value)
|
200
|
+
if value.is_a?(Array)
|
201
|
+
value.compact.map { |v| _to_hash(v) }
|
202
|
+
elsif value.is_a?(Hash)
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
+
end
|
206
|
+
elsif value.respond_to? :to_hash
|
207
|
+
value.to_hash
|
208
|
+
else
|
209
|
+
value
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
@@ -92,6 +92,7 @@ module AsposeSlidesCloud
|
|
92
92
|
self.class == o.class &&
|
93
93
|
default_regular_font == o.default_regular_font &&
|
94
94
|
font_fallback_rules == o.font_fallback_rules &&
|
95
|
+
font_subst_rules == o.font_subst_rules &&
|
95
96
|
format == o.format &&
|
96
97
|
height == o.height &&
|
97
98
|
width == o.width &&
|
@@ -109,7 +110,7 @@ module AsposeSlidesCloud
|
|
109
110
|
# Calculates hash code according to all attributes.
|
110
111
|
# @return [Fixnum] Hash code
|
111
112
|
def hash
|
112
|
-
[default_regular_font, font_fallback_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
|
113
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
|
113
114
|
end
|
114
115
|
|
115
116
|
# Builds the object from hash
|
@@ -83,6 +83,7 @@ module AsposeSlidesCloud
|
|
83
83
|
self.class == o.class &&
|
84
84
|
default_regular_font == o.default_regular_font &&
|
85
85
|
font_fallback_rules == o.font_fallback_rules &&
|
86
|
+
font_subst_rules == o.font_subst_rules &&
|
86
87
|
format == o.format &&
|
87
88
|
animate_transitions == o.animate_transitions &&
|
88
89
|
animate_shapes == o.animate_shapes
|
@@ -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, format, animate_transitions, animate_shapes].hash
|
101
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes].hash
|
101
102
|
end
|
102
103
|
|
103
104
|
# Builds the object from hash
|
@@ -231,6 +231,7 @@ module AsposeSlidesCloud
|
|
231
231
|
self.class == o.class &&
|
232
232
|
default_regular_font == o.default_regular_font &&
|
233
233
|
font_fallback_rules == o.font_fallback_rules &&
|
234
|
+
font_subst_rules == o.font_subst_rules &&
|
234
235
|
format == o.format &&
|
235
236
|
save_as_zip == o.save_as_zip &&
|
236
237
|
sub_directory_name == o.sub_directory_name &&
|
@@ -255,7 +256,7 @@ module AsposeSlidesCloud
|
|
255
256
|
# Calculates hash code according to all attributes.
|
256
257
|
# @return [Fixnum] Hash code
|
257
258
|
def hash
|
258
|
-
[default_regular_font, font_fallback_rules, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
259
|
+
[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, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
259
260
|
end
|
260
261
|
|
261
262
|
# Builds the object from hash
|
@@ -147,6 +147,7 @@ module AsposeSlidesCloud
|
|
147
147
|
self.class == o.class &&
|
148
148
|
default_regular_font == o.default_regular_font &&
|
149
149
|
font_fallback_rules == o.font_fallback_rules &&
|
150
|
+
font_subst_rules == o.font_subst_rules &&
|
150
151
|
format == o.format &&
|
151
152
|
height == o.height &&
|
152
153
|
width == o.width &&
|
@@ -165,7 +166,7 @@ module AsposeSlidesCloud
|
|
165
166
|
# Calculates hash code according to all attributes.
|
166
167
|
# @return [Fixnum] Hash code
|
167
168
|
def hash
|
168
|
-
[default_regular_font, font_fallback_rules, format, height, width, notes_position, comments_position, comments_area_width, comments_area_color].hash
|
169
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, notes_position, comments_position, comments_area_width, comments_area_color].hash
|
169
170
|
end
|
170
171
|
|
171
172
|
# Builds the object from hash
|
@@ -82,6 +82,7 @@ module AsposeSlidesCloud
|
|
82
82
|
self.class == o.class &&
|
83
83
|
default_regular_font == o.default_regular_font &&
|
84
84
|
font_fallback_rules == o.font_fallback_rules &&
|
85
|
+
font_subst_rules == o.font_subst_rules &&
|
85
86
|
format == o.format &&
|
86
87
|
height == o.height &&
|
87
88
|
width == o.width
|
@@ -96,7 +97,7 @@ module AsposeSlidesCloud
|
|
96
97
|
# Calculates hash code according to all attributes.
|
97
98
|
# @return [Fixnum] Hash code
|
98
99
|
def hash
|
99
|
-
[default_regular_font, font_fallback_rules, format, height, width].hash
|
100
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width].hash
|
100
101
|
end
|
101
102
|
|
102
103
|
# Builds the object from hash
|
@@ -94,6 +94,10 @@ module AsposeSlidesCloud
|
|
94
94
|
def ==(o)
|
95
95
|
return true if self.equal?(o)
|
96
96
|
self.class == o.class &&
|
97
|
+
fill_format == o.fill_format &&
|
98
|
+
effect_format == o.effect_format &&
|
99
|
+
three_d_format == o.three_d_format &&
|
100
|
+
line_format == o.line_format &&
|
97
101
|
value == o.value &&
|
98
102
|
set_as_total == o.set_as_total &&
|
99
103
|
invert_if_negative == o.invert_if_negative
|
@@ -108,7 +112,7 @@ module AsposeSlidesCloud
|
|
108
112
|
# Calculates hash code according to all attributes.
|
109
113
|
# @return [Fixnum] Hash code
|
110
114
|
def hash
|
111
|
-
[value, set_as_total, invert_if_negative].hash
|
115
|
+
[fill_format, effect_format, three_d_format, line_format, value, set_as_total, invert_if_negative].hash
|
112
116
|
end
|
113
117
|
|
114
118
|
# Builds the object from hash
|
@@ -308,6 +308,7 @@ module AsposeSlidesCloud
|
|
308
308
|
self.class == o.class &&
|
309
309
|
default_regular_font == o.default_regular_font &&
|
310
310
|
font_fallback_rules == o.font_fallback_rules &&
|
311
|
+
font_subst_rules == o.font_subst_rules &&
|
311
312
|
format == o.format &&
|
312
313
|
text_compression == o.text_compression &&
|
313
314
|
embed_full_fonts == o.embed_full_fonts &&
|
@@ -339,7 +340,7 @@ module AsposeSlidesCloud
|
|
339
340
|
# Calculates hash code according to all attributes.
|
340
341
|
# @return [Fixnum] Hash code
|
341
342
|
def hash
|
342
|
-
[default_regular_font, font_fallback_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, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author, image_transparent_color, apply_image_transparent, access_permissions].hash
|
343
|
+
[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, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author, image_transparent_color, apply_image_transparent, access_permissions].hash
|
343
344
|
end
|
344
345
|
|
345
346
|
# Builds the object from hash
|
@@ -108,6 +108,7 @@ module AsposeSlidesCloud
|
|
108
108
|
self.class == o.class &&
|
109
109
|
default_regular_font == o.default_regular_font &&
|
110
110
|
font_fallback_rules == o.font_fallback_rules &&
|
111
|
+
font_subst_rules == o.font_subst_rules &&
|
111
112
|
format == o.format &&
|
112
113
|
conformance == o.conformance
|
113
114
|
end
|
@@ -121,7 +122,7 @@ module AsposeSlidesCloud
|
|
121
122
|
# Calculates hash code according to all attributes.
|
122
123
|
# @return [Fixnum] Hash code
|
123
124
|
def hash
|
124
|
-
[default_regular_font, font_fallback_rules, format, conformance].hash
|
125
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, conformance].hash
|
125
126
|
end
|
126
127
|
|
127
128
|
# Builds the object from hash
|
@@ -90,6 +90,10 @@ module AsposeSlidesCloud
|
|
90
90
|
def ==(o)
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
|
+
fill_format == o.fill_format &&
|
94
|
+
effect_format == o.effect_format &&
|
95
|
+
three_d_format == o.three_d_format &&
|
96
|
+
line_format == o.line_format &&
|
93
97
|
x_value == o.x_value &&
|
94
98
|
y_value == o.y_value
|
95
99
|
end
|
@@ -103,7 +107,7 @@ module AsposeSlidesCloud
|
|
103
107
|
# Calculates hash code according to all attributes.
|
104
108
|
# @return [Fixnum] Hash code
|
105
109
|
def hash
|
106
|
-
[x_value, y_value].hash
|
110
|
+
[fill_format, effect_format, three_d_format, line_format, x_value, y_value].hash
|
107
111
|
end
|
108
112
|
|
109
113
|
# Builds the object from hash
|
@@ -192,6 +192,7 @@ module AsposeSlidesCloud
|
|
192
192
|
self.class == o.class &&
|
193
193
|
default_regular_font == o.default_regular_font &&
|
194
194
|
font_fallback_rules == o.font_fallback_rules &&
|
195
|
+
font_subst_rules == o.font_subst_rules &&
|
195
196
|
format == o.format &&
|
196
197
|
vectorize_text == o.vectorize_text &&
|
197
198
|
metafile_rasterization_dpi == o.metafile_rasterization_dpi &&
|
@@ -213,7 +214,7 @@ module AsposeSlidesCloud
|
|
213
214
|
# Calculates hash code according to all attributes.
|
214
215
|
# @return [Fixnum] Hash code
|
215
216
|
def hash
|
216
|
-
[default_regular_font, font_fallback_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].hash
|
217
|
+
[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].hash
|
217
218
|
end
|
218
219
|
|
219
220
|
# Builds the object from hash
|
@@ -291,6 +291,7 @@ module AsposeSlidesCloud
|
|
291
291
|
self.class == o.class &&
|
292
292
|
default_regular_font == o.default_regular_font &&
|
293
293
|
font_fallback_rules == o.font_fallback_rules &&
|
294
|
+
font_subst_rules == o.font_subst_rules &&
|
294
295
|
format == o.format &&
|
295
296
|
show_hidden_slides == o.show_hidden_slides &&
|
296
297
|
compressed == o.compressed &&
|
@@ -323,7 +324,7 @@ module AsposeSlidesCloud
|
|
323
324
|
# Calculates hash code according to all attributes.
|
324
325
|
# @return [Fixnum] Hash code
|
325
326
|
def hash
|
326
|
-
[default_regular_font, font_fallback_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
|
327
|
+
[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
|
327
328
|
end
|
328
329
|
|
329
330
|
# Builds the object from hash
|
@@ -225,6 +225,7 @@ module AsposeSlidesCloud
|
|
225
225
|
self.class == o.class &&
|
226
226
|
default_regular_font == o.default_regular_font &&
|
227
227
|
font_fallback_rules == o.font_fallback_rules &&
|
228
|
+
font_subst_rules == o.font_subst_rules &&
|
228
229
|
format == o.format &&
|
229
230
|
height == o.height &&
|
230
231
|
width == o.width &&
|
@@ -249,7 +250,7 @@ module AsposeSlidesCloud
|
|
249
250
|
# Calculates hash code according to all attributes.
|
250
251
|
# @return [Fixnum] Hash code
|
251
252
|
def hash
|
252
|
-
[default_regular_font, font_fallback_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
253
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
253
254
|
end
|
254
255
|
|
255
256
|
# Builds the object from hash
|
@@ -147,6 +147,7 @@ module AsposeSlidesCloud
|
|
147
147
|
self.class == o.class &&
|
148
148
|
default_regular_font == o.default_regular_font &&
|
149
149
|
font_fallback_rules == o.font_fallback_rules &&
|
150
|
+
font_subst_rules == o.font_subst_rules &&
|
150
151
|
format == o.format &&
|
151
152
|
slides_transition_duration == o.slides_transition_duration &&
|
152
153
|
transition_type == o.transition_type &&
|
@@ -163,7 +164,7 @@ module AsposeSlidesCloud
|
|
163
164
|
# Calculates hash code according to all attributes.
|
164
165
|
# @return [Fixnum] Hash code
|
165
166
|
def hash
|
166
|
-
[default_regular_font, font_fallback_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
|
167
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
|
167
168
|
end
|
168
169
|
|
169
170
|
# Builds the object from hash
|
@@ -74,6 +74,7 @@ module AsposeSlidesCloud
|
|
74
74
|
self.class == o.class &&
|
75
75
|
default_regular_font == o.default_regular_font &&
|
76
76
|
font_fallback_rules == o.font_fallback_rules &&
|
77
|
+
font_subst_rules == o.font_subst_rules &&
|
77
78
|
format == o.format &&
|
78
79
|
export_hidden_slides == o.export_hidden_slides
|
79
80
|
end
|
@@ -87,7 +88,7 @@ module AsposeSlidesCloud
|
|
87
88
|
# Calculates hash code according to all attributes.
|
88
89
|
# @return [Fixnum] Hash code
|
89
90
|
def hash
|
90
|
-
[default_regular_font, font_fallback_rules, format, export_hidden_slides].hash
|
91
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, export_hidden_slides].hash
|
91
92
|
end
|
92
93
|
|
93
94
|
# Builds the object from hash
|
@@ -92,6 +92,7 @@ module AsposeSlidesCloud
|
|
92
92
|
self.class == o.class &&
|
93
93
|
default_regular_font == o.default_regular_font &&
|
94
94
|
font_fallback_rules == o.font_fallback_rules &&
|
95
|
+
font_subst_rules == o.font_subst_rules &&
|
95
96
|
format == o.format &&
|
96
97
|
show_hidden_slides == o.show_hidden_slides &&
|
97
98
|
save_metafiles_as_png == o.save_metafiles_as_png &&
|
@@ -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
|
-
[default_regular_font, font_fallback_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
111
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
111
112
|
end
|
112
113
|
|
113
114
|
# Builds the object from hash
|
@@ -253,8 +253,11 @@ module AsposeSlidesCloud
|
|
253
253
|
:'FilesUploadResult' => { },
|
254
254
|
:'FillFormat' => { },
|
255
255
|
:'FillOverlayEffect' => { },
|
256
|
+
:'FontData' => { },
|
256
257
|
:'FontFallbackRule' => { },
|
257
258
|
:'FontSet' => { },
|
259
|
+
:'FontSubstRule' => { },
|
260
|
+
:'FontsData' => { },
|
258
261
|
:'GeometryPath' => { },
|
259
262
|
:'GeometryPaths' => { },
|
260
263
|
:'GlowEffect' => { },
|
data/lib/aspose_slides_cloud.rb
CHANGED
@@ -58,8 +58,11 @@ require 'aspose_slides_cloud/models/files_list'
|
|
58
58
|
require 'aspose_slides_cloud/models/files_upload_result'
|
59
59
|
require 'aspose_slides_cloud/models/fill_format'
|
60
60
|
require 'aspose_slides_cloud/models/fill_overlay_effect'
|
61
|
+
require 'aspose_slides_cloud/models/font_data'
|
61
62
|
require 'aspose_slides_cloud/models/font_fallback_rule'
|
62
63
|
require 'aspose_slides_cloud/models/font_set'
|
64
|
+
require 'aspose_slides_cloud/models/font_subst_rule'
|
65
|
+
require 'aspose_slides_cloud/models/fonts_data'
|
63
66
|
require 'aspose_slides_cloud/models/geometry_path'
|
64
67
|
require 'aspose_slides_cloud/models/geometry_paths'
|
65
68
|
require 'aspose_slides_cloud/models/glow_effect'
|