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="bmp_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="cad_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="cgm_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,6 +64,39 @@ 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
|
+
class EnumAttributeValidator
|
79
|
+
attr_reader :datatype
|
80
|
+
attr_reader :allowable_values
|
81
|
+
|
82
|
+
def initialize(datatype, allowable_values)
|
83
|
+
@allowable_values = allowable_values.map do |value|
|
84
|
+
case datatype.to_s
|
85
|
+
when /Integer/i
|
86
|
+
value.to_i
|
87
|
+
when /Float/i
|
88
|
+
value.to_f
|
89
|
+
else
|
90
|
+
value
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
def valid?(value)
|
96
|
+
!value || allowable_values.include?(value)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
67
100
|
# Attribute mapping from ruby-style variable name to JSON key.
|
68
101
|
def self.attribute_map
|
69
102
|
{
|
@@ -77,7 +110,11 @@ module GroupDocsConversionCloud
|
|
77
110
|
:'grayscale' => :'Grayscale',
|
78
111
|
:'rotate_angle' => :'RotateAngle',
|
79
112
|
:'use_pdf' => :'UsePdf',
|
80
|
-
:'watermark_options' => :'WatermarkOptions'
|
113
|
+
:'watermark_options' => :'WatermarkOptions',
|
114
|
+
:'brightness' => :'Brightness',
|
115
|
+
:'contrast' => :'Contrast',
|
116
|
+
:'gamma' => :'Gamma',
|
117
|
+
:'flip_mode' => :'FlipMode'
|
81
118
|
}
|
82
119
|
end
|
83
120
|
|
@@ -94,7 +131,11 @@ module GroupDocsConversionCloud
|
|
94
131
|
:'grayscale' => :'BOOLEAN',
|
95
132
|
:'rotate_angle' => :'Integer',
|
96
133
|
:'use_pdf' => :'BOOLEAN',
|
97
|
-
:'watermark_options' => :'WatermarkOptions'
|
134
|
+
:'watermark_options' => :'WatermarkOptions',
|
135
|
+
:'brightness' => :'Integer',
|
136
|
+
:'contrast' => :'Integer',
|
137
|
+
:'gamma' => :'Float',
|
138
|
+
:'flip_mode' => :'String'
|
98
139
|
}
|
99
140
|
end
|
100
141
|
|
@@ -152,6 +193,22 @@ module GroupDocsConversionCloud
|
|
152
193
|
self.watermark_options = attributes[:'WatermarkOptions']
|
153
194
|
end
|
154
195
|
|
196
|
+
if attributes.key?(:'Brightness')
|
197
|
+
self.brightness = attributes[:'Brightness']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.key?(:'Contrast')
|
201
|
+
self.contrast = attributes[:'Contrast']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.key?(:'Gamma')
|
205
|
+
self.gamma = attributes[:'Gamma']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.key?(:'FlipMode')
|
209
|
+
self.flip_mode = attributes[:'FlipMode']
|
210
|
+
end
|
211
|
+
|
155
212
|
end
|
156
213
|
|
157
214
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,6 +251,22 @@ module GroupDocsConversionCloud
|
|
194
251
|
invalid_properties.push("invalid value for 'use_pdf', use_pdf cannot be nil.")
|
195
252
|
end
|
196
253
|
|
254
|
+
if @brightness.nil?
|
255
|
+
invalid_properties.push("invalid value for 'brightness', brightness cannot be nil.")
|
256
|
+
end
|
257
|
+
|
258
|
+
if @contrast.nil?
|
259
|
+
invalid_properties.push("invalid value for 'contrast', contrast cannot be nil.")
|
260
|
+
end
|
261
|
+
|
262
|
+
if @gamma.nil?
|
263
|
+
invalid_properties.push("invalid value for 'gamma', gamma cannot be nil.")
|
264
|
+
end
|
265
|
+
|
266
|
+
if @flip_mode.nil?
|
267
|
+
invalid_properties.push("invalid value for 'flip_mode', flip_mode cannot be nil.")
|
268
|
+
end
|
269
|
+
|
197
270
|
return invalid_properties
|
198
271
|
end
|
199
272
|
|
@@ -209,9 +282,29 @@ module GroupDocsConversionCloud
|
|
209
282
|
return false if @grayscale.nil?
|
210
283
|
return false if @rotate_angle.nil?
|
211
284
|
return false if @use_pdf.nil?
|
285
|
+
return false if @brightness.nil?
|
286
|
+
return false if @contrast.nil?
|
287
|
+
return false if @gamma.nil?
|
288
|
+
return false if @flip_mode.nil?
|
289
|
+
flip_mode_validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
|
290
|
+
return false unless flip_mode_validator.valid?(@flip_mode)
|
212
291
|
return true
|
213
292
|
end
|
214
293
|
|
294
|
+
# Custom attribute writer method checking allowed values (enum).
|
295
|
+
# @param [Object] flip_mode Object to be assigned
|
296
|
+
def flip_mode=(flip_mode)
|
297
|
+
validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
|
298
|
+
if flip_mode.to_i == 0
|
299
|
+
unless validator.valid?(flip_mode)
|
300
|
+
raise ArgumentError, "invalid value for 'flip_mode', must be one of #{validator.allowable_values}."
|
301
|
+
end
|
302
|
+
@flip_mode = flip_mode
|
303
|
+
else
|
304
|
+
@flip_mode = validator.allowable_values[flip_mode.to_i]
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
215
308
|
# Checks equality by comparing each attribute.
|
216
309
|
# @param [Object] Object to be compared
|
217
310
|
def ==(other)
|
@@ -227,7 +320,11 @@ module GroupDocsConversionCloud
|
|
227
320
|
grayscale == other.grayscale &&
|
228
321
|
rotate_angle == other.rotate_angle &&
|
229
322
|
use_pdf == other.use_pdf &&
|
230
|
-
watermark_options == other.watermark_options
|
323
|
+
watermark_options == other.watermark_options &&
|
324
|
+
brightness == other.brightness &&
|
325
|
+
contrast == other.contrast &&
|
326
|
+
gamma == other.gamma &&
|
327
|
+
flip_mode == other.flip_mode
|
231
328
|
end
|
232
329
|
|
233
330
|
# @see the `==` method
|
@@ -239,7 +336,7 @@ module GroupDocsConversionCloud
|
|
239
336
|
# Calculates hash code according to all attributes.
|
240
337
|
# @return [Fixnum] Hash code
|
241
338
|
def hash
|
242
|
-
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, watermark_options].hash
|
339
|
+
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, watermark_options, brightness, contrast, gamma, flip_mode].hash
|
243
340
|
end
|
244
341
|
|
245
342
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="convert_settings.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,9 @@ module GroupDocsConversionCloud
|
|
49
49
|
# Gets or sets converted file save path
|
50
50
|
attr_accessor :output_path
|
51
51
|
|
52
|
+
# The path to directory containing custom fonts in storage
|
53
|
+
attr_accessor :fonts_path
|
54
|
+
|
52
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
56
|
def self.attribute_map
|
54
57
|
{
|
@@ -57,7 +60,8 @@ module GroupDocsConversionCloud
|
|
57
60
|
:'format' => :'Format',
|
58
61
|
:'load_options' => :'LoadOptions',
|
59
62
|
:'convert_options' => :'ConvertOptions',
|
60
|
-
:'output_path' => :'OutputPath'
|
63
|
+
:'output_path' => :'OutputPath',
|
64
|
+
:'fonts_path' => :'FontsPath'
|
61
65
|
}
|
62
66
|
end
|
63
67
|
|
@@ -69,7 +73,8 @@ module GroupDocsConversionCloud
|
|
69
73
|
:'format' => :'String',
|
70
74
|
:'load_options' => :'LoadOptions',
|
71
75
|
:'convert_options' => :'ConvertOptions',
|
72
|
-
:'output_path' => :'String'
|
76
|
+
:'output_path' => :'String',
|
77
|
+
:'fonts_path' => :'String'
|
73
78
|
}
|
74
79
|
end
|
75
80
|
|
@@ -105,6 +110,10 @@ module GroupDocsConversionCloud
|
|
105
110
|
self.output_path = attributes[:'OutputPath']
|
106
111
|
end
|
107
112
|
|
113
|
+
if attributes.key?(:'FontsPath')
|
114
|
+
self.fonts_path = attributes[:'FontsPath']
|
115
|
+
end
|
116
|
+
|
108
117
|
end
|
109
118
|
|
110
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -178,7 +187,8 @@ module GroupDocsConversionCloud
|
|
178
187
|
format == other.format &&
|
179
188
|
load_options == other.load_options &&
|
180
189
|
convert_options == other.convert_options &&
|
181
|
-
output_path == other.output_path
|
190
|
+
output_path == other.output_path &&
|
191
|
+
fonts_path == other.fonts_path
|
182
192
|
end
|
183
193
|
|
184
194
|
# @see the `==` method
|
@@ -190,7 +200,7 @@ module GroupDocsConversionCloud
|
|
190
200
|
# Calculates hash code according to all attributes.
|
191
201
|
# @return [Fixnum] Hash code
|
192
202
|
def hash
|
193
|
-
[storage_name, file_path, format, load_options, convert_options, output_path].hash
|
203
|
+
[storage_name, file_path, format, load_options, convert_options, output_path, fonts_path].hash
|
194
204
|
end
|
195
205
|
|
196
206
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="csv_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
|
@@ -46,6 +46,9 @@ module GroupDocsConversionCloud
|
|
46
46
|
# Indicates whether the string in the file is converted to date. Default is True
|
47
47
|
attr_accessor :convert_date_time_data
|
48
48
|
|
49
|
+
# File encoding
|
50
|
+
attr_accessor :encoding
|
51
|
+
|
49
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
53
|
def self.attribute_map
|
51
54
|
{
|
@@ -53,7 +56,8 @@ module GroupDocsConversionCloud
|
|
53
56
|
:'is_multi_encoded' => :'IsMultiEncoded',
|
54
57
|
:'has_formula' => :'HasFormula',
|
55
58
|
:'convert_numeric_data' => :'ConvertNumericData',
|
56
|
-
:'convert_date_time_data' => :'ConvertDateTimeData'
|
59
|
+
:'convert_date_time_data' => :'ConvertDateTimeData',
|
60
|
+
:'encoding' => :'Encoding'
|
57
61
|
}
|
58
62
|
end
|
59
63
|
|
@@ -64,7 +68,8 @@ module GroupDocsConversionCloud
|
|
64
68
|
:'is_multi_encoded' => :'BOOLEAN',
|
65
69
|
:'has_formula' => :'BOOLEAN',
|
66
70
|
:'convert_numeric_data' => :'BOOLEAN',
|
67
|
-
:'convert_date_time_data' => :'BOOLEAN'
|
71
|
+
:'convert_date_time_data' => :'BOOLEAN',
|
72
|
+
:'encoding' => :'String'
|
68
73
|
}
|
69
74
|
end
|
70
75
|
|
@@ -96,6 +101,10 @@ module GroupDocsConversionCloud
|
|
96
101
|
self.convert_date_time_data = attributes[:'ConvertDateTimeData']
|
97
102
|
end
|
98
103
|
|
104
|
+
if attributes.key?(:'Encoding')
|
105
|
+
self.encoding = attributes[:'Encoding']
|
106
|
+
end
|
107
|
+
|
99
108
|
end
|
100
109
|
|
101
110
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -145,7 +154,8 @@ module GroupDocsConversionCloud
|
|
145
154
|
is_multi_encoded == other.is_multi_encoded &&
|
146
155
|
has_formula == other.has_formula &&
|
147
156
|
convert_numeric_data == other.convert_numeric_data &&
|
148
|
-
convert_date_time_data == other.convert_date_time_data
|
157
|
+
convert_date_time_data == other.convert_date_time_data &&
|
158
|
+
encoding == other.encoding
|
149
159
|
end
|
150
160
|
|
151
161
|
# @see the `==` method
|
@@ -157,7 +167,7 @@ module GroupDocsConversionCloud
|
|
157
167
|
# Calculates hash code according to all attributes.
|
158
168
|
# @return [Fixnum] Hash code
|
159
169
|
def hash
|
160
|
-
[separator, is_multi_encoded, has_formula, convert_numeric_data, convert_date_time_data].hash
|
170
|
+
[separator, is_multi_encoded, has_formula, convert_numeric_data, convert_date_time_data, encoding].hash
|
161
171
|
end
|
162
172
|
|
163
173
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="dcm_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,6 +64,39 @@ 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
|
+
class EnumAttributeValidator
|
79
|
+
attr_reader :datatype
|
80
|
+
attr_reader :allowable_values
|
81
|
+
|
82
|
+
def initialize(datatype, allowable_values)
|
83
|
+
@allowable_values = allowable_values.map do |value|
|
84
|
+
case datatype.to_s
|
85
|
+
when /Integer/i
|
86
|
+
value.to_i
|
87
|
+
when /Float/i
|
88
|
+
value.to_f
|
89
|
+
else
|
90
|
+
value
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
def valid?(value)
|
96
|
+
!value || allowable_values.include?(value)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
67
100
|
# Attribute mapping from ruby-style variable name to JSON key.
|
68
101
|
def self.attribute_map
|
69
102
|
{
|
@@ -77,7 +110,11 @@ module GroupDocsConversionCloud
|
|
77
110
|
:'grayscale' => :'Grayscale',
|
78
111
|
:'rotate_angle' => :'RotateAngle',
|
79
112
|
:'use_pdf' => :'UsePdf',
|
80
|
-
:'watermark_options' => :'WatermarkOptions'
|
113
|
+
:'watermark_options' => :'WatermarkOptions',
|
114
|
+
:'brightness' => :'Brightness',
|
115
|
+
:'contrast' => :'Contrast',
|
116
|
+
:'gamma' => :'Gamma',
|
117
|
+
:'flip_mode' => :'FlipMode'
|
81
118
|
}
|
82
119
|
end
|
83
120
|
|
@@ -94,7 +131,11 @@ module GroupDocsConversionCloud
|
|
94
131
|
:'grayscale' => :'BOOLEAN',
|
95
132
|
:'rotate_angle' => :'Integer',
|
96
133
|
:'use_pdf' => :'BOOLEAN',
|
97
|
-
:'watermark_options' => :'WatermarkOptions'
|
134
|
+
:'watermark_options' => :'WatermarkOptions',
|
135
|
+
:'brightness' => :'Integer',
|
136
|
+
:'contrast' => :'Integer',
|
137
|
+
:'gamma' => :'Float',
|
138
|
+
:'flip_mode' => :'String'
|
98
139
|
}
|
99
140
|
end
|
100
141
|
|
@@ -152,6 +193,22 @@ module GroupDocsConversionCloud
|
|
152
193
|
self.watermark_options = attributes[:'WatermarkOptions']
|
153
194
|
end
|
154
195
|
|
196
|
+
if attributes.key?(:'Brightness')
|
197
|
+
self.brightness = attributes[:'Brightness']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.key?(:'Contrast')
|
201
|
+
self.contrast = attributes[:'Contrast']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.key?(:'Gamma')
|
205
|
+
self.gamma = attributes[:'Gamma']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.key?(:'FlipMode')
|
209
|
+
self.flip_mode = attributes[:'FlipMode']
|
210
|
+
end
|
211
|
+
|
155
212
|
end
|
156
213
|
|
157
214
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,6 +251,22 @@ module GroupDocsConversionCloud
|
|
194
251
|
invalid_properties.push("invalid value for 'use_pdf', use_pdf cannot be nil.")
|
195
252
|
end
|
196
253
|
|
254
|
+
if @brightness.nil?
|
255
|
+
invalid_properties.push("invalid value for 'brightness', brightness cannot be nil.")
|
256
|
+
end
|
257
|
+
|
258
|
+
if @contrast.nil?
|
259
|
+
invalid_properties.push("invalid value for 'contrast', contrast cannot be nil.")
|
260
|
+
end
|
261
|
+
|
262
|
+
if @gamma.nil?
|
263
|
+
invalid_properties.push("invalid value for 'gamma', gamma cannot be nil.")
|
264
|
+
end
|
265
|
+
|
266
|
+
if @flip_mode.nil?
|
267
|
+
invalid_properties.push("invalid value for 'flip_mode', flip_mode cannot be nil.")
|
268
|
+
end
|
269
|
+
|
197
270
|
return invalid_properties
|
198
271
|
end
|
199
272
|
|
@@ -209,9 +282,29 @@ module GroupDocsConversionCloud
|
|
209
282
|
return false if @grayscale.nil?
|
210
283
|
return false if @rotate_angle.nil?
|
211
284
|
return false if @use_pdf.nil?
|
285
|
+
return false if @brightness.nil?
|
286
|
+
return false if @contrast.nil?
|
287
|
+
return false if @gamma.nil?
|
288
|
+
return false if @flip_mode.nil?
|
289
|
+
flip_mode_validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
|
290
|
+
return false unless flip_mode_validator.valid?(@flip_mode)
|
212
291
|
return true
|
213
292
|
end
|
214
293
|
|
294
|
+
# Custom attribute writer method checking allowed values (enum).
|
295
|
+
# @param [Object] flip_mode Object to be assigned
|
296
|
+
def flip_mode=(flip_mode)
|
297
|
+
validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
|
298
|
+
if flip_mode.to_i == 0
|
299
|
+
unless validator.valid?(flip_mode)
|
300
|
+
raise ArgumentError, "invalid value for 'flip_mode', must be one of #{validator.allowable_values}."
|
301
|
+
end
|
302
|
+
@flip_mode = flip_mode
|
303
|
+
else
|
304
|
+
@flip_mode = validator.allowable_values[flip_mode.to_i]
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
215
308
|
# Checks equality by comparing each attribute.
|
216
309
|
# @param [Object] Object to be compared
|
217
310
|
def ==(other)
|
@@ -227,7 +320,11 @@ module GroupDocsConversionCloud
|
|
227
320
|
grayscale == other.grayscale &&
|
228
321
|
rotate_angle == other.rotate_angle &&
|
229
322
|
use_pdf == other.use_pdf &&
|
230
|
-
watermark_options == other.watermark_options
|
323
|
+
watermark_options == other.watermark_options &&
|
324
|
+
brightness == other.brightness &&
|
325
|
+
contrast == other.contrast &&
|
326
|
+
gamma == other.gamma &&
|
327
|
+
flip_mode == other.flip_mode
|
231
328
|
end
|
232
329
|
|
233
330
|
# @see the `==` method
|
@@ -239,7 +336,7 @@ module GroupDocsConversionCloud
|
|
239
336
|
# Calculates hash code according to all attributes.
|
240
337
|
# @return [Fixnum] Hash code
|
241
338
|
def hash
|
242
|
-
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, watermark_options].hash
|
339
|
+
[from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, watermark_options, brightness, contrast, gamma, flip_mode].hash
|
243
340
|
end
|
244
341
|
|
245
342
|
# Downcases first letter.
|