aspose_slides_cloud 24.5.0 → 24.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -9
- data/README.md +17 -0
- data/TestData/pictureFrame.html +39 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +1 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +75 -204
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +8 -8
- data/lib/aspose_slides_cloud/api_client.rb +15 -3
- data/lib/aspose_slides_cloud/models/document_property.rb +0 -5
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +0 -25
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/operation.rb +1 -10
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -2
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +26 -3
- data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -10
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/slide.rb +0 -5
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/table.rb +12 -2
- data/lib/aspose_slides_cloud/models/table_cell.rb +11 -1
- data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +0 -5
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +96 -543
- data/spec/use_cases/text_spec.rb +7 -4
- metadata +23 -2
@@ -155,8 +155,8 @@ module AsposeSlidesCloud
|
|
155
155
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_convert"
|
156
156
|
end
|
157
157
|
# verify enum value
|
158
|
-
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
159
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
158
|
+
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
159
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
160
160
|
end
|
161
161
|
# resource path
|
162
162
|
local_var_path = '/slides/async/convert/{format}'
|
@@ -230,8 +230,8 @@ module AsposeSlidesCloud
|
|
230
230
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_convert_and_save"
|
231
231
|
end
|
232
232
|
# verify enum value
|
233
|
-
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
234
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
233
|
+
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
234
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
235
235
|
end
|
236
236
|
# verify the required parameter 'out_path' is set
|
237
237
|
if @api_client.config.client_side_validation && out_path.nil?
|
@@ -310,8 +310,8 @@ module AsposeSlidesCloud
|
|
310
310
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_download_presentation"
|
311
311
|
end
|
312
312
|
# verify enum value
|
313
|
-
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
314
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
313
|
+
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
314
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
315
315
|
end
|
316
316
|
# resource path
|
317
317
|
local_var_path = '/slides/async/{name}/{format}'
|
@@ -491,8 +491,8 @@ module AsposeSlidesCloud
|
|
491
491
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_save_presentation"
|
492
492
|
end
|
493
493
|
# verify enum value
|
494
|
-
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
495
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
494
|
+
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
495
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
496
496
|
end
|
497
497
|
# verify the required parameter 'out_path' is set
|
498
498
|
if @api_client.config.client_side_validation && out_path.nil?
|
@@ -27,8 +27,11 @@ require 'tempfile'
|
|
27
27
|
require 'faraday'
|
28
28
|
require 'faraday/httpclient'
|
29
29
|
require 'uri'
|
30
|
+
require 'warning'
|
30
31
|
|
31
32
|
Faraday.default_adapter = :httpclient
|
33
|
+
# Suppress warning on unknown cookie from httpclient.webagent-cookie
|
34
|
+
Warning.ignore(/Unknown key: SameSite =/)
|
32
35
|
|
33
36
|
module AsposeSlidesCloud
|
34
37
|
class ApiClient
|
@@ -57,7 +60,10 @@ module AsposeSlidesCloud
|
|
57
60
|
def call_api(http_method, path, opts = {})
|
58
61
|
response = call_api_method(http_method, path, opts)
|
59
62
|
if @config.debugging
|
60
|
-
@config.logger.debug "HTTP response\nHeaders: #{response.headers}\nStatus: #{response.status}\
|
63
|
+
@config.logger.debug "HTTP response\nHeaders: #{response.headers}\nStatus: #{response.status}\n"
|
64
|
+
if response.headers.has_key?("Content-Type") && (response.headers["Content-Type"].include?("text") || response.headers["Content-Type"].include?("json"))
|
65
|
+
@config.logger.debug "Body: #{response.body}\n"
|
66
|
+
end
|
61
67
|
end
|
62
68
|
|
63
69
|
if (response.status == 401 || (response.status == 500 && response.body.length == 0)) and @config.access_token
|
@@ -75,7 +81,10 @@ module AsposeSlidesCloud
|
|
75
81
|
def repeat_call_api(http_method, path, opts = {})
|
76
82
|
response = call_api_method(http_method, path, opts)
|
77
83
|
if @config.debugging
|
78
|
-
@config.logger.debug "HTTP response\nHeaders: #{response.headers}\nStatus: #{response.status}\
|
84
|
+
@config.logger.debug "HTTP response\nHeaders: #{response.headers}\nStatus: #{response.status}\n"
|
85
|
+
if response.headers.has_key?("Content-Type") && (response.headers["Content-Type"].include?("text") || response.headers["Content-Type"].include?("json"))
|
86
|
+
@config.logger.debug "Body: #{response.body}\n"
|
87
|
+
end
|
79
88
|
end
|
80
89
|
|
81
90
|
return process_response(response, opts)
|
@@ -157,7 +166,10 @@ module AsposeSlidesCloud
|
|
157
166
|
req.body = build_request_body(req.headers, opts[:body], opts[:files])
|
158
167
|
set_headers(req.headers)
|
159
168
|
if @config.debugging
|
160
|
-
@config.logger.debug "HTTP request\nMethod: #{req.method}\nPath: #{req.path}\nParams: #{req.params}\nHeaders: #{req.headers}\
|
169
|
+
@config.logger.debug "HTTP request\nMethod: #{req.method}\nPath: #{req.path}\nParams: #{req.params}\nHeaders: #{req.headers}\n"
|
170
|
+
if (!req.headers.has_key?("Content-Type") || !req.headers["Content-Type"].include?("multipart")) && req.body
|
171
|
+
@config.logger.debug "Body: #{req.body}\n"
|
172
|
+
end
|
161
173
|
end
|
162
174
|
end
|
163
175
|
|
@@ -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
|
@@ -34,8 +34,6 @@ module AsposeSlidesCloud
|
|
34
34
|
|
35
35
|
attr_accessor :created
|
36
36
|
|
37
|
-
attr_accessor :enqueued
|
38
|
-
|
39
37
|
attr_accessor :started
|
40
38
|
|
41
39
|
attr_accessor :failed
|
@@ -54,7 +52,6 @@ module AsposeSlidesCloud
|
|
54
52
|
:'status' => :'Status',
|
55
53
|
:'progress' => :'Progress',
|
56
54
|
:'created' => :'Created',
|
57
|
-
:'enqueued' => :'Enqueued',
|
58
55
|
:'started' => :'Started',
|
59
56
|
:'failed' => :'Failed',
|
60
57
|
:'canceled' => :'Canceled',
|
@@ -71,7 +68,6 @@ module AsposeSlidesCloud
|
|
71
68
|
:'status' => :'String',
|
72
69
|
:'progress' => :'OperationProgress',
|
73
70
|
:'created' => :'DateTime',
|
74
|
-
:'enqueued' => :'DateTime',
|
75
71
|
:'started' => :'DateTime',
|
76
72
|
:'failed' => :'DateTime',
|
77
73
|
:'canceled' => :'DateTime',
|
@@ -108,10 +104,6 @@ module AsposeSlidesCloud
|
|
108
104
|
self.created = attributes[:'Created']
|
109
105
|
end
|
110
106
|
|
111
|
-
if attributes.has_key?(:'Enqueued')
|
112
|
-
self.enqueued = attributes[:'Enqueued']
|
113
|
-
end
|
114
|
-
|
115
107
|
if attributes.has_key?(:'Started')
|
116
108
|
self.started = attributes[:'Started']
|
117
109
|
end
|
@@ -195,7 +187,6 @@ module AsposeSlidesCloud
|
|
195
187
|
status == o.status &&
|
196
188
|
progress == o.progress &&
|
197
189
|
created == o.created &&
|
198
|
-
enqueued == o.enqueued &&
|
199
190
|
started == o.started &&
|
200
191
|
failed == o.failed &&
|
201
192
|
canceled == o.canceled &&
|
@@ -212,7 +203,7 @@ module AsposeSlidesCloud
|
|
212
203
|
# Calculates hash code according to all attributes.
|
213
204
|
# @return [Fixnum] Hash code
|
214
205
|
def hash
|
215
|
-
[id, method, status, progress, created,
|
206
|
+
[id, method, status, progress, created, started, failed, canceled, finished, error].hash
|
216
207
|
end
|
217
208
|
end
|
218
209
|
end
|
@@ -70,6 +70,15 @@ module AsposeSlidesCloud
|
|
70
70
|
# Access permissions that should be granted when the document is opened with user access. Default is AccessPermissions.None.
|
71
71
|
attr_accessor :access_permissions
|
72
72
|
|
73
|
+
# True to hide Ink elements in exported document.
|
74
|
+
attr_accessor :hide_ink
|
75
|
+
|
76
|
+
# True to use ROP operation or Opacity for rendering brush.
|
77
|
+
attr_accessor :interpret_mask_op_as_opacity
|
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
|
+
|
73
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
83
|
def self.attribute_map
|
75
84
|
super.merge({
|
@@ -88,6 +97,9 @@ module AsposeSlidesCloud
|
|
88
97
|
:'image_transparent_color' => :'ImageTransparentColor',
|
89
98
|
:'apply_image_transparent' => :'ApplyImageTransparent',
|
90
99
|
:'access_permissions' => :'AccessPermissions',
|
100
|
+
:'hide_ink' => :'HideInk',
|
101
|
+
:'interpret_mask_op_as_opacity' => :'InterpretMaskOpAsOpacity',
|
102
|
+
:'rasterize_unsupported_font_styles' => :'RasterizeUnsupportedFontStyles',
|
91
103
|
})
|
92
104
|
end
|
93
105
|
|
@@ -109,6 +121,9 @@ module AsposeSlidesCloud
|
|
109
121
|
:'image_transparent_color' => :'String',
|
110
122
|
:'apply_image_transparent' => :'BOOLEAN',
|
111
123
|
:'access_permissions' => :'AccessPermissions',
|
124
|
+
:'hide_ink' => :'BOOLEAN',
|
125
|
+
:'interpret_mask_op_as_opacity' => :'BOOLEAN',
|
126
|
+
:'rasterize_unsupported_font_styles' => :'BOOLEAN',
|
112
127
|
})
|
113
128
|
end
|
114
129
|
|
@@ -178,6 +193,18 @@ module AsposeSlidesCloud
|
|
178
193
|
if attributes.has_key?(:'AccessPermissions')
|
179
194
|
self.access_permissions = attributes[:'AccessPermissions']
|
180
195
|
end
|
196
|
+
|
197
|
+
if attributes.has_key?(:'HideInk')
|
198
|
+
self.hide_ink = attributes[:'HideInk']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.has_key?(:'InterpretMaskOpAsOpacity')
|
202
|
+
self.interpret_mask_op_as_opacity = attributes[:'InterpretMaskOpAsOpacity']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.has_key?(:'RasterizeUnsupportedFontStyles')
|
206
|
+
self.rasterize_unsupported_font_styles = attributes[:'RasterizeUnsupportedFontStyles']
|
207
|
+
end
|
181
208
|
self.format = 'pdf'
|
182
209
|
end
|
183
210
|
|
@@ -225,6 +252,7 @@ module AsposeSlidesCloud
|
|
225
252
|
return true if self.equal?(o)
|
226
253
|
self.class == o.class &&
|
227
254
|
default_regular_font == o.default_regular_font &&
|
255
|
+
gradient_style == o.gradient_style &&
|
228
256
|
font_fallback_rules == o.font_fallback_rules &&
|
229
257
|
font_subst_rules == o.font_subst_rules &&
|
230
258
|
format == o.format &&
|
@@ -242,7 +270,10 @@ module AsposeSlidesCloud
|
|
242
270
|
slides_layout_options == o.slides_layout_options &&
|
243
271
|
image_transparent_color == o.image_transparent_color &&
|
244
272
|
apply_image_transparent == o.apply_image_transparent &&
|
245
|
-
access_permissions == o.access_permissions
|
273
|
+
access_permissions == o.access_permissions &&
|
274
|
+
hide_ink == o.hide_ink &&
|
275
|
+
interpret_mask_op_as_opacity == o.interpret_mask_op_as_opacity &&
|
276
|
+
rasterize_unsupported_font_styles == o.rasterize_unsupported_font_styles
|
246
277
|
end
|
247
278
|
|
248
279
|
# @see the `==` method
|
@@ -254,7 +285,7 @@ module AsposeSlidesCloud
|
|
254
285
|
# Calculates hash code according to all attributes.
|
255
286
|
# @return [Fixnum] Hash code
|
256
287
|
def hash
|
257
|
-
[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].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
|
258
289
|
end
|
259
290
|
end
|
260
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
|
|