aspose_slides_cloud 26.1.0 → 26.10.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 +11 -11
- data/README.md +16 -26
- data/aspose_slides_cloud.gemspec +1 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +654 -6
- data/lib/aspose_slides_cloud/configuration.rb +12 -4
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +24 -2
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/smart_art.rb +12 -2
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +12 -2
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +3033 -21
- data/spec/use_cases/audio_spec.rb +67 -0
- data/spec/use_cases/chart_spec.rb +27 -6
- data/spec/use_cases/convert_spec.rb +281 -0
- data/spec/use_cases/font_spec.rb +2 -1
- data/spec/use_cases/image_spec.rb +20 -0
- data/spec/use_cases/layout_slide_spec.rb +1 -1
- data/spec/use_cases/master_slide_spec.rb +1 -1
- data/spec/use_cases/merge_spec.rb +1 -1
- data/spec/use_cases/notes_slide_spec.rb +1 -1
- data/spec/use_cases/nullable_field_spec.rb +1 -1
- data/spec/use_cases/paragraph_spec.rb +73 -0
- data/spec/use_cases/shape_spec.rb +241 -26
- data/spec/use_cases/table_spec.rb +55 -0
- data/spec/use_cases/text_format_spec.rb +2 -2
- data/spec/use_cases/video_spec.rb +67 -0
- data/testRules.json +23 -11
- metadata +9 -3
|
@@ -27,9 +27,6 @@ module AsposeSlidesCloud
|
|
|
27
27
|
# Defines base url
|
|
28
28
|
attr_accessor :base_url
|
|
29
29
|
|
|
30
|
-
# Defines base url for authentication
|
|
31
|
-
attr_accessor :auth_base_url
|
|
32
|
-
|
|
33
30
|
# Defines platform version
|
|
34
31
|
attr_accessor :version
|
|
35
32
|
|
|
@@ -131,7 +128,6 @@ module AsposeSlidesCloud
|
|
|
131
128
|
|
|
132
129
|
def initialize
|
|
133
130
|
@base_url = 'https://api.aspose.cloud'
|
|
134
|
-
@auth_base_url = 'https://api.aspose.cloud'
|
|
135
131
|
@version = 'v3.0'
|
|
136
132
|
@http_request_timeout = 300
|
|
137
133
|
@timeout = 0
|
|
@@ -163,6 +159,18 @@ module AsposeSlidesCloud
|
|
|
163
159
|
@base_url = getUrlHostPart(base_url)
|
|
164
160
|
end
|
|
165
161
|
|
|
162
|
+
def async_base_url
|
|
163
|
+
@async_base_url || @base_url
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
def async_base_url=(async_base_url)
|
|
167
|
+
@async_base_url = getUrlHostPart(async_base_url)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def auth_base_url
|
|
171
|
+
@auth_base_url || @base_url
|
|
172
|
+
end
|
|
173
|
+
|
|
166
174
|
def auth_base_url=(auth_base_url)
|
|
167
175
|
@auth_base_url = getUrlHostPart(auth_base_url)
|
|
168
176
|
end
|
|
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
|
|
|
43
43
|
# true to disable ligatures in the rendered output.
|
|
44
44
|
attr_accessor :disable_font_ligatures
|
|
45
45
|
|
|
46
|
+
# Represents the pictures compression level. Pictures are not compressed (DocumentResolution) by default. Not applied when TemplatesPath is set.
|
|
47
|
+
attr_accessor :pictures_compression
|
|
48
|
+
|
|
46
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
50
|
def self.attribute_map
|
|
48
51
|
super.merge({
|
|
@@ -52,6 +55,7 @@ module AsposeSlidesCloud
|
|
|
52
55
|
:'slides_layout_options' => :'SlidesLayoutOptions',
|
|
53
56
|
:'templates_path' => :'TemplatesPath',
|
|
54
57
|
:'disable_font_ligatures' => :'DisableFontLigatures',
|
|
58
|
+
:'pictures_compression' => :'PicturesCompression',
|
|
55
59
|
})
|
|
56
60
|
end
|
|
57
61
|
|
|
@@ -64,6 +68,7 @@ module AsposeSlidesCloud
|
|
|
64
68
|
:'slides_layout_options' => :'SlidesLayoutOptions',
|
|
65
69
|
:'templates_path' => :'String',
|
|
66
70
|
:'disable_font_ligatures' => :'BOOLEAN',
|
|
71
|
+
:'pictures_compression' => :'String',
|
|
67
72
|
})
|
|
68
73
|
end
|
|
69
74
|
|
|
@@ -95,6 +100,10 @@ module AsposeSlidesCloud
|
|
|
95
100
|
if attributes.has_key?(:'DisableFontLigatures')
|
|
96
101
|
self.disable_font_ligatures = attributes[:'DisableFontLigatures']
|
|
97
102
|
end
|
|
103
|
+
|
|
104
|
+
if attributes.has_key?(:'PicturesCompression')
|
|
105
|
+
self.pictures_compression = attributes[:'PicturesCompression']
|
|
106
|
+
end
|
|
98
107
|
self.format = 'html5'
|
|
99
108
|
end
|
|
100
109
|
|
|
@@ -109,9 +118,21 @@ module AsposeSlidesCloud
|
|
|
109
118
|
# @return true if the model is valid
|
|
110
119
|
def valid?
|
|
111
120
|
return false if !super
|
|
121
|
+
pictures_compression_validator = EnumAttributeValidator.new('String', ['Dpi330', 'Dpi220', 'Dpi150', 'Dpi96', 'Dpi72', 'DocumentResolution'])
|
|
122
|
+
return false unless pictures_compression_validator.valid?(@pictures_compression)
|
|
112
123
|
true
|
|
113
124
|
end
|
|
114
125
|
|
|
126
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
127
|
+
# @param [Object] pictures_compression Object to be assigned
|
|
128
|
+
def pictures_compression=(pictures_compression)
|
|
129
|
+
validator = EnumAttributeValidator.new('String', ['Dpi330', 'Dpi220', 'Dpi150', 'Dpi96', 'Dpi72', 'DocumentResolution'])
|
|
130
|
+
unless validator.valid?(pictures_compression)
|
|
131
|
+
fail ArgumentError, 'invalid value for "pictures_compression", must be one of #{validator.allowable_values}.'
|
|
132
|
+
end
|
|
133
|
+
@pictures_compression = pictures_compression
|
|
134
|
+
end
|
|
135
|
+
|
|
115
136
|
# Checks equality by comparing each attribute.
|
|
116
137
|
# @param [Object] Object to be compared
|
|
117
138
|
def ==(o)
|
|
@@ -129,7 +150,8 @@ module AsposeSlidesCloud
|
|
|
129
150
|
embed_images == o.embed_images &&
|
|
130
151
|
slides_layout_options == o.slides_layout_options &&
|
|
131
152
|
templates_path == o.templates_path &&
|
|
132
|
-
disable_font_ligatures == o.disable_font_ligatures
|
|
153
|
+
disable_font_ligatures == o.disable_font_ligatures &&
|
|
154
|
+
pictures_compression == o.pictures_compression
|
|
133
155
|
end
|
|
134
156
|
|
|
135
157
|
# @see the `==` method
|
|
@@ -141,7 +163,7 @@ module AsposeSlidesCloud
|
|
|
141
163
|
# Calculates hash code according to all attributes.
|
|
142
164
|
# @return [Fixnum] Hash code
|
|
143
165
|
def hash
|
|
144
|
-
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, animate_transitions, animate_shapes, embed_images, slides_layout_options, templates_path, disable_font_ligatures].hash
|
|
166
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, animate_transitions, animate_shapes, embed_images, slides_layout_options, templates_path, disable_font_ligatures, pictures_compression].hash
|
|
145
167
|
end
|
|
146
168
|
end
|
|
147
169
|
end
|
|
@@ -31,6 +31,9 @@ module AsposeSlidesCloud
|
|
|
31
31
|
# Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.
|
|
32
32
|
attr_accessor :zip64_mode
|
|
33
33
|
|
|
34
|
+
# The compression level used when saving the presentation document. Higher compression levels produce smaller files but require more processing time. The actual compression ratio depends on the content of the presentation. The default value is CompressionLevel.Level6.
|
|
35
|
+
attr_accessor :compression_level
|
|
36
|
+
|
|
34
37
|
# True to refresh the presentation thumbnail on save
|
|
35
38
|
attr_accessor :refresh_thumbnail
|
|
36
39
|
|
|
@@ -39,6 +42,7 @@ module AsposeSlidesCloud
|
|
|
39
42
|
super.merge({
|
|
40
43
|
:'conformance' => :'Conformance',
|
|
41
44
|
:'zip64_mode' => :'Zip64Mode',
|
|
45
|
+
:'compression_level' => :'CompressionLevel',
|
|
42
46
|
:'refresh_thumbnail' => :'RefreshThumbnail',
|
|
43
47
|
})
|
|
44
48
|
end
|
|
@@ -48,6 +52,7 @@ module AsposeSlidesCloud
|
|
|
48
52
|
super.merge({
|
|
49
53
|
:'conformance' => :'String',
|
|
50
54
|
:'zip64_mode' => :'String',
|
|
55
|
+
:'compression_level' => :'String',
|
|
51
56
|
:'refresh_thumbnail' => :'BOOLEAN',
|
|
52
57
|
})
|
|
53
58
|
end
|
|
@@ -65,6 +70,10 @@ module AsposeSlidesCloud
|
|
|
65
70
|
self.zip64_mode = attributes[:'Zip64Mode']
|
|
66
71
|
end
|
|
67
72
|
|
|
73
|
+
if attributes.has_key?(:'CompressionLevel')
|
|
74
|
+
self.compression_level = attributes[:'CompressionLevel']
|
|
75
|
+
end
|
|
76
|
+
|
|
68
77
|
if attributes.has_key?(:'RefreshThumbnail')
|
|
69
78
|
self.refresh_thumbnail = attributes[:'RefreshThumbnail']
|
|
70
79
|
end
|
|
@@ -86,6 +95,8 @@ module AsposeSlidesCloud
|
|
|
86
95
|
return false unless conformance_validator.valid?(@conformance)
|
|
87
96
|
zip64_mode_validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always'])
|
|
88
97
|
return false unless zip64_mode_validator.valid?(@zip64_mode)
|
|
98
|
+
compression_level_validator = EnumAttributeValidator.new('String', ['None', 'Level1', 'Level2', 'Level3', 'Level4', 'Level5', 'Level6', 'Level7', 'Level8', 'Level9'])
|
|
99
|
+
return false unless compression_level_validator.valid?(@compression_level)
|
|
89
100
|
true
|
|
90
101
|
end
|
|
91
102
|
|
|
@@ -109,6 +120,16 @@ module AsposeSlidesCloud
|
|
|
109
120
|
@zip64_mode = zip64_mode
|
|
110
121
|
end
|
|
111
122
|
|
|
123
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
124
|
+
# @param [Object] compression_level Object to be assigned
|
|
125
|
+
def compression_level=(compression_level)
|
|
126
|
+
validator = EnumAttributeValidator.new('String', ['None', 'Level1', 'Level2', 'Level3', 'Level4', 'Level5', 'Level6', 'Level7', 'Level8', 'Level9'])
|
|
127
|
+
unless validator.valid?(compression_level)
|
|
128
|
+
fail ArgumentError, 'invalid value for "compression_level", must be one of #{validator.allowable_values}.'
|
|
129
|
+
end
|
|
130
|
+
@compression_level = compression_level
|
|
131
|
+
end
|
|
132
|
+
|
|
112
133
|
# Checks equality by comparing each attribute.
|
|
113
134
|
# @param [Object] Object to be compared
|
|
114
135
|
def ==(o)
|
|
@@ -123,6 +144,7 @@ module AsposeSlidesCloud
|
|
|
123
144
|
format == o.format &&
|
|
124
145
|
conformance == o.conformance &&
|
|
125
146
|
zip64_mode == o.zip64_mode &&
|
|
147
|
+
compression_level == o.compression_level &&
|
|
126
148
|
refresh_thumbnail == o.refresh_thumbnail
|
|
127
149
|
end
|
|
128
150
|
|
|
@@ -135,7 +157,7 @@ module AsposeSlidesCloud
|
|
|
135
157
|
# Calculates hash code according to all attributes.
|
|
136
158
|
# @return [Fixnum] Hash code
|
|
137
159
|
def hash
|
|
138
|
-
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, conformance, zip64_mode, refresh_thumbnail].hash
|
|
160
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, conformance, zip64_mode, compression_level, refresh_thumbnail].hash
|
|
139
161
|
end
|
|
140
162
|
end
|
|
141
163
|
end
|
|
@@ -40,6 +40,9 @@ module AsposeSlidesCloud
|
|
|
40
40
|
# The state of the SmartArt diagram with regard to (left-to-right) LTR or (right-to-left) RTL, if the diagram supports reversal.
|
|
41
41
|
attr_accessor :is_reversed
|
|
42
42
|
|
|
43
|
+
# Default paragraph format applied to all nodes. Write-only: not populated on read since there is no corresponding property at the SmartArt shape level in Aspose.Slides.
|
|
44
|
+
attr_accessor :default_paragraph_format
|
|
45
|
+
|
|
43
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
47
|
def self.attribute_map
|
|
45
48
|
super.merge({
|
|
@@ -48,6 +51,7 @@ module AsposeSlidesCloud
|
|
|
48
51
|
:'color_style' => :'ColorStyle',
|
|
49
52
|
:'nodes' => :'Nodes',
|
|
50
53
|
:'is_reversed' => :'IsReversed',
|
|
54
|
+
:'default_paragraph_format' => :'DefaultParagraphFormat',
|
|
51
55
|
})
|
|
52
56
|
end
|
|
53
57
|
|
|
@@ -59,6 +63,7 @@ module AsposeSlidesCloud
|
|
|
59
63
|
:'color_style' => :'String',
|
|
60
64
|
:'nodes' => :'Array<SmartArtNode>',
|
|
61
65
|
:'is_reversed' => :'BOOLEAN',
|
|
66
|
+
:'default_paragraph_format' => :'ParagraphFormat',
|
|
62
67
|
})
|
|
63
68
|
end
|
|
64
69
|
|
|
@@ -88,6 +93,10 @@ module AsposeSlidesCloud
|
|
|
88
93
|
if attributes.has_key?(:'IsReversed')
|
|
89
94
|
self.is_reversed = attributes[:'IsReversed']
|
|
90
95
|
end
|
|
96
|
+
|
|
97
|
+
if attributes.has_key?(:'DefaultParagraphFormat')
|
|
98
|
+
self.default_paragraph_format = attributes[:'DefaultParagraphFormat']
|
|
99
|
+
end
|
|
91
100
|
self.type = 'SmartArt'
|
|
92
101
|
end
|
|
93
102
|
|
|
@@ -184,7 +193,8 @@ module AsposeSlidesCloud
|
|
|
184
193
|
quick_style == o.quick_style &&
|
|
185
194
|
color_style == o.color_style &&
|
|
186
195
|
nodes == o.nodes &&
|
|
187
|
-
is_reversed == o.is_reversed
|
|
196
|
+
is_reversed == o.is_reversed &&
|
|
197
|
+
default_paragraph_format == o.default_paragraph_format
|
|
188
198
|
end
|
|
189
199
|
|
|
190
200
|
# @see the `==` method
|
|
@@ -196,7 +206,7 @@ module AsposeSlidesCloud
|
|
|
196
206
|
# Calculates hash code according to all attributes.
|
|
197
207
|
# @return [Fixnum] Hash code
|
|
198
208
|
def hash
|
|
199
|
-
[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
|
|
209
|
+
[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, default_paragraph_format].hash
|
|
200
210
|
end
|
|
201
211
|
end
|
|
202
212
|
end
|
|
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
|
|
|
43
43
|
# Get or sets list to paragraphs list
|
|
44
44
|
attr_accessor :paragraphs
|
|
45
45
|
|
|
46
|
+
# Default paragraph format for the node's text frame.
|
|
47
|
+
attr_accessor :default_paragraph_format
|
|
48
|
+
|
|
46
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
50
|
def self.attribute_map
|
|
48
51
|
{
|
|
@@ -52,6 +55,7 @@ module AsposeSlidesCloud
|
|
|
52
55
|
:'text' => :'Text',
|
|
53
56
|
:'org_chart_layout' => :'OrgChartLayout',
|
|
54
57
|
:'paragraphs' => :'Paragraphs',
|
|
58
|
+
:'default_paragraph_format' => :'DefaultParagraphFormat',
|
|
55
59
|
}
|
|
56
60
|
end
|
|
57
61
|
|
|
@@ -64,6 +68,7 @@ module AsposeSlidesCloud
|
|
|
64
68
|
:'text' => :'String',
|
|
65
69
|
:'org_chart_layout' => :'String',
|
|
66
70
|
:'paragraphs' => :'ResourceUri',
|
|
71
|
+
:'default_paragraph_format' => :'ParagraphFormat',
|
|
67
72
|
}
|
|
68
73
|
end
|
|
69
74
|
|
|
@@ -100,6 +105,10 @@ module AsposeSlidesCloud
|
|
|
100
105
|
if attributes.has_key?(:'Paragraphs')
|
|
101
106
|
self.paragraphs = attributes[:'Paragraphs']
|
|
102
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.has_key?(:'DefaultParagraphFormat')
|
|
110
|
+
self.default_paragraph_format = attributes[:'DefaultParagraphFormat']
|
|
111
|
+
end
|
|
103
112
|
end
|
|
104
113
|
|
|
105
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -142,7 +151,8 @@ module AsposeSlidesCloud
|
|
|
142
151
|
is_assistant == o.is_assistant &&
|
|
143
152
|
text == o.text &&
|
|
144
153
|
org_chart_layout == o.org_chart_layout &&
|
|
145
|
-
paragraphs == o.paragraphs
|
|
154
|
+
paragraphs == o.paragraphs &&
|
|
155
|
+
default_paragraph_format == o.default_paragraph_format
|
|
146
156
|
end
|
|
147
157
|
|
|
148
158
|
# @see the `==` method
|
|
@@ -154,7 +164,7 @@ module AsposeSlidesCloud
|
|
|
154
164
|
# Calculates hash code according to all attributes.
|
|
155
165
|
# @return [Fixnum] Hash code
|
|
156
166
|
def hash
|
|
157
|
-
[nodes, shapes, is_assistant, text, org_chart_layout, paragraphs].hash
|
|
167
|
+
[nodes, shapes, is_assistant, text, org_chart_layout, paragraphs, default_paragraph_format].hash
|
|
158
168
|
end
|
|
159
169
|
end
|
|
160
170
|
end
|