aspose_slides_cloud 24.12.0 → 25.6.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 +20 -18
- data/README.md +15 -71
- data/TestData/video.pptx +0 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +370 -121
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +12 -12
- data/lib/aspose_slides_cloud/models/audio_frame.rb +51 -1
- data/lib/aspose_slides_cloud/models/caption_track.rb +116 -0
- data/lib/aspose_slides_cloud/models/caption_tracks.rb +93 -0
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +11 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +19 -8
- data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -2
- 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 +45 -2
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/picture_fill.rb +21 -1
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_shape.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/shape_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +9 -72
- 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 +4 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +2 -0
- data/spec/api/slides_api_spec.rb +1107 -252
- data/spec/use_cases/merge_spec.rb +1 -1
- data/testRules.json +7 -1
- metadata +5 -2
@@ -207,8 +207,8 @@ module AsposeSlidesCloud
|
|
207
207
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_convert"
|
208
208
|
end
|
209
209
|
# verify enum value
|
210
|
-
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 }
|
211
|
-
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"
|
210
|
+
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', 'Emf'].any?{ |s| s.casecmp(format)==0 }
|
211
|
+
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, Emf"
|
212
212
|
end
|
213
213
|
# resource path
|
214
214
|
local_var_path = '/slides/async/convert/{format}'
|
@@ -282,8 +282,8 @@ module AsposeSlidesCloud
|
|
282
282
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_convert_and_save"
|
283
283
|
end
|
284
284
|
# verify enum value
|
285
|
-
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 }
|
286
|
-
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"
|
285
|
+
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', 'Emf'].any?{ |s| s.casecmp(format)==0 }
|
286
|
+
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, Emf"
|
287
287
|
end
|
288
288
|
# verify the required parameter 'out_path' is set
|
289
289
|
if @api_client.config.client_side_validation && out_path.nil?
|
@@ -362,8 +362,8 @@ module AsposeSlidesCloud
|
|
362
362
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_download_presentation"
|
363
363
|
end
|
364
364
|
# verify enum value
|
365
|
-
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 }
|
366
|
-
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"
|
365
|
+
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', 'Emf'].any?{ |s| s.casecmp(format)==0 }
|
366
|
+
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, Emf"
|
367
367
|
end
|
368
368
|
# resource path
|
369
369
|
local_var_path = '/slides/async/{name}/{format}'
|
@@ -543,8 +543,8 @@ module AsposeSlidesCloud
|
|
543
543
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_save_presentation"
|
544
544
|
end
|
545
545
|
# verify enum value
|
546
|
-
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 }
|
547
|
-
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"
|
546
|
+
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', 'Emf'].any?{ |s| s.casecmp(format)==0 }
|
547
|
+
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, Emf"
|
548
548
|
end
|
549
549
|
# verify the required parameter 'out_path' is set
|
550
550
|
if @api_client.config.client_side_validation && out_path.nil?
|
@@ -630,8 +630,8 @@ module AsposeSlidesCloud
|
|
630
630
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_split"
|
631
631
|
end
|
632
632
|
# verify enum value
|
633
|
-
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
634
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
633
|
+
if @api_client.config.client_side_validation && !['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', 'Emf'].any?{ |s| s.casecmp(format)==0 }
|
634
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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, Emf"
|
635
635
|
end
|
636
636
|
# resource path
|
637
637
|
local_var_path = '/slides/async/{name}/split/{format}'
|
@@ -714,8 +714,8 @@ module AsposeSlidesCloud
|
|
714
714
|
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_upload_and_split"
|
715
715
|
end
|
716
716
|
# verify enum value
|
717
|
-
if @api_client.config.client_side_validation && !['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'].any?{ |s| s.casecmp(format)==0 }
|
718
|
-
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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"
|
717
|
+
if @api_client.config.client_side_validation && !['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', 'Emf'].any?{ |s| s.casecmp(format)==0 }
|
718
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of 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, Emf"
|
719
719
|
end
|
720
720
|
# resource path
|
721
721
|
local_var_path = '/slides/async/split/{format}'
|
@@ -52,6 +52,9 @@ module AsposeSlidesCloud
|
|
52
52
|
# Returns or sets the audio volume.
|
53
53
|
attr_accessor :volume
|
54
54
|
|
55
|
+
# Audio volume percent.
|
56
|
+
attr_accessor :volume_value
|
57
|
+
|
55
58
|
# Audio data encoded in base64.
|
56
59
|
attr_accessor :base64_data
|
57
60
|
|
@@ -61,6 +64,18 @@ module AsposeSlidesCloud
|
|
61
64
|
# Determines whether audio is automatically rewound to start after playing.
|
62
65
|
attr_accessor :rewind_audio
|
63
66
|
|
67
|
+
# Time duration for the initial fade-in of the media in milliseconds.
|
68
|
+
attr_accessor :fade_in_duration
|
69
|
+
|
70
|
+
# Time duration for the ending fade-out of the media in milliseconds.
|
71
|
+
attr_accessor :fade_out_duration
|
72
|
+
|
73
|
+
# Time duration to be removed from the beginning of the media during playback in milliseconds.
|
74
|
+
attr_accessor :trim_from_start
|
75
|
+
|
76
|
+
# Time duration to be removed from the end of the media during playback in milliseconds.
|
77
|
+
attr_accessor :trim_from_end
|
78
|
+
|
64
79
|
# Picture fill format.
|
65
80
|
attr_accessor :picture_fill_format
|
66
81
|
|
@@ -76,9 +91,14 @@ module AsposeSlidesCloud
|
|
76
91
|
:'play_loop_mode' => :'PlayLoopMode',
|
77
92
|
:'play_mode' => :'PlayMode',
|
78
93
|
:'volume' => :'Volume',
|
94
|
+
:'volume_value' => :'VolumeValue',
|
79
95
|
:'base64_data' => :'Base64Data',
|
80
96
|
:'play_across_slides' => :'PlayAcrossSlides',
|
81
97
|
:'rewind_audio' => :'RewindAudio',
|
98
|
+
:'fade_in_duration' => :'FadeInDuration',
|
99
|
+
:'fade_out_duration' => :'FadeOutDuration',
|
100
|
+
:'trim_from_start' => :'TrimFromStart',
|
101
|
+
:'trim_from_end' => :'TrimFromEnd',
|
82
102
|
:'picture_fill_format' => :'PictureFillFormat',
|
83
103
|
})
|
84
104
|
end
|
@@ -95,9 +115,14 @@ module AsposeSlidesCloud
|
|
95
115
|
:'play_loop_mode' => :'BOOLEAN',
|
96
116
|
:'play_mode' => :'String',
|
97
117
|
:'volume' => :'String',
|
118
|
+
:'volume_value' => :'Float',
|
98
119
|
:'base64_data' => :'String',
|
99
120
|
:'play_across_slides' => :'BOOLEAN',
|
100
121
|
:'rewind_audio' => :'BOOLEAN',
|
122
|
+
:'fade_in_duration' => :'Float',
|
123
|
+
:'fade_out_duration' => :'Float',
|
124
|
+
:'trim_from_start' => :'Float',
|
125
|
+
:'trim_from_end' => :'Float',
|
101
126
|
:'picture_fill_format' => :'PictureFill',
|
102
127
|
})
|
103
128
|
end
|
@@ -143,6 +168,10 @@ module AsposeSlidesCloud
|
|
143
168
|
self.volume = attributes[:'Volume']
|
144
169
|
end
|
145
170
|
|
171
|
+
if attributes.has_key?(:'VolumeValue')
|
172
|
+
self.volume_value = attributes[:'VolumeValue']
|
173
|
+
end
|
174
|
+
|
146
175
|
if attributes.has_key?(:'Base64Data')
|
147
176
|
self.base64_data = attributes[:'Base64Data']
|
148
177
|
end
|
@@ -155,6 +184,22 @@ module AsposeSlidesCloud
|
|
155
184
|
self.rewind_audio = attributes[:'RewindAudio']
|
156
185
|
end
|
157
186
|
|
187
|
+
if attributes.has_key?(:'FadeInDuration')
|
188
|
+
self.fade_in_duration = attributes[:'FadeInDuration']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'FadeOutDuration')
|
192
|
+
self.fade_out_duration = attributes[:'FadeOutDuration']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'TrimFromStart')
|
196
|
+
self.trim_from_start = attributes[:'TrimFromStart']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.has_key?(:'TrimFromEnd')
|
200
|
+
self.trim_from_end = attributes[:'TrimFromEnd']
|
201
|
+
end
|
202
|
+
|
158
203
|
if attributes.has_key?(:'PictureFillFormat')
|
159
204
|
self.picture_fill_format = attributes[:'PictureFillFormat']
|
160
205
|
end
|
@@ -233,9 +278,14 @@ module AsposeSlidesCloud
|
|
233
278
|
play_loop_mode == o.play_loop_mode &&
|
234
279
|
play_mode == o.play_mode &&
|
235
280
|
volume == o.volume &&
|
281
|
+
volume_value == o.volume_value &&
|
236
282
|
base64_data == o.base64_data &&
|
237
283
|
play_across_slides == o.play_across_slides &&
|
238
284
|
rewind_audio == o.rewind_audio &&
|
285
|
+
fade_in_duration == o.fade_in_duration &&
|
286
|
+
fade_out_duration == o.fade_out_duration &&
|
287
|
+
trim_from_start == o.trim_from_start &&
|
288
|
+
trim_from_end == o.trim_from_end &&
|
239
289
|
picture_fill_format == o.picture_fill_format
|
240
290
|
end
|
241
291
|
|
@@ -248,7 +298,7 @@ module AsposeSlidesCloud
|
|
248
298
|
# Calculates hash code according to all attributes.
|
249
299
|
# @return [Fixnum] Hash code
|
250
300
|
def hash
|
251
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, audio_cd_end_track, audio_cd_end_track_time, audio_cd_start_track, audio_cd_start_track_time, embedded, hide_at_showing, play_loop_mode, play_mode, volume, base64_data, play_across_slides, rewind_audio, picture_fill_format].hash
|
301
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, audio_cd_end_track, audio_cd_end_track_time, audio_cd_start_track, audio_cd_start_track_time, embedded, hide_at_showing, play_loop_mode, play_mode, volume, volume_value, base64_data, play_across_slides, rewind_audio, fade_in_duration, fade_out_duration, trim_from_start, trim_from_end, picture_fill_format].hash
|
252
302
|
end
|
253
303
|
end
|
254
304
|
end
|
@@ -0,0 +1,116 @@
|
|
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
|
+
# Represents list of Links to Paragraphs resources
|
27
|
+
class CaptionTrack < ResourceBase
|
28
|
+
# Caption ID.
|
29
|
+
attr_accessor :caption_id
|
30
|
+
|
31
|
+
# Label.
|
32
|
+
attr_accessor :label
|
33
|
+
|
34
|
+
# Caption track data as string.
|
35
|
+
attr_accessor :data_as_string
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
super.merge({
|
40
|
+
:'caption_id' => :'CaptionId',
|
41
|
+
:'label' => :'Label',
|
42
|
+
:'data_as_string' => :'DataAsString',
|
43
|
+
})
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute type mapping.
|
47
|
+
def self.swagger_types
|
48
|
+
super.merge({
|
49
|
+
:'caption_id' => :'String',
|
50
|
+
:'label' => :'String',
|
51
|
+
:'data_as_string' => :'String',
|
52
|
+
})
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
super
|
59
|
+
|
60
|
+
if attributes.has_key?(:'CaptionId')
|
61
|
+
self.caption_id = attributes[:'CaptionId']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.has_key?(:'Label')
|
65
|
+
self.label = attributes[:'Label']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'DataAsString')
|
69
|
+
self.data_as_string = attributes[:'DataAsString']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = super
|
77
|
+
if @caption_id.nil?
|
78
|
+
invalid_properties.push('invalid value for "caption_id", caption_id cannot be nil.')
|
79
|
+
end
|
80
|
+
|
81
|
+
invalid_properties
|
82
|
+
end
|
83
|
+
|
84
|
+
# Check to see if the all the properties in the model are valid
|
85
|
+
# @return true if the model is valid
|
86
|
+
def valid?
|
87
|
+
return false if !super
|
88
|
+
return false if @caption_id.nil?
|
89
|
+
true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] Object to be compared
|
94
|
+
def ==(o)
|
95
|
+
return true if self.equal?(o)
|
96
|
+
self.class == o.class &&
|
97
|
+
self_uri == o.self_uri &&
|
98
|
+
alternate_links == o.alternate_links &&
|
99
|
+
caption_id == o.caption_id &&
|
100
|
+
label == o.label &&
|
101
|
+
data_as_string == o.data_as_string
|
102
|
+
end
|
103
|
+
|
104
|
+
# @see the `==` method
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def eql?(o)
|
107
|
+
self == o
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Fixnum] Hash code
|
112
|
+
def hash
|
113
|
+
[self_uri, alternate_links, caption_id, label, data_as_string].hash
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
@@ -0,0 +1,93 @@
|
|
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
|
+
# Represents list of Links to Paragraphs resources
|
27
|
+
class CaptionTracks < ResourceBase
|
28
|
+
# List of caption tracks.
|
29
|
+
attr_accessor :items
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
super.merge({
|
34
|
+
:'items' => :'Items',
|
35
|
+
})
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
super.merge({
|
41
|
+
:'items' => :'Array<CaptionTrack>',
|
42
|
+
})
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
super
|
49
|
+
|
50
|
+
if attributes.has_key?(:'Items')
|
51
|
+
if (value = attributes[:'Items']).is_a?(Array)
|
52
|
+
self.items = value
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
+
# @return Array for valid properties with the reasons
|
59
|
+
def list_invalid_properties
|
60
|
+
invalid_properties = super
|
61
|
+
invalid_properties
|
62
|
+
end
|
63
|
+
|
64
|
+
# Check to see if the all the properties in the model are valid
|
65
|
+
# @return true if the model is valid
|
66
|
+
def valid?
|
67
|
+
return false if !super
|
68
|
+
true
|
69
|
+
end
|
70
|
+
|
71
|
+
# Checks equality by comparing each attribute.
|
72
|
+
# @param [Object] Object to be compared
|
73
|
+
def ==(o)
|
74
|
+
return true if self.equal?(o)
|
75
|
+
self.class == o.class &&
|
76
|
+
self_uri == o.self_uri &&
|
77
|
+
alternate_links == o.alternate_links &&
|
78
|
+
items == o.items
|
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
|
+
[self_uri, alternate_links, items].hash
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -40,6 +40,9 @@ module AsposeSlidesCloud
|
|
40
40
|
# Gets of sets list of font substitution rules.
|
41
41
|
attr_accessor :font_subst_rules
|
42
42
|
|
43
|
+
# True to skip hyperlinks with javascript calls when saving the presentation.
|
44
|
+
attr_accessor :skip_java_script_links
|
45
|
+
|
43
46
|
attr_accessor :format
|
44
47
|
|
45
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -50,6 +53,7 @@ module AsposeSlidesCloud
|
|
50
53
|
:'gradient_style' => :'GradientStyle',
|
51
54
|
:'font_fallback_rules' => :'FontFallbackRules',
|
52
55
|
:'font_subst_rules' => :'FontSubstRules',
|
56
|
+
:'skip_java_script_links' => :'SkipJavaScriptLinks',
|
53
57
|
:'format' => :'Format',
|
54
58
|
}
|
55
59
|
end
|
@@ -62,6 +66,7 @@ module AsposeSlidesCloud
|
|
62
66
|
:'gradient_style' => :'String',
|
63
67
|
:'font_fallback_rules' => :'Array<FontFallbackRule>',
|
64
68
|
:'font_subst_rules' => :'Array<FontSubstRule>',
|
69
|
+
:'skip_java_script_links' => :'BOOLEAN',
|
65
70
|
:'format' => :'String',
|
66
71
|
}
|
67
72
|
end
|
@@ -98,6 +103,10 @@ module AsposeSlidesCloud
|
|
98
103
|
end
|
99
104
|
end
|
100
105
|
|
106
|
+
if attributes.has_key?(:'SkipJavaScriptLinks')
|
107
|
+
self.skip_java_script_links = attributes[:'SkipJavaScriptLinks']
|
108
|
+
end
|
109
|
+
|
101
110
|
if attributes.has_key?(:'Format')
|
102
111
|
self.format = attributes[:'Format']
|
103
112
|
end
|
@@ -138,6 +147,7 @@ module AsposeSlidesCloud
|
|
138
147
|
gradient_style == o.gradient_style &&
|
139
148
|
font_fallback_rules == o.font_fallback_rules &&
|
140
149
|
font_subst_rules == o.font_subst_rules &&
|
150
|
+
skip_java_script_links == o.skip_java_script_links &&
|
141
151
|
format == o.format
|
142
152
|
end
|
143
153
|
|
@@ -150,7 +160,7 @@ module AsposeSlidesCloud
|
|
150
160
|
# Calculates hash code according to all attributes.
|
151
161
|
# @return [Fixnum] Hash code
|
152
162
|
def hash
|
153
|
-
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format].hash
|
163
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format].hash
|
154
164
|
end
|
155
165
|
end
|
156
166
|
end
|
@@ -95,6 +95,7 @@ module AsposeSlidesCloud
|
|
95
95
|
gradient_style == o.gradient_style &&
|
96
96
|
font_fallback_rules == o.font_fallback_rules &&
|
97
97
|
font_subst_rules == o.font_subst_rules &&
|
98
|
+
skip_java_script_links == o.skip_java_script_links &&
|
98
99
|
format == o.format &&
|
99
100
|
height == o.height &&
|
100
101
|
width == o.width &&
|
@@ -112,7 +113,7 @@ module AsposeSlidesCloud
|
|
112
113
|
# Calculates hash code according to all attributes.
|
113
114
|
# @return [Fixnum] Hash code
|
114
115
|
def hash
|
115
|
-
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
|
116
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
|
116
117
|
end
|
117
118
|
end
|
118
119
|
end
|
@@ -35,19 +35,23 @@ module AsposeSlidesCloud
|
|
35
35
|
attr_accessor :embed_images
|
36
36
|
|
37
37
|
# Slides layouting options
|
38
|
-
attr_accessor :
|
38
|
+
attr_accessor :slides_layout_options
|
39
39
|
|
40
40
|
# Path to custom templates
|
41
41
|
attr_accessor :templates_path
|
42
42
|
|
43
|
+
# true to disable ligatures in the rendered output.
|
44
|
+
attr_accessor :disable_font_ligatures
|
45
|
+
|
43
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
47
|
def self.attribute_map
|
45
48
|
super.merge({
|
46
49
|
:'animate_transitions' => :'AnimateTransitions',
|
47
50
|
:'animate_shapes' => :'AnimateShapes',
|
48
51
|
:'embed_images' => :'EmbedImages',
|
49
|
-
:'
|
52
|
+
:'slides_layout_options' => :'SlidesLayoutOptions',
|
50
53
|
:'templates_path' => :'TemplatesPath',
|
54
|
+
:'disable_font_ligatures' => :'DisableFontLigatures',
|
51
55
|
})
|
52
56
|
end
|
53
57
|
|
@@ -57,8 +61,9 @@ module AsposeSlidesCloud
|
|
57
61
|
:'animate_transitions' => :'BOOLEAN',
|
58
62
|
:'animate_shapes' => :'BOOLEAN',
|
59
63
|
:'embed_images' => :'BOOLEAN',
|
60
|
-
:'
|
64
|
+
:'slides_layout_options' => :'SlidesLayoutOptions',
|
61
65
|
:'templates_path' => :'String',
|
66
|
+
:'disable_font_ligatures' => :'BOOLEAN',
|
62
67
|
})
|
63
68
|
end
|
64
69
|
|
@@ -79,13 +84,17 @@ module AsposeSlidesCloud
|
|
79
84
|
self.embed_images = attributes[:'EmbedImages']
|
80
85
|
end
|
81
86
|
|
82
|
-
if attributes.has_key?(:'
|
83
|
-
self.
|
87
|
+
if attributes.has_key?(:'SlidesLayoutOptions')
|
88
|
+
self.slides_layout_options = attributes[:'SlidesLayoutOptions']
|
84
89
|
end
|
85
90
|
|
86
91
|
if attributes.has_key?(:'TemplatesPath')
|
87
92
|
self.templates_path = attributes[:'TemplatesPath']
|
88
93
|
end
|
94
|
+
|
95
|
+
if attributes.has_key?(:'DisableFontLigatures')
|
96
|
+
self.disable_font_ligatures = attributes[:'DisableFontLigatures']
|
97
|
+
end
|
89
98
|
self.format = 'html5'
|
90
99
|
end
|
91
100
|
|
@@ -113,12 +122,14 @@ module AsposeSlidesCloud
|
|
113
122
|
gradient_style == o.gradient_style &&
|
114
123
|
font_fallback_rules == o.font_fallback_rules &&
|
115
124
|
font_subst_rules == o.font_subst_rules &&
|
125
|
+
skip_java_script_links == o.skip_java_script_links &&
|
116
126
|
format == o.format &&
|
117
127
|
animate_transitions == o.animate_transitions &&
|
118
128
|
animate_shapes == o.animate_shapes &&
|
119
129
|
embed_images == o.embed_images &&
|
120
|
-
|
121
|
-
templates_path == o.templates_path
|
130
|
+
slides_layout_options == o.slides_layout_options &&
|
131
|
+
templates_path == o.templates_path &&
|
132
|
+
disable_font_ligatures == o.disable_font_ligatures
|
122
133
|
end
|
123
134
|
|
124
135
|
# @see the `==` method
|
@@ -130,7 +141,7 @@ module AsposeSlidesCloud
|
|
130
141
|
# Calculates hash code according to all attributes.
|
131
142
|
# @return [Fixnum] Hash code
|
132
143
|
def hash
|
133
|
-
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes, embed_images,
|
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
|
134
145
|
end
|
135
146
|
end
|
136
147
|
end
|
@@ -49,6 +49,9 @@ module AsposeSlidesCloud
|
|
49
49
|
# Slides layouting options
|
50
50
|
attr_accessor :slides_layout_options
|
51
51
|
|
52
|
+
# true to disable ligatures in the rendered output.
|
53
|
+
attr_accessor :disable_font_ligatures
|
54
|
+
|
52
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
56
|
def self.attribute_map
|
54
57
|
super.merge({
|
@@ -60,6 +63,7 @@ module AsposeSlidesCloud
|
|
60
63
|
:'pictures_compression' => :'PicturesCompression',
|
61
64
|
:'delete_pictures_cropped_areas' => :'DeletePicturesCroppedAreas',
|
62
65
|
:'slides_layout_options' => :'SlidesLayoutOptions',
|
66
|
+
:'disable_font_ligatures' => :'DisableFontLigatures',
|
63
67
|
})
|
64
68
|
end
|
65
69
|
|
@@ -74,6 +78,7 @@ module AsposeSlidesCloud
|
|
74
78
|
:'pictures_compression' => :'String',
|
75
79
|
:'delete_pictures_cropped_areas' => :'BOOLEAN',
|
76
80
|
:'slides_layout_options' => :'SlidesLayoutOptions',
|
81
|
+
:'disable_font_ligatures' => :'BOOLEAN',
|
77
82
|
})
|
78
83
|
end
|
79
84
|
|
@@ -113,6 +118,10 @@ module AsposeSlidesCloud
|
|
113
118
|
if attributes.has_key?(:'SlidesLayoutOptions')
|
114
119
|
self.slides_layout_options = attributes[:'SlidesLayoutOptions']
|
115
120
|
end
|
121
|
+
|
122
|
+
if attributes.has_key?(:'DisableFontLigatures')
|
123
|
+
self.disable_font_ligatures = attributes[:'DisableFontLigatures']
|
124
|
+
end
|
116
125
|
self.format = 'html'
|
117
126
|
end
|
118
127
|
|
@@ -152,6 +161,7 @@ module AsposeSlidesCloud
|
|
152
161
|
gradient_style == o.gradient_style &&
|
153
162
|
font_fallback_rules == o.font_fallback_rules &&
|
154
163
|
font_subst_rules == o.font_subst_rules &&
|
164
|
+
skip_java_script_links == o.skip_java_script_links &&
|
155
165
|
format == o.format &&
|
156
166
|
save_as_zip == o.save_as_zip &&
|
157
167
|
sub_directory_name == o.sub_directory_name &&
|
@@ -160,7 +170,8 @@ module AsposeSlidesCloud
|
|
160
170
|
jpeg_quality == o.jpeg_quality &&
|
161
171
|
pictures_compression == o.pictures_compression &&
|
162
172
|
delete_pictures_cropped_areas == o.delete_pictures_cropped_areas &&
|
163
|
-
slides_layout_options == o.slides_layout_options
|
173
|
+
slides_layout_options == o.slides_layout_options &&
|
174
|
+
disable_font_ligatures == o.disable_font_ligatures
|
164
175
|
end
|
165
176
|
|
166
177
|
# @see the `==` method
|
@@ -172,7 +183,7 @@ module AsposeSlidesCloud
|
|
172
183
|
# Calculates hash code according to all attributes.
|
173
184
|
# @return [Fixnum] Hash code
|
174
185
|
def hash
|
175
|
-
[default_regular_font, delete_embedded_binary_objects, 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
|
186
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, slides_layout_options, disable_font_ligatures].hash
|
176
187
|
end
|
177
188
|
end
|
178
189
|
end
|
@@ -86,6 +86,7 @@ module AsposeSlidesCloud
|
|
86
86
|
gradient_style == o.gradient_style &&
|
87
87
|
font_fallback_rules == o.font_fallback_rules &&
|
88
88
|
font_subst_rules == o.font_subst_rules &&
|
89
|
+
skip_java_script_links == o.skip_java_script_links &&
|
89
90
|
format == o.format &&
|
90
91
|
height == o.height &&
|
91
92
|
width == o.width &&
|
@@ -102,7 +103,7 @@ module AsposeSlidesCloud
|
|
102
103
|
# Calculates hash code according to all attributes.
|
103
104
|
# @return [Fixnum] Hash code
|
104
105
|
def hash
|
105
|
-
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, show_hidden_slides, slides_layout_options].hash
|
106
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, height, width, show_hidden_slides, slides_layout_options].hash
|
106
107
|
end
|
107
108
|
end
|
108
109
|
end
|
@@ -85,6 +85,7 @@ module AsposeSlidesCloud
|
|
85
85
|
gradient_style == o.gradient_style &&
|
86
86
|
font_fallback_rules == o.font_fallback_rules &&
|
87
87
|
font_subst_rules == o.font_subst_rules &&
|
88
|
+
skip_java_script_links == o.skip_java_script_links &&
|
88
89
|
format == o.format &&
|
89
90
|
height == o.height &&
|
90
91
|
width == o.width
|
@@ -99,7 +100,7 @@ module AsposeSlidesCloud
|
|
99
100
|
# Calculates hash code according to all attributes.
|
100
101
|
# @return [Fixnum] Hash code
|
101
102
|
def hash
|
102
|
-
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, height, width].hash
|
103
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, height, width].hash
|
103
104
|
end
|
104
105
|
end
|
105
106
|
end
|