aspose_slides_cloud 24.9.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 -61
- data/TestData/video.pptx +0 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +448 -123
- 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/common_slide_view_properties.rb +14 -2
- data/lib/aspose_slides_cloud/models/drawing_guide.rb +123 -0
- data/lib/aspose_slides_cloud/models/effect.rb +4 -4
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +21 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +3 -1
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/html_export_options.rb +14 -2
- data/lib/aspose_slides_cloud/models/image_export_options.rb +3 -1
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +3 -1
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +46 -2
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +14 -2
- data/lib/aspose_slides_cloud/models/picture_fill.rb +105 -1
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +14 -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.rb +4 -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 +14 -2
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +10 -72
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +3 -1
- data/lib/aspose_slides_cloud/models/video_export_options.rb +3 -1
- data/lib/aspose_slides_cloud/models/view_properties.rb +12 -2
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +3 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +3 -1
- data/lib/aspose_slides_cloud/type_registry.rb +5 -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 +1304 -204
- data/spec/use_cases/image_spec.rb +15 -4
- data/spec/use_cases/merge_spec.rb +1 -1
- data/testRules.json +10 -1
- metadata +6 -2
@@ -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
|
+
# True to delete delete all embedded binary objects.
|
32
|
+
attr_accessor :delete_embedded_binary_objects
|
33
|
+
|
31
34
|
# Default regular font for rendering the presentation.
|
32
35
|
attr_accessor :gradient_style
|
33
36
|
|
@@ -37,15 +40,20 @@ module AsposeSlidesCloud
|
|
37
40
|
# Gets of sets list of font substitution rules.
|
38
41
|
attr_accessor :font_subst_rules
|
39
42
|
|
43
|
+
# True to skip hyperlinks with javascript calls when saving the presentation.
|
44
|
+
attr_accessor :skip_java_script_links
|
45
|
+
|
40
46
|
attr_accessor :format
|
41
47
|
|
42
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
49
|
def self.attribute_map
|
44
50
|
{
|
45
51
|
:'default_regular_font' => :'DefaultRegularFont',
|
52
|
+
:'delete_embedded_binary_objects' => :'DeleteEmbeddedBinaryObjects',
|
46
53
|
:'gradient_style' => :'GradientStyle',
|
47
54
|
:'font_fallback_rules' => :'FontFallbackRules',
|
48
55
|
:'font_subst_rules' => :'FontSubstRules',
|
56
|
+
:'skip_java_script_links' => :'SkipJavaScriptLinks',
|
49
57
|
:'format' => :'Format',
|
50
58
|
}
|
51
59
|
end
|
@@ -54,9 +62,11 @@ module AsposeSlidesCloud
|
|
54
62
|
def self.swagger_types
|
55
63
|
{
|
56
64
|
:'default_regular_font' => :'String',
|
65
|
+
:'delete_embedded_binary_objects' => :'BOOLEAN',
|
57
66
|
:'gradient_style' => :'String',
|
58
67
|
:'font_fallback_rules' => :'Array<FontFallbackRule>',
|
59
68
|
:'font_subst_rules' => :'Array<FontSubstRule>',
|
69
|
+
:'skip_java_script_links' => :'BOOLEAN',
|
60
70
|
:'format' => :'String',
|
61
71
|
}
|
62
72
|
end
|
@@ -73,6 +83,10 @@ module AsposeSlidesCloud
|
|
73
83
|
self.default_regular_font = attributes[:'DefaultRegularFont']
|
74
84
|
end
|
75
85
|
|
86
|
+
if attributes.has_key?(:'DeleteEmbeddedBinaryObjects')
|
87
|
+
self.delete_embedded_binary_objects = attributes[:'DeleteEmbeddedBinaryObjects']
|
88
|
+
end
|
89
|
+
|
76
90
|
if attributes.has_key?(:'GradientStyle')
|
77
91
|
self.gradient_style = attributes[:'GradientStyle']
|
78
92
|
end
|
@@ -89,6 +103,10 @@ module AsposeSlidesCloud
|
|
89
103
|
end
|
90
104
|
end
|
91
105
|
|
106
|
+
if attributes.has_key?(:'SkipJavaScriptLinks')
|
107
|
+
self.skip_java_script_links = attributes[:'SkipJavaScriptLinks']
|
108
|
+
end
|
109
|
+
|
92
110
|
if attributes.has_key?(:'Format')
|
93
111
|
self.format = attributes[:'Format']
|
94
112
|
end
|
@@ -125,9 +143,11 @@ module AsposeSlidesCloud
|
|
125
143
|
return true if self.equal?(o)
|
126
144
|
self.class == o.class &&
|
127
145
|
default_regular_font == o.default_regular_font &&
|
146
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
128
147
|
gradient_style == o.gradient_style &&
|
129
148
|
font_fallback_rules == o.font_fallback_rules &&
|
130
149
|
font_subst_rules == o.font_subst_rules &&
|
150
|
+
skip_java_script_links == o.skip_java_script_links &&
|
131
151
|
format == o.format
|
132
152
|
end
|
133
153
|
|
@@ -140,7 +160,7 @@ module AsposeSlidesCloud
|
|
140
160
|
# Calculates hash code according to all attributes.
|
141
161
|
# @return [Fixnum] Hash code
|
142
162
|
def hash
|
143
|
-
[default_regular_font, 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
|
144
164
|
end
|
145
165
|
end
|
146
166
|
end
|
@@ -91,9 +91,11 @@ 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
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
94
95
|
gradient_style == o.gradient_style &&
|
95
96
|
font_fallback_rules == o.font_fallback_rules &&
|
96
97
|
font_subst_rules == o.font_subst_rules &&
|
98
|
+
skip_java_script_links == o.skip_java_script_links &&
|
97
99
|
format == o.format &&
|
98
100
|
height == o.height &&
|
99
101
|
width == o.width &&
|
@@ -111,7 +113,7 @@ module AsposeSlidesCloud
|
|
111
113
|
# Calculates hash code according to all attributes.
|
112
114
|
# @return [Fixnum] Hash code
|
113
115
|
def hash
|
114
|
-
[default_regular_font, 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
|
115
117
|
end
|
116
118
|
end
|
117
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
|
|
@@ -109,15 +118,18 @@ module AsposeSlidesCloud
|
|
109
118
|
return true if self.equal?(o)
|
110
119
|
self.class == o.class &&
|
111
120
|
default_regular_font == o.default_regular_font &&
|
121
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
112
122
|
gradient_style == o.gradient_style &&
|
113
123
|
font_fallback_rules == o.font_fallback_rules &&
|
114
124
|
font_subst_rules == o.font_subst_rules &&
|
125
|
+
skip_java_script_links == o.skip_java_script_links &&
|
115
126
|
format == o.format &&
|
116
127
|
animate_transitions == o.animate_transitions &&
|
117
128
|
animate_shapes == o.animate_shapes &&
|
118
129
|
embed_images == o.embed_images &&
|
119
|
-
|
120
|
-
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
|
121
133
|
end
|
122
134
|
|
123
135
|
# @see the `==` method
|
@@ -129,7 +141,7 @@ module AsposeSlidesCloud
|
|
129
141
|
# Calculates hash code according to all attributes.
|
130
142
|
# @return [Fixnum] Hash code
|
131
143
|
def hash
|
132
|
-
[default_regular_font, 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
|
133
145
|
end
|
134
146
|
end
|
135
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
|
|
@@ -148,9 +157,11 @@ module AsposeSlidesCloud
|
|
148
157
|
return true if self.equal?(o)
|
149
158
|
self.class == o.class &&
|
150
159
|
default_regular_font == o.default_regular_font &&
|
160
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
151
161
|
gradient_style == o.gradient_style &&
|
152
162
|
font_fallback_rules == o.font_fallback_rules &&
|
153
163
|
font_subst_rules == o.font_subst_rules &&
|
164
|
+
skip_java_script_links == o.skip_java_script_links &&
|
154
165
|
format == o.format &&
|
155
166
|
save_as_zip == o.save_as_zip &&
|
156
167
|
sub_directory_name == o.sub_directory_name &&
|
@@ -159,7 +170,8 @@ module AsposeSlidesCloud
|
|
159
170
|
jpeg_quality == o.jpeg_quality &&
|
160
171
|
pictures_compression == o.pictures_compression &&
|
161
172
|
delete_pictures_cropped_areas == o.delete_pictures_cropped_areas &&
|
162
|
-
slides_layout_options == o.slides_layout_options
|
173
|
+
slides_layout_options == o.slides_layout_options &&
|
174
|
+
disable_font_ligatures == o.disable_font_ligatures
|
163
175
|
end
|
164
176
|
|
165
177
|
# @see the `==` method
|
@@ -171,7 +183,7 @@ module AsposeSlidesCloud
|
|
171
183
|
# Calculates hash code according to all attributes.
|
172
184
|
# @return [Fixnum] Hash code
|
173
185
|
def 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
|
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
|
175
187
|
end
|
176
188
|
end
|
177
189
|
end
|
@@ -82,9 +82,11 @@ 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
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
85
86
|
gradient_style == o.gradient_style &&
|
86
87
|
font_fallback_rules == o.font_fallback_rules &&
|
87
88
|
font_subst_rules == o.font_subst_rules &&
|
89
|
+
skip_java_script_links == o.skip_java_script_links &&
|
88
90
|
format == o.format &&
|
89
91
|
height == o.height &&
|
90
92
|
width == o.width &&
|
@@ -101,7 +103,7 @@ module AsposeSlidesCloud
|
|
101
103
|
# Calculates hash code according to all attributes.
|
102
104
|
# @return [Fixnum] Hash code
|
103
105
|
def hash
|
104
|
-
[default_regular_font, 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
|
105
107
|
end
|
106
108
|
end
|
107
109
|
end
|
@@ -81,9 +81,11 @@ 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
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
84
85
|
gradient_style == o.gradient_style &&
|
85
86
|
font_fallback_rules == o.font_fallback_rules &&
|
86
87
|
font_subst_rules == o.font_subst_rules &&
|
88
|
+
skip_java_script_links == o.skip_java_script_links &&
|
87
89
|
format == o.format &&
|
88
90
|
height == o.height &&
|
89
91
|
width == o.width
|
@@ -98,7 +100,7 @@ module AsposeSlidesCloud
|
|
98
100
|
# Calculates hash code according to all attributes.
|
99
101
|
# @return [Fixnum] Hash code
|
100
102
|
def hash
|
101
|
-
[default_regular_font, 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
|
102
104
|
end
|
103
105
|
end
|
104
106
|
end
|
@@ -46,6 +46,15 @@ module AsposeSlidesCloud
|
|
46
46
|
# Specifies whether the generated document should include hidden slides. Default is false.
|
47
47
|
attr_accessor :show_hidden_slides
|
48
48
|
|
49
|
+
# true to remove empty or whitespace-only lines from the final Markdown output. Default is false.
|
50
|
+
attr_accessor :remove_empty_lines
|
51
|
+
|
52
|
+
# Specifies how repeated space characters are preserved to maintain visual alignment.
|
53
|
+
attr_accessor :handle_repeated_spaces
|
54
|
+
|
55
|
+
# The format of slide number headers.
|
56
|
+
attr_accessor :slide_number_format
|
57
|
+
|
49
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
59
|
def self.attribute_map
|
51
60
|
super.merge({
|
@@ -56,6 +65,9 @@ module AsposeSlidesCloud
|
|
56
65
|
:'show_slide_number' => :'ShowSlideNumber',
|
57
66
|
:'show_comments' => :'ShowComments',
|
58
67
|
:'show_hidden_slides' => :'ShowHiddenSlides',
|
68
|
+
:'remove_empty_lines' => :'RemoveEmptyLines',
|
69
|
+
:'handle_repeated_spaces' => :'HandleRepeatedSpaces',
|
70
|
+
:'slide_number_format' => :'SlideNumberFormat',
|
59
71
|
})
|
60
72
|
end
|
61
73
|
|
@@ -69,6 +81,9 @@ module AsposeSlidesCloud
|
|
69
81
|
:'show_slide_number' => :'BOOLEAN',
|
70
82
|
:'show_comments' => :'BOOLEAN',
|
71
83
|
:'show_hidden_slides' => :'BOOLEAN',
|
84
|
+
:'remove_empty_lines' => :'BOOLEAN',
|
85
|
+
:'handle_repeated_spaces' => :'String',
|
86
|
+
:'slide_number_format' => :'String',
|
72
87
|
})
|
73
88
|
end
|
74
89
|
|
@@ -104,6 +119,18 @@ module AsposeSlidesCloud
|
|
104
119
|
if attributes.has_key?(:'ShowHiddenSlides')
|
105
120
|
self.show_hidden_slides = attributes[:'ShowHiddenSlides']
|
106
121
|
end
|
122
|
+
|
123
|
+
if attributes.has_key?(:'RemoveEmptyLines')
|
124
|
+
self.remove_empty_lines = attributes[:'RemoveEmptyLines']
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.has_key?(:'HandleRepeatedSpaces')
|
128
|
+
self.handle_repeated_spaces = attributes[:'HandleRepeatedSpaces']
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.has_key?(:'SlideNumberFormat')
|
132
|
+
self.slide_number_format = attributes[:'SlideNumberFormat']
|
133
|
+
end
|
107
134
|
self.format = 'md'
|
108
135
|
end
|
109
136
|
|
@@ -124,6 +151,8 @@ module AsposeSlidesCloud
|
|
124
151
|
return false unless flavor_validator.valid?(@flavor)
|
125
152
|
new_line_type_validator = EnumAttributeValidator.new('String', ['Windows', 'Unix', 'Mac'])
|
126
153
|
return false unless new_line_type_validator.valid?(@new_line_type)
|
154
|
+
handle_repeated_spaces_validator = EnumAttributeValidator.new('String', ['None', 'AlternateSpacesToNbsp', 'MultipleSpacesToNbsp'])
|
155
|
+
return false unless handle_repeated_spaces_validator.valid?(@handle_repeated_spaces)
|
127
156
|
true
|
128
157
|
end
|
129
158
|
|
@@ -157,15 +186,27 @@ module AsposeSlidesCloud
|
|
157
186
|
@new_line_type = new_line_type
|
158
187
|
end
|
159
188
|
|
189
|
+
# Custom attribute writer method checking allowed values (enum).
|
190
|
+
# @param [Object] handle_repeated_spaces Object to be assigned
|
191
|
+
def handle_repeated_spaces=(handle_repeated_spaces)
|
192
|
+
validator = EnumAttributeValidator.new('String', ['None', 'AlternateSpacesToNbsp', 'MultipleSpacesToNbsp'])
|
193
|
+
unless validator.valid?(handle_repeated_spaces)
|
194
|
+
fail ArgumentError, 'invalid value for "handle_repeated_spaces", must be one of #{validator.allowable_values}.'
|
195
|
+
end
|
196
|
+
@handle_repeated_spaces = handle_repeated_spaces
|
197
|
+
end
|
198
|
+
|
160
199
|
# Checks equality by comparing each attribute.
|
161
200
|
# @param [Object] Object to be compared
|
162
201
|
def ==(o)
|
163
202
|
return true if self.equal?(o)
|
164
203
|
self.class == o.class &&
|
165
204
|
default_regular_font == o.default_regular_font &&
|
205
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
166
206
|
gradient_style == o.gradient_style &&
|
167
207
|
font_fallback_rules == o.font_fallback_rules &&
|
168
208
|
font_subst_rules == o.font_subst_rules &&
|
209
|
+
skip_java_script_links == o.skip_java_script_links &&
|
169
210
|
format == o.format &&
|
170
211
|
export_type == o.export_type &&
|
171
212
|
flavor == o.flavor &&
|
@@ -173,7 +214,10 @@ module AsposeSlidesCloud
|
|
173
214
|
images_save_folder_name == o.images_save_folder_name &&
|
174
215
|
show_slide_number == o.show_slide_number &&
|
175
216
|
show_comments == o.show_comments &&
|
176
|
-
show_hidden_slides == o.show_hidden_slides
|
217
|
+
show_hidden_slides == o.show_hidden_slides &&
|
218
|
+
remove_empty_lines == o.remove_empty_lines &&
|
219
|
+
handle_repeated_spaces == o.handle_repeated_spaces &&
|
220
|
+
slide_number_format == o.slide_number_format
|
177
221
|
end
|
178
222
|
|
179
223
|
# @see the `==` method
|
@@ -185,7 +229,7 @@ module AsposeSlidesCloud
|
|
185
229
|
# Calculates hash code according to all attributes.
|
186
230
|
# @return [Fixnum] Hash code
|
187
231
|
def 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
|
232
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, export_type, flavor, new_line_type, images_save_folder_name, show_slide_number, show_comments, show_hidden_slides, remove_empty_lines, handle_repeated_spaces, slide_number_format].hash
|
189
233
|
end
|
190
234
|
end
|
191
235
|
end
|
@@ -79,6 +79,9 @@ module AsposeSlidesCloud
|
|
79
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
80
|
attr_accessor :rasterize_unsupported_font_styles
|
81
81
|
|
82
|
+
# True to convert all OLE data from the presentation to embedded files in the resulting PDF.
|
83
|
+
attr_accessor :include_ole_data
|
84
|
+
|
82
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
86
|
def self.attribute_map
|
84
87
|
super.merge({
|
@@ -100,6 +103,7 @@ module AsposeSlidesCloud
|
|
100
103
|
:'hide_ink' => :'HideInk',
|
101
104
|
:'interpret_mask_op_as_opacity' => :'InterpretMaskOpAsOpacity',
|
102
105
|
:'rasterize_unsupported_font_styles' => :'RasterizeUnsupportedFontStyles',
|
106
|
+
:'include_ole_data' => :'IncludeOleData',
|
103
107
|
})
|
104
108
|
end
|
105
109
|
|
@@ -124,6 +128,7 @@ module AsposeSlidesCloud
|
|
124
128
|
:'hide_ink' => :'BOOLEAN',
|
125
129
|
:'interpret_mask_op_as_opacity' => :'BOOLEAN',
|
126
130
|
:'rasterize_unsupported_font_styles' => :'BOOLEAN',
|
131
|
+
:'include_ole_data' => :'BOOLEAN',
|
127
132
|
})
|
128
133
|
end
|
129
134
|
|
@@ -205,6 +210,10 @@ module AsposeSlidesCloud
|
|
205
210
|
if attributes.has_key?(:'RasterizeUnsupportedFontStyles')
|
206
211
|
self.rasterize_unsupported_font_styles = attributes[:'RasterizeUnsupportedFontStyles']
|
207
212
|
end
|
213
|
+
|
214
|
+
if attributes.has_key?(:'IncludeOleData')
|
215
|
+
self.include_ole_data = attributes[:'IncludeOleData']
|
216
|
+
end
|
208
217
|
self.format = 'pdf'
|
209
218
|
end
|
210
219
|
|
@@ -252,9 +261,11 @@ module AsposeSlidesCloud
|
|
252
261
|
return true if self.equal?(o)
|
253
262
|
self.class == o.class &&
|
254
263
|
default_regular_font == o.default_regular_font &&
|
264
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
255
265
|
gradient_style == o.gradient_style &&
|
256
266
|
font_fallback_rules == o.font_fallback_rules &&
|
257
267
|
font_subst_rules == o.font_subst_rules &&
|
268
|
+
skip_java_script_links == o.skip_java_script_links &&
|
258
269
|
format == o.format &&
|
259
270
|
text_compression == o.text_compression &&
|
260
271
|
embed_full_fonts == o.embed_full_fonts &&
|
@@ -273,7 +284,8 @@ module AsposeSlidesCloud
|
|
273
284
|
access_permissions == o.access_permissions &&
|
274
285
|
hide_ink == o.hide_ink &&
|
275
286
|
interpret_mask_op_as_opacity == o.interpret_mask_op_as_opacity &&
|
276
|
-
rasterize_unsupported_font_styles == o.rasterize_unsupported_font_styles
|
287
|
+
rasterize_unsupported_font_styles == o.rasterize_unsupported_font_styles &&
|
288
|
+
include_ole_data == o.include_ole_data
|
277
289
|
end
|
278
290
|
|
279
291
|
# @see the `==` method
|
@@ -285,7 +297,7 @@ module AsposeSlidesCloud
|
|
285
297
|
# Calculates hash code according to all attributes.
|
286
298
|
# @return [Fixnum] Hash code
|
287
299
|
def 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
|
300
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, 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, include_ole_data].hash
|
289
301
|
end
|
290
302
|
end
|
291
303
|
end
|
@@ -40,6 +40,24 @@ module AsposeSlidesCloud
|
|
40
40
|
# Picture resolution.
|
41
41
|
attr_accessor :dpi
|
42
42
|
|
43
|
+
# The horizontal offset of the texture from the shape's origin in points. A positive value moves the texture to the right, while a negative value moves it to the left.
|
44
|
+
attr_accessor :tile_offset_x
|
45
|
+
|
46
|
+
# The vertical offset of the texture from the shape's origin in points. A positive value moves the texture down, while a negative value moves it up.
|
47
|
+
attr_accessor :tile_offset_y
|
48
|
+
|
49
|
+
# The horizontal scale for the texture fill as a percentage.
|
50
|
+
attr_accessor :tile_scale_x
|
51
|
+
|
52
|
+
# The vertical scale for the texture fill as a percentage.
|
53
|
+
attr_accessor :tile_scale_y
|
54
|
+
|
55
|
+
# The way texture is aligned within the shape. This setting controls the starting point of the texture pattern and how it repeats across the shape.
|
56
|
+
attr_accessor :tile_alignment
|
57
|
+
|
58
|
+
# Flips the texture tile around its horizontal, vertical or both axis.
|
59
|
+
attr_accessor :tile_flip
|
60
|
+
|
43
61
|
# Internal image link.
|
44
62
|
attr_accessor :image
|
45
63
|
|
@@ -49,6 +67,12 @@ module AsposeSlidesCloud
|
|
49
67
|
# SVG image data.
|
50
68
|
attr_accessor :svg_data
|
51
69
|
|
70
|
+
# true to delete picture cropped areas on save.
|
71
|
+
attr_accessor :delete_picture_cropped_areas
|
72
|
+
|
73
|
+
# true to compress the picture image with the specified resolution (in dpi) on save.
|
74
|
+
attr_accessor :resolution
|
75
|
+
|
52
76
|
# Fill mode.
|
53
77
|
attr_accessor :picture_fill_mode
|
54
78
|
|
@@ -63,9 +87,17 @@ module AsposeSlidesCloud
|
|
63
87
|
:'crop_right' => :'CropRight',
|
64
88
|
:'crop_top' => :'CropTop',
|
65
89
|
:'dpi' => :'Dpi',
|
90
|
+
:'tile_offset_x' => :'TileOffsetX',
|
91
|
+
:'tile_offset_y' => :'TileOffsetY',
|
92
|
+
:'tile_scale_x' => :'TileScaleX',
|
93
|
+
:'tile_scale_y' => :'TileScaleY',
|
94
|
+
:'tile_alignment' => :'TileAlignment',
|
95
|
+
:'tile_flip' => :'TileFlip',
|
66
96
|
:'image' => :'Image',
|
67
97
|
:'base64_data' => :'Base64Data',
|
68
98
|
:'svg_data' => :'SvgData',
|
99
|
+
:'delete_picture_cropped_areas' => :'DeletePictureCroppedAreas',
|
100
|
+
:'resolution' => :'Resolution',
|
69
101
|
:'picture_fill_mode' => :'PictureFillMode',
|
70
102
|
:'image_transform_list' => :'ImageTransformList',
|
71
103
|
})
|
@@ -79,9 +111,17 @@ module AsposeSlidesCloud
|
|
79
111
|
:'crop_right' => :'Float',
|
80
112
|
:'crop_top' => :'Float',
|
81
113
|
:'dpi' => :'Integer',
|
114
|
+
:'tile_offset_x' => :'Float',
|
115
|
+
:'tile_offset_y' => :'Float',
|
116
|
+
:'tile_scale_x' => :'Float',
|
117
|
+
:'tile_scale_y' => :'Float',
|
118
|
+
:'tile_alignment' => :'String',
|
119
|
+
:'tile_flip' => :'String',
|
82
120
|
:'image' => :'ResourceUri',
|
83
121
|
:'base64_data' => :'String',
|
84
122
|
:'svg_data' => :'String',
|
123
|
+
:'delete_picture_cropped_areas' => :'BOOLEAN',
|
124
|
+
:'resolution' => :'Float',
|
85
125
|
:'picture_fill_mode' => :'String',
|
86
126
|
:'image_transform_list' => :'Array<ImageTransformEffect>',
|
87
127
|
})
|
@@ -112,6 +152,30 @@ module AsposeSlidesCloud
|
|
112
152
|
self.dpi = attributes[:'Dpi']
|
113
153
|
end
|
114
154
|
|
155
|
+
if attributes.has_key?(:'TileOffsetX')
|
156
|
+
self.tile_offset_x = attributes[:'TileOffsetX']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'TileOffsetY')
|
160
|
+
self.tile_offset_y = attributes[:'TileOffsetY']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'TileScaleX')
|
164
|
+
self.tile_scale_x = attributes[:'TileScaleX']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.has_key?(:'TileScaleY')
|
168
|
+
self.tile_scale_y = attributes[:'TileScaleY']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.has_key?(:'TileAlignment')
|
172
|
+
self.tile_alignment = attributes[:'TileAlignment']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.has_key?(:'TileFlip')
|
176
|
+
self.tile_flip = attributes[:'TileFlip']
|
177
|
+
end
|
178
|
+
|
115
179
|
if attributes.has_key?(:'Image')
|
116
180
|
self.image = attributes[:'Image']
|
117
181
|
end
|
@@ -124,6 +188,14 @@ module AsposeSlidesCloud
|
|
124
188
|
self.svg_data = attributes[:'SvgData']
|
125
189
|
end
|
126
190
|
|
191
|
+
if attributes.has_key?(:'DeletePictureCroppedAreas')
|
192
|
+
self.delete_picture_cropped_areas = attributes[:'DeletePictureCroppedAreas']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'Resolution')
|
196
|
+
self.resolution = attributes[:'Resolution']
|
197
|
+
end
|
198
|
+
|
127
199
|
if attributes.has_key?(:'PictureFillMode')
|
128
200
|
self.picture_fill_mode = attributes[:'PictureFillMode']
|
129
201
|
end
|
@@ -176,12 +248,36 @@ module AsposeSlidesCloud
|
|
176
248
|
return false if @crop_right.nil?
|
177
249
|
return false if @crop_top.nil?
|
178
250
|
return false if @dpi.nil?
|
251
|
+
tile_alignment_validator = EnumAttributeValidator.new('String', ['TopLeft', 'Top', 'TopRight', 'Left', 'Center', 'Right', 'BottomLeft', 'Bottom', 'BottomRight', 'NotDefined'])
|
252
|
+
return false unless tile_alignment_validator.valid?(@tile_alignment)
|
253
|
+
tile_flip_validator = EnumAttributeValidator.new('String', ['NoFlip', 'FlipX', 'FlipY', 'FlipBoth', 'NotDefined'])
|
254
|
+
return false unless tile_flip_validator.valid?(@tile_flip)
|
179
255
|
return false if @picture_fill_mode.nil?
|
180
256
|
picture_fill_mode_validator = EnumAttributeValidator.new('String', ['Tile', 'Stretch'])
|
181
257
|
return false unless picture_fill_mode_validator.valid?(@picture_fill_mode)
|
182
258
|
true
|
183
259
|
end
|
184
260
|
|
261
|
+
# Custom attribute writer method checking allowed values (enum).
|
262
|
+
# @param [Object] tile_alignment Object to be assigned
|
263
|
+
def tile_alignment=(tile_alignment)
|
264
|
+
validator = EnumAttributeValidator.new('String', ['TopLeft', 'Top', 'TopRight', 'Left', 'Center', 'Right', 'BottomLeft', 'Bottom', 'BottomRight', 'NotDefined'])
|
265
|
+
unless validator.valid?(tile_alignment)
|
266
|
+
fail ArgumentError, 'invalid value for "tile_alignment", must be one of #{validator.allowable_values}.'
|
267
|
+
end
|
268
|
+
@tile_alignment = tile_alignment
|
269
|
+
end
|
270
|
+
|
271
|
+
# Custom attribute writer method checking allowed values (enum).
|
272
|
+
# @param [Object] tile_flip Object to be assigned
|
273
|
+
def tile_flip=(tile_flip)
|
274
|
+
validator = EnumAttributeValidator.new('String', ['NoFlip', 'FlipX', 'FlipY', 'FlipBoth', 'NotDefined'])
|
275
|
+
unless validator.valid?(tile_flip)
|
276
|
+
fail ArgumentError, 'invalid value for "tile_flip", must be one of #{validator.allowable_values}.'
|
277
|
+
end
|
278
|
+
@tile_flip = tile_flip
|
279
|
+
end
|
280
|
+
|
185
281
|
# Custom attribute writer method checking allowed values (enum).
|
186
282
|
# @param [Object] picture_fill_mode Object to be assigned
|
187
283
|
def picture_fill_mode=(picture_fill_mode)
|
@@ -203,9 +299,17 @@ module AsposeSlidesCloud
|
|
203
299
|
crop_right == o.crop_right &&
|
204
300
|
crop_top == o.crop_top &&
|
205
301
|
dpi == o.dpi &&
|
302
|
+
tile_offset_x == o.tile_offset_x &&
|
303
|
+
tile_offset_y == o.tile_offset_y &&
|
304
|
+
tile_scale_x == o.tile_scale_x &&
|
305
|
+
tile_scale_y == o.tile_scale_y &&
|
306
|
+
tile_alignment == o.tile_alignment &&
|
307
|
+
tile_flip == o.tile_flip &&
|
206
308
|
image == o.image &&
|
207
309
|
base64_data == o.base64_data &&
|
208
310
|
svg_data == o.svg_data &&
|
311
|
+
delete_picture_cropped_areas == o.delete_picture_cropped_areas &&
|
312
|
+
resolution == o.resolution &&
|
209
313
|
picture_fill_mode == o.picture_fill_mode &&
|
210
314
|
image_transform_list == o.image_transform_list
|
211
315
|
end
|
@@ -219,7 +323,7 @@ module AsposeSlidesCloud
|
|
219
323
|
# Calculates hash code according to all attributes.
|
220
324
|
# @return [Fixnum] Hash code
|
221
325
|
def hash
|
222
|
-
[type, crop_bottom, crop_left, crop_right, crop_top, dpi, image, base64_data, svg_data, picture_fill_mode, image_transform_list].hash
|
326
|
+
[type, crop_bottom, crop_left, crop_right, crop_top, dpi, tile_offset_x, tile_offset_y, tile_scale_x, tile_scale_y, tile_alignment, tile_flip, image, base64_data, svg_data, delete_picture_cropped_areas, resolution, picture_fill_mode, image_transform_list].hash
|
223
327
|
end
|
224
328
|
end
|
225
329
|
end
|