groupdocs_conversion_cloud 19.4 → 21.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_conversion_cloud.rb +6 -2
- data/lib/groupdocs_conversion_cloud/api/convert_api.rb +342 -0
- data/lib/groupdocs_conversion_cloud/api/file_api.rb +7 -7
- data/lib/groupdocs_conversion_cloud/api/folder_api.rb +7 -7
- data/lib/groupdocs_conversion_cloud/api/{conversion_api.rb → info_api.rb} +54 -43
- data/lib/groupdocs_conversion_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_conversion_cloud/api_client.rb +1 -1
- data/lib/groupdocs_conversion_cloud/api_error.rb +1 -1
- data/lib/groupdocs_conversion_cloud/configuration.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/bmp_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/convert_settings.rb +15 -5
- data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +15 -5
- data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/dcm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/diagram_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/djvu_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/dng_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/dng_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/doc_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/docm_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/document_metadata.rb +396 -0
- data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/docx_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dot_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dotm_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dotx_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/emf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/epub_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/error.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/field_label.rb +266 -0
- data/lib/groupdocs_conversion_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/gif_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/gif_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/html_convert_options.rb +17 -2
- data/lib/groupdocs_conversion_cloud/models/html_load_options.rb +219 -0
- data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/ico_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/image_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +99 -2
- data/lib/groupdocs_conversion_cloud/models/j2c_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +99 -2
- data/lib/groupdocs_conversion_cloud/models/j2k_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +99 -2
- data/lib/groupdocs_conversion_cloud/models/jp2_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +99 -2
- data/lib/groupdocs_conversion_cloud/models/jpeg_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +99 -2
- data/lib/groupdocs_conversion_cloud/models/jpf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +99 -2
- data/lib/groupdocs_conversion_cloud/models/jpg_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +99 -2
- data/lib/groupdocs_conversion_cloud/models/jpm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +99 -2
- data/lib/groupdocs_conversion_cloud/models/jpx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/mobi_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odg_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/odg_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odp_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ods_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/odt_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/one_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/otp_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ots_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ott_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb +11 -56
- data/lib/groupdocs_conversion_cloud/models/pdf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/png_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pps_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppt_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/presentation_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +78 -2
- data/lib/groupdocs_conversion_cloud/models/psd_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +57 -5
- data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/stored_converted_result.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/supported_format.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/svg_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tif_convert_options.rb +78 -2
- data/lib/groupdocs_conversion_cloud/models/tif_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +78 -2
- data/lib/groupdocs_conversion_cloud/models/tiff_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tsv_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/txt_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/txt_load_options.rb +15 -5
- data/lib/groupdocs_conversion_cloud/models/vdw_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vdx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vsd_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vsdm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vsdx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vss_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vssm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vssx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vst_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vstm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vstx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vsx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/vtx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/watermark_options.rb +32 -2
- data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +99 -2
- data/lib/groupdocs_conversion_cloud/models/webp_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +102 -5
- data/lib/groupdocs_conversion_cloud/models/wmf_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/word_processing_load_options.rb +50 -5
- data/lib/groupdocs_conversion_cloud/models/xls2003_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xls_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsb_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltm_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xml_load_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/models/xps_convert_options.rb +1 -1
- data/lib/groupdocs_conversion_cloud/version.rb +2 -2
- metadata +7 -3
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="jpm_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="jpx_convert_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -64,8 +64,41 @@ module GroupDocsConversionCloud
|
|
64
64
|
# Watermark specific options
|
65
65
|
attr_accessor :watermark_options
|
66
66
|
|
67
|
+
# Adjust image brightness
|
68
|
+
attr_accessor :brightness
|
69
|
+
|
70
|
+
# Adjust image contrast
|
71
|
+
attr_accessor :contrast
|
72
|
+
|
73
|
+
# Adjust image gamma
|
74
|
+
attr_accessor :gamma
|
75
|
+
|
76
|
+
# Image flip mode
|
77
|
+
attr_accessor :flip_mode
|
78
|
+
|
67
79
|
# Desired image quality when converting to Jpeg. The value must be between 0 and 100. The default value is 100.
|
68
80
|
attr_accessor :quality
|
81
|
+
class EnumAttributeValidator
|
82
|
+
attr_reader :datatype
|
83
|
+
attr_reader :allowable_values
|
84
|
+
|
85
|
+
def initialize(datatype, allowable_values)
|
86
|
+
@allowable_values = allowable_values.map do |value|
|
87
|
+
case datatype.to_s
|
88
|
+
when /Integer/i
|
89
|
+
value.to_i
|
90
|
+
when /Float/i
|
91
|
+
value.to_f
|
92
|
+
else
|
93
|
+
value
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
def valid?(value)
|
99
|
+
!value || allowable_values.include?(value)
|
100
|
+
end
|
101
|
+
end
|
69
102
|
|
70
103
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
104
|
def self.attribute_map
|
@@ -81,6 +114,10 @@ module GroupDocsConversionCloud
|
|
81
114
|
:'rotate_angle' => :'RotateAngle',
|
82
115
|
:'use_pdf' => :'UsePdf',
|
83
116
|
:'watermark_options' => :'WatermarkOptions',
|
117
|
+
:'brightness' => :'Brightness',
|
118
|
+
:'contrast' => :'Contrast',
|
119
|
+
:'gamma' => :'Gamma',
|
120
|
+
:'flip_mode' => :'FlipMode',
|
84
121
|
:'quality' => :'Quality'
|
85
122
|
}
|
86
123
|
end
|
@@ -99,6 +136,10 @@ module GroupDocsConversionCloud
|
|
99
136
|
:'rotate_angle' => :'Integer',
|
100
137
|
:'use_pdf' => :'BOOLEAN',
|
101
138
|
:'watermark_options' => :'WatermarkOptions',
|
139
|
+
:'brightness' => :'Integer',
|
140
|
+
:'contrast' => :'Integer',
|
141
|
+
:'gamma' => :'Float',
|
142
|
+
:'flip_mode' => :'String',
|
102
143
|
:'quality' => :'Integer'
|
103
144
|
}
|
104
145
|
end
|
@@ -157,6 +198,22 @@ module GroupDocsConversionCloud
|
|
157
198
|
self.watermark_options = attributes[:'WatermarkOptions']
|
158
199
|
end
|
159
200
|
|
201
|
+
if attributes.key?(:'Brightness')
|
202
|
+
self.brightness = attributes[:'Brightness']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.key?(:'Contrast')
|
206
|
+
self.contrast = attributes[:'Contrast']
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.key?(:'Gamma')
|
210
|
+
self.gamma = attributes[:'Gamma']
|
211
|
+
end
|
212
|
+
|
213
|
+
if attributes.key?(:'FlipMode')
|
214
|
+
self.flip_mode = attributes[:'FlipMode']
|
215
|
+
end
|
216
|
+
|
160
217
|
if attributes.key?(:'Quality')
|
161
218
|
self.quality = attributes[:'Quality']
|
162
219
|
end
|
@@ -203,6 +260,22 @@ module GroupDocsConversionCloud
|
|
203
260
|
invalid_properties.push("invalid value for 'use_pdf', use_pdf cannot be nil.")
|
204
261
|
end
|
205
262
|
|
263
|
+
if @brightness.nil?
|
264
|
+
invalid_properties.push("invalid value for 'brightness', brightness cannot be nil.")
|
265
|
+
end
|
266
|
+
|
267
|
+
if @contrast.nil?
|
268
|
+
invalid_properties.push("invalid value for 'contrast', contrast cannot be nil.")
|
269
|
+
end
|
270
|
+
|
271
|
+
if @gamma.nil?
|
272
|
+
invalid_properties.push("invalid value for 'gamma', gamma cannot be nil.")
|
273
|
+
end
|
274
|
+
|
275
|
+
if @flip_mode.nil?
|
276
|
+
invalid_properties.push("invalid value for 'flip_mode', flip_mode cannot be nil.")
|
277
|
+
end
|
278
|
+
|
206
279
|
if @quality.nil?
|
207
280
|
invalid_properties.push("invalid value for 'quality', quality cannot be nil.")
|
208
281
|
end
|
@@ -222,10 +295,30 @@ module GroupDocsConversionCloud
|
|
222
295
|
return false if @grayscale.nil?
|
223
296
|
return false if @rotate_angle.nil?
|
224
297
|
return false if @use_pdf.nil?
|
298
|
+
return false if @brightness.nil?
|
299
|
+
return false if @contrast.nil?
|
300
|
+
return false if @gamma.nil?
|
301
|
+
return false if @flip_mode.nil?
|
302
|
+
flip_mode_validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
|
303
|
+
return false unless flip_mode_validator.valid?(@flip_mode)
|
225
304
|
return false if @quality.nil?
|
226
305
|
return true
|
227
306
|
end
|
228
307
|
|
308
|
+
# Custom attribute writer method checking allowed values (enum).
|
309
|
+
# @param [Object] flip_mode Object to be assigned
|
310
|
+
def flip_mode=(flip_mode)
|
311
|
+
validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
|
312
|
+
if flip_mode.to_i == 0
|
313
|
+
unless validator.valid?(flip_mode)
|
314
|
+
raise ArgumentError, "invalid value for 'flip_mode', must be one of #{validator.allowable_values}."
|
315
|
+
end
|
316
|
+
@flip_mode = flip_mode
|
317
|
+
else
|
318
|
+
@flip_mode = validator.allowable_values[flip_mode.to_i]
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
229
322
|
# Checks equality by comparing each attribute.
|
230
323
|
# @param [Object] Object to be compared
|
231
324
|
def ==(other)
|
@@ -242,6 +335,10 @@ module GroupDocsConversionCloud
|
|
242
335
|
rotate_angle == other.rotate_angle &&
|
243
336
|
use_pdf == other.use_pdf &&
|
244
337
|
watermark_options == other.watermark_options &&
|
338
|
+
brightness == other.brightness &&
|
339
|
+
contrast == other.contrast &&
|
340
|
+
gamma == other.gamma &&
|
341
|
+
flip_mode == other.flip_mode &&
|
245
342
|
quality == other.quality
|
246
343
|
end
|
247
344
|
|
@@ -254,7 +351,7 @@ module GroupDocsConversionCloud
|
|
254
351
|
# Calculates hash code according to all attributes.
|
255
352
|
# @return [Fixnum] Hash code
|
256
353
|
def hash
|
257
|
-
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, watermark_options, quality].hash
|
354
|
+
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, watermark_options, brightness, contrast, gamma, flip_mode, quality].hash
|
258
355
|
end
|
259
356
|
|
260
357
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="jpx_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="mht_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -49,6 +49,18 @@ module GroupDocsConversionCloud
|
|
49
49
|
# Option to display or hide \"Bcc\" email address. Default: false
|
50
50
|
attr_accessor :display_bcc_email_address
|
51
51
|
|
52
|
+
# Gets or sets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the localtime and UTC.
|
53
|
+
attr_accessor :time_zone_offset
|
54
|
+
|
55
|
+
# Option to convert attachments in source email or not. Default: false.
|
56
|
+
attr_accessor :convert_attachments
|
57
|
+
|
58
|
+
# The mapping between email message field and field text representation
|
59
|
+
attr_accessor :field_labels
|
60
|
+
|
61
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
62
|
+
attr_accessor :preserve_original_date
|
63
|
+
|
52
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
65
|
def self.attribute_map
|
54
66
|
{
|
@@ -57,7 +69,11 @@ module GroupDocsConversionCloud
|
|
57
69
|
:'display_email_address' => :'DisplayEmailAddress',
|
58
70
|
:'display_to_email_address' => :'DisplayToEmailAddress',
|
59
71
|
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
60
|
-
:'display_bcc_email_address' => :'DisplayBccEmailAddress'
|
72
|
+
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
73
|
+
:'time_zone_offset' => :'TimeZoneOffset',
|
74
|
+
:'convert_attachments' => :'ConvertAttachments',
|
75
|
+
:'field_labels' => :'FieldLabels',
|
76
|
+
:'preserve_original_date' => :'PreserveOriginalDate'
|
61
77
|
}
|
62
78
|
end
|
63
79
|
|
@@ -69,7 +85,11 @@ module GroupDocsConversionCloud
|
|
69
85
|
:'display_email_address' => :'BOOLEAN',
|
70
86
|
:'display_to_email_address' => :'BOOLEAN',
|
71
87
|
:'display_cc_email_address' => :'BOOLEAN',
|
72
|
-
:'display_bcc_email_address' => :'BOOLEAN'
|
88
|
+
:'display_bcc_email_address' => :'BOOLEAN',
|
89
|
+
:'time_zone_offset' => :'String',
|
90
|
+
:'convert_attachments' => :'BOOLEAN',
|
91
|
+
:'field_labels' => :'Array<FieldLabel>',
|
92
|
+
:'preserve_original_date' => :'BOOLEAN'
|
73
93
|
}
|
74
94
|
end
|
75
95
|
|
@@ -105,6 +125,24 @@ module GroupDocsConversionCloud
|
|
105
125
|
self.display_bcc_email_address = attributes[:'DisplayBccEmailAddress']
|
106
126
|
end
|
107
127
|
|
128
|
+
if attributes.key?(:'TimeZoneOffset')
|
129
|
+
self.time_zone_offset = attributes[:'TimeZoneOffset']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'ConvertAttachments')
|
133
|
+
self.convert_attachments = attributes[:'ConvertAttachments']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'FieldLabels')
|
137
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
138
|
+
self.field_labels = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'PreserveOriginalDate')
|
143
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
144
|
+
end
|
145
|
+
|
108
146
|
end
|
109
147
|
|
110
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -135,6 +173,14 @@ module GroupDocsConversionCloud
|
|
135
173
|
invalid_properties.push("invalid value for 'display_bcc_email_address', display_bcc_email_address cannot be nil.")
|
136
174
|
end
|
137
175
|
|
176
|
+
if @convert_attachments.nil?
|
177
|
+
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
|
178
|
+
end
|
179
|
+
|
180
|
+
if @preserve_original_date.nil?
|
181
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
182
|
+
end
|
183
|
+
|
138
184
|
return invalid_properties
|
139
185
|
end
|
140
186
|
|
@@ -147,6 +193,8 @@ module GroupDocsConversionCloud
|
|
147
193
|
return false if @display_to_email_address.nil?
|
148
194
|
return false if @display_cc_email_address.nil?
|
149
195
|
return false if @display_bcc_email_address.nil?
|
196
|
+
return false if @convert_attachments.nil?
|
197
|
+
return false if @preserve_original_date.nil?
|
150
198
|
return true
|
151
199
|
end
|
152
200
|
|
@@ -160,7 +208,11 @@ module GroupDocsConversionCloud
|
|
160
208
|
display_email_address == other.display_email_address &&
|
161
209
|
display_to_email_address == other.display_to_email_address &&
|
162
210
|
display_cc_email_address == other.display_cc_email_address &&
|
163
|
-
display_bcc_email_address == other.display_bcc_email_address
|
211
|
+
display_bcc_email_address == other.display_bcc_email_address &&
|
212
|
+
time_zone_offset == other.time_zone_offset &&
|
213
|
+
convert_attachments == other.convert_attachments &&
|
214
|
+
field_labels == other.field_labels &&
|
215
|
+
preserve_original_date == other.preserve_original_date
|
164
216
|
end
|
165
217
|
|
166
218
|
# @see the `==` method
|
@@ -172,7 +224,7 @@ module GroupDocsConversionCloud
|
|
172
224
|
# Calculates hash code according to all attributes.
|
173
225
|
# @return [Fixnum] Hash code
|
174
226
|
def hash
|
175
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address].hash
|
227
|
+
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
176
228
|
end
|
177
229
|
|
178
230
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="mobi_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -49,6 +49,15 @@ module GroupDocsConversionCloud
|
|
49
49
|
# Hide comments
|
50
50
|
attr_accessor :hide_comments
|
51
51
|
|
52
|
+
# Specifies the default level in the document outline at which to display Word bookmarks. Default is 0. Valid range is 0 to 9.
|
53
|
+
attr_accessor :bookmarks_outline_level
|
54
|
+
|
55
|
+
# Specifies how many levels of headings (paragraphs formatted with the Heading styles) to include in the document outline. Default is 0. Valid range is 0 to 9.
|
56
|
+
attr_accessor :headings_outline_levels
|
57
|
+
|
58
|
+
# Specifies how many levels in the document outline to show expanded when the file is viewed. Default is 0. Valid range is 0 to 9. Note that this options will not work when saving to XPS.
|
59
|
+
attr_accessor :expanded_outline_levels
|
60
|
+
|
52
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
62
|
def self.attribute_map
|
54
63
|
{
|
@@ -57,7 +66,10 @@ module GroupDocsConversionCloud
|
|
57
66
|
:'font_substitutes' => :'FontSubstitutes',
|
58
67
|
:'password' => :'Password',
|
59
68
|
:'hide_word_tracked_changes' => :'HideWordTrackedChanges',
|
60
|
-
:'hide_comments' => :'HideComments'
|
69
|
+
:'hide_comments' => :'HideComments',
|
70
|
+
:'bookmarks_outline_level' => :'BookmarksOutlineLevel',
|
71
|
+
:'headings_outline_levels' => :'HeadingsOutlineLevels',
|
72
|
+
:'expanded_outline_levels' => :'ExpandedOutlineLevels'
|
61
73
|
}
|
62
74
|
end
|
63
75
|
|
@@ -69,7 +81,10 @@ module GroupDocsConversionCloud
|
|
69
81
|
:'font_substitutes' => :'Hash<String, String>',
|
70
82
|
:'password' => :'String',
|
71
83
|
:'hide_word_tracked_changes' => :'BOOLEAN',
|
72
|
-
:'hide_comments' => :'BOOLEAN'
|
84
|
+
:'hide_comments' => :'BOOLEAN',
|
85
|
+
:'bookmarks_outline_level' => :'Integer',
|
86
|
+
:'headings_outline_levels' => :'Integer',
|
87
|
+
:'expanded_outline_levels' => :'Integer'
|
73
88
|
}
|
74
89
|
end
|
75
90
|
|
@@ -107,6 +122,18 @@ module GroupDocsConversionCloud
|
|
107
122
|
self.hide_comments = attributes[:'HideComments']
|
108
123
|
end
|
109
124
|
|
125
|
+
if attributes.key?(:'BookmarksOutlineLevel')
|
126
|
+
self.bookmarks_outline_level = attributes[:'BookmarksOutlineLevel']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'HeadingsOutlineLevels')
|
130
|
+
self.headings_outline_levels = attributes[:'HeadingsOutlineLevels']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'ExpandedOutlineLevels')
|
134
|
+
self.expanded_outline_levels = attributes[:'ExpandedOutlineLevels']
|
135
|
+
end
|
136
|
+
|
110
137
|
end
|
111
138
|
|
112
139
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -125,6 +152,18 @@ module GroupDocsConversionCloud
|
|
125
152
|
invalid_properties.push("invalid value for 'hide_comments', hide_comments cannot be nil.")
|
126
153
|
end
|
127
154
|
|
155
|
+
if @bookmarks_outline_level.nil?
|
156
|
+
invalid_properties.push("invalid value for 'bookmarks_outline_level', bookmarks_outline_level cannot be nil.")
|
157
|
+
end
|
158
|
+
|
159
|
+
if @headings_outline_levels.nil?
|
160
|
+
invalid_properties.push("invalid value for 'headings_outline_levels', headings_outline_levels cannot be nil.")
|
161
|
+
end
|
162
|
+
|
163
|
+
if @expanded_outline_levels.nil?
|
164
|
+
invalid_properties.push("invalid value for 'expanded_outline_levels', expanded_outline_levels cannot be nil.")
|
165
|
+
end
|
166
|
+
|
128
167
|
return invalid_properties
|
129
168
|
end
|
130
169
|
|
@@ -134,6 +173,9 @@ module GroupDocsConversionCloud
|
|
134
173
|
return false if @auto_font_substitution.nil?
|
135
174
|
return false if @hide_word_tracked_changes.nil?
|
136
175
|
return false if @hide_comments.nil?
|
176
|
+
return false if @bookmarks_outline_level.nil?
|
177
|
+
return false if @headings_outline_levels.nil?
|
178
|
+
return false if @expanded_outline_levels.nil?
|
137
179
|
return true
|
138
180
|
end
|
139
181
|
|
@@ -147,7 +189,10 @@ module GroupDocsConversionCloud
|
|
147
189
|
font_substitutes == other.font_substitutes &&
|
148
190
|
password == other.password &&
|
149
191
|
hide_word_tracked_changes == other.hide_word_tracked_changes &&
|
150
|
-
hide_comments == other.hide_comments
|
192
|
+
hide_comments == other.hide_comments &&
|
193
|
+
bookmarks_outline_level == other.bookmarks_outline_level &&
|
194
|
+
headings_outline_levels == other.headings_outline_levels &&
|
195
|
+
expanded_outline_levels == other.expanded_outline_levels
|
151
196
|
end
|
152
197
|
|
153
198
|
# @see the `==` method
|
@@ -159,7 +204,7 @@ module GroupDocsConversionCloud
|
|
159
204
|
# Calculates hash code according to all attributes.
|
160
205
|
# @return [Fixnum] Hash code
|
161
206
|
def hash
|
162
|
-
[default_font, auto_font_substitution, font_substitutes, password, hide_word_tracked_changes, hide_comments].hash
|
207
|
+
[default_font, auto_font_substitution, font_substitutes, password, hide_word_tracked_changes, hide_comments, bookmarks_outline_level, headings_outline_levels, expanded_outline_levels].hash
|
163
208
|
end
|
164
209
|
|
165
210
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="msg_load_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -49,6 +49,18 @@ module GroupDocsConversionCloud
|
|
49
49
|
# Option to display or hide \"Bcc\" email address. Default: false
|
50
50
|
attr_accessor :display_bcc_email_address
|
51
51
|
|
52
|
+
# Gets or sets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the localtime and UTC.
|
53
|
+
attr_accessor :time_zone_offset
|
54
|
+
|
55
|
+
# Option to convert attachments in source email or not. Default: false.
|
56
|
+
attr_accessor :convert_attachments
|
57
|
+
|
58
|
+
# The mapping between email message field and field text representation
|
59
|
+
attr_accessor :field_labels
|
60
|
+
|
61
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
62
|
+
attr_accessor :preserve_original_date
|
63
|
+
|
52
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
65
|
def self.attribute_map
|
54
66
|
{
|
@@ -57,7 +69,11 @@ module GroupDocsConversionCloud
|
|
57
69
|
:'display_email_address' => :'DisplayEmailAddress',
|
58
70
|
:'display_to_email_address' => :'DisplayToEmailAddress',
|
59
71
|
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
60
|
-
:'display_bcc_email_address' => :'DisplayBccEmailAddress'
|
72
|
+
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
73
|
+
:'time_zone_offset' => :'TimeZoneOffset',
|
74
|
+
:'convert_attachments' => :'ConvertAttachments',
|
75
|
+
:'field_labels' => :'FieldLabels',
|
76
|
+
:'preserve_original_date' => :'PreserveOriginalDate'
|
61
77
|
}
|
62
78
|
end
|
63
79
|
|
@@ -69,7 +85,11 @@ module GroupDocsConversionCloud
|
|
69
85
|
:'display_email_address' => :'BOOLEAN',
|
70
86
|
:'display_to_email_address' => :'BOOLEAN',
|
71
87
|
:'display_cc_email_address' => :'BOOLEAN',
|
72
|
-
:'display_bcc_email_address' => :'BOOLEAN'
|
88
|
+
:'display_bcc_email_address' => :'BOOLEAN',
|
89
|
+
:'time_zone_offset' => :'String',
|
90
|
+
:'convert_attachments' => :'BOOLEAN',
|
91
|
+
:'field_labels' => :'Array<FieldLabel>',
|
92
|
+
:'preserve_original_date' => :'BOOLEAN'
|
73
93
|
}
|
74
94
|
end
|
75
95
|
|
@@ -105,6 +125,24 @@ module GroupDocsConversionCloud
|
|
105
125
|
self.display_bcc_email_address = attributes[:'DisplayBccEmailAddress']
|
106
126
|
end
|
107
127
|
|
128
|
+
if attributes.key?(:'TimeZoneOffset')
|
129
|
+
self.time_zone_offset = attributes[:'TimeZoneOffset']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'ConvertAttachments')
|
133
|
+
self.convert_attachments = attributes[:'ConvertAttachments']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'FieldLabels')
|
137
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
138
|
+
self.field_labels = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'PreserveOriginalDate')
|
143
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
144
|
+
end
|
145
|
+
|
108
146
|
end
|
109
147
|
|
110
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -135,6 +173,14 @@ module GroupDocsConversionCloud
|
|
135
173
|
invalid_properties.push("invalid value for 'display_bcc_email_address', display_bcc_email_address cannot be nil.")
|
136
174
|
end
|
137
175
|
|
176
|
+
if @convert_attachments.nil?
|
177
|
+
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
|
178
|
+
end
|
179
|
+
|
180
|
+
if @preserve_original_date.nil?
|
181
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
182
|
+
end
|
183
|
+
|
138
184
|
return invalid_properties
|
139
185
|
end
|
140
186
|
|
@@ -147,6 +193,8 @@ module GroupDocsConversionCloud
|
|
147
193
|
return false if @display_to_email_address.nil?
|
148
194
|
return false if @display_cc_email_address.nil?
|
149
195
|
return false if @display_bcc_email_address.nil?
|
196
|
+
return false if @convert_attachments.nil?
|
197
|
+
return false if @preserve_original_date.nil?
|
150
198
|
return true
|
151
199
|
end
|
152
200
|
|
@@ -160,7 +208,11 @@ module GroupDocsConversionCloud
|
|
160
208
|
display_email_address == other.display_email_address &&
|
161
209
|
display_to_email_address == other.display_to_email_address &&
|
162
210
|
display_cc_email_address == other.display_cc_email_address &&
|
163
|
-
display_bcc_email_address == other.display_bcc_email_address
|
211
|
+
display_bcc_email_address == other.display_bcc_email_address &&
|
212
|
+
time_zone_offset == other.time_zone_offset &&
|
213
|
+
convert_attachments == other.convert_attachments &&
|
214
|
+
field_labels == other.field_labels &&
|
215
|
+
preserve_original_date == other.preserve_original_date
|
164
216
|
end
|
165
217
|
|
166
218
|
# @see the `==` method
|
@@ -172,7 +224,7 @@ module GroupDocsConversionCloud
|
|
172
224
|
# Calculates hash code according to all attributes.
|
173
225
|
# @return [Fixnum] Hash code
|
174
226
|
def hash
|
175
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address].hash
|
227
|
+
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
176
228
|
end
|
177
229
|
|
178
230
|
# Downcases first letter.
|