groupdocs_conversion_cloud 25.9 → 25.12

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.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_conversion_cloud/models/{tsv_convert_options.rb → cad_convert_options.rb} +74 -32
  3. data/lib/groupdocs_conversion_cloud/models/{pps_convert_options.rb → compression_convert_options.rb} +7 -22
  4. data/lib/groupdocs_conversion_cloud/models/compression_load_options.rb +224 -0
  5. data/lib/groupdocs_conversion_cloud/models/database_load_options.rb +214 -0
  6. data/lib/groupdocs_conversion_cloud/models/{odp_convert_options.rb → diagram_convert_options.rb} +14 -24
  7. data/lib/groupdocs_conversion_cloud/models/e_book_load_options.rb +214 -0
  8. data/lib/groupdocs_conversion_cloud/models/{ppt_convert_options.rb → email_convert_options.rb} +7 -32
  9. data/lib/groupdocs_conversion_cloud/models/{otp_convert_options.rb → finance_convert_options.rb} +7 -32
  10. data/lib/groupdocs_conversion_cloud/models/{ppsm_convert_options.rb → finance_load_options.rb} +11 -78
  11. data/lib/groupdocs_conversion_cloud/models/{potm_convert_options.rb → font_convert_options.rb} +7 -32
  12. data/lib/groupdocs_conversion_cloud/models/font_load_options.rb +214 -0
  13. data/lib/groupdocs_conversion_cloud/models/{txt_convert_options.rb → gis_convert_options.rb} +3 -3
  14. data/lib/groupdocs_conversion_cloud/models/gis_load_options.rb +244 -0
  15. data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +44 -4
  16. data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +1 -265
  17. data/lib/groupdocs_conversion_cloud/models/mbox_load_options.rb +214 -0
  18. data/lib/groupdocs_conversion_cloud/models/{one_load_options.rb → note_load_options.rb} +2 -2
  19. data/lib/groupdocs_conversion_cloud/models/olm_load_options.rb +224 -0
  20. data/lib/groupdocs_conversion_cloud/models/pdl_convert_options.rb +35 -5
  21. data/lib/groupdocs_conversion_cloud/models/pdl_load_options.rb +214 -0
  22. data/lib/groupdocs_conversion_cloud/models/project_management_convert_options.rb +256 -0
  23. data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +1 -244
  24. data/lib/groupdocs_conversion_cloud/models/pub_load_options.rb +214 -0
  25. data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +1 -237
  26. data/lib/groupdocs_conversion_cloud/models/spreadsheet_convert_options.rb +4 -19
  27. data/lib/groupdocs_conversion_cloud/models/three_d_convert_options.rb +256 -0
  28. data/lib/groupdocs_conversion_cloud/models/three_d_load_options.rb +214 -0
  29. data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +1 -244
  30. data/lib/groupdocs_conversion_cloud/models/vcf_load_options.rb +224 -0
  31. data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +1 -265
  32. data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +14 -4
  33. data/lib/groupdocs_conversion_cloud/version.rb +1 -1
  34. data/lib/groupdocs_conversion_cloud.rb +27 -53
  35. metadata +24 -50
  36. data/lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb +0 -468
  37. data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +0 -468
  38. data/lib/groupdocs_conversion_cloud/models/djvu_convert_options.rb +0 -468
  39. data/lib/groupdocs_conversion_cloud/models/dng_convert_options.rb +0 -468
  40. data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +0 -440
  41. data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +0 -440
  42. data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +0 -440
  43. data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +0 -440
  44. data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +0 -440
  45. data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +0 -440
  46. data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +0 -468
  47. data/lib/groupdocs_conversion_cloud/models/gif_convert_options.rb +0 -468
  48. data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +0 -468
  49. data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +0 -483
  50. data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +0 -483
  51. data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +0 -483
  52. data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +0 -483
  53. data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +0 -483
  54. data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +0 -483
  55. data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +0 -483
  56. data/lib/groupdocs_conversion_cloud/models/odg_convert_options.rb +0 -468
  57. data/lib/groupdocs_conversion_cloud/models/ods_convert_options.rb +0 -296
  58. data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +0 -440
  59. data/lib/groupdocs_conversion_cloud/models/ots_convert_options.rb +0 -296
  60. data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +0 -440
  61. data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +0 -468
  62. data/lib/groupdocs_conversion_cloud/models/potx_convert_options.rb +0 -281
  63. data/lib/groupdocs_conversion_cloud/models/ppsx_convert_options.rb +0 -281
  64. data/lib/groupdocs_conversion_cloud/models/pptm_convert_options.rb +0 -281
  65. data/lib/groupdocs_conversion_cloud/models/pptx_convert_options.rb +0 -281
  66. data/lib/groupdocs_conversion_cloud/models/tif_convert_options.rb +0 -494
  67. data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +0 -468
  68. data/lib/groupdocs_conversion_cloud/models/xls2003_convert_options.rb +0 -296
  69. data/lib/groupdocs_conversion_cloud/models/xls_convert_options.rb +0 -296
  70. data/lib/groupdocs_conversion_cloud/models/xlsb_convert_options.rb +0 -296
  71. data/lib/groupdocs_conversion_cloud/models/xlsm_convert_options.rb +0 -296
  72. data/lib/groupdocs_conversion_cloud/models/xlsx_convert_options.rb +0 -296
  73. data/lib/groupdocs_conversion_cloud/models/xltm_convert_options.rb +0 -296
  74. data/lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb +0 -296
@@ -1,468 +0,0 @@
1
- #
2
- # --------------------------------------------------------------------------------------------------------------------
3
- # <copyright company="Aspose Pty Ltd" file="gif_convert_options.rb">
4
- # Copyright (c) Aspose Pty Ltd
5
- # </copyright>
6
- # <summary>
7
- # Permission is hereby granted, free of charge, to any person obtaining a copy
8
- # of this software and associated documentation files (the "Software"), to deal
9
- # in the Software without restriction, including without limitation the rights
10
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- # copies of the Software, and to permit persons to whom the Software is
12
- # furnished to do so, subject to the following conditions:
13
- #
14
- # The above copyright notice and this permission notice shall be included in all
15
- # copies or substantial portions of the Software.
16
- #
17
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- # SOFTWARE.
24
- # </summary>
25
- # --------------------------------------------------------------------------------------------------------------------
26
- #
27
-
28
- require 'date'
29
-
30
- module GroupDocsConversionCloud
31
- # Gif convert options
32
- class GifConvertOptions
33
-
34
- # Start conversion from FromPage page
35
- attr_accessor :from_page
36
-
37
- # Number of pages to convert
38
- attr_accessor :pages_count
39
-
40
- # Convert specific pages. The list contains the page indexes of the pages to be converted
41
- attr_accessor :pages
42
-
43
- # Watermark specific options
44
- attr_accessor :watermark_options
45
-
46
- # Desired image width after conversion
47
- attr_accessor :width
48
-
49
- # Desired image height after conversion
50
- attr_accessor :height
51
-
52
- # Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96dpi
53
- attr_accessor :horizontal_resolution
54
-
55
- # Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96dpi
56
- attr_accessor :vertical_resolution
57
-
58
- # Convert to grayscale image
59
- attr_accessor :grayscale
60
-
61
- # Image rotation angle
62
- attr_accessor :rotate_angle
63
-
64
- # If true, the input firstly is converted to PDF and after that to desired format
65
- attr_accessor :use_pdf
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
-
79
- # Gets or sets a background color.
80
- attr_accessor :background_color
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
102
-
103
- # Attribute mapping from ruby-style variable name to JSON key.
104
- def self.attribute_map
105
- {
106
- :'from_page' => :'FromPage',
107
- :'pages_count' => :'PagesCount',
108
- :'pages' => :'Pages',
109
- :'watermark_options' => :'WatermarkOptions',
110
- :'width' => :'Width',
111
- :'height' => :'Height',
112
- :'horizontal_resolution' => :'HorizontalResolution',
113
- :'vertical_resolution' => :'VerticalResolution',
114
- :'grayscale' => :'Grayscale',
115
- :'rotate_angle' => :'RotateAngle',
116
- :'use_pdf' => :'UsePdf',
117
- :'brightness' => :'Brightness',
118
- :'contrast' => :'Contrast',
119
- :'gamma' => :'Gamma',
120
- :'flip_mode' => :'FlipMode',
121
- :'background_color' => :'BackgroundColor'
122
- }
123
- end
124
-
125
- # Attribute type mapping.
126
- def self.swagger_types
127
- {
128
- :'from_page' => :'Integer',
129
- :'pages_count' => :'Integer',
130
- :'pages' => :'Array<Integer>',
131
- :'watermark_options' => :'WatermarkOptions',
132
- :'width' => :'Integer',
133
- :'height' => :'Integer',
134
- :'horizontal_resolution' => :'Integer',
135
- :'vertical_resolution' => :'Integer',
136
- :'grayscale' => :'BOOLEAN',
137
- :'rotate_angle' => :'Integer',
138
- :'use_pdf' => :'BOOLEAN',
139
- :'brightness' => :'Integer',
140
- :'contrast' => :'Integer',
141
- :'gamma' => :'Float',
142
- :'flip_mode' => :'String',
143
- :'background_color' => :'String'
144
- }
145
- end
146
-
147
- # Initializes the object
148
- # @param [Hash] attributes Model attributes in the form of hash
149
- def initialize(attributes = {})
150
- return unless attributes.is_a?(Hash)
151
-
152
- # convert string to symbol for hash key
153
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
154
-
155
- if attributes.key?(:'FromPage')
156
- self.from_page = attributes[:'FromPage']
157
- end
158
-
159
- if attributes.key?(:'PagesCount')
160
- self.pages_count = attributes[:'PagesCount']
161
- end
162
-
163
- if attributes.key?(:'Pages')
164
- if (value = attributes[:'Pages']).is_a?(Array)
165
- self.pages = value
166
- end
167
- end
168
-
169
- if attributes.key?(:'WatermarkOptions')
170
- self.watermark_options = attributes[:'WatermarkOptions']
171
- end
172
-
173
- if attributes.key?(:'Width')
174
- self.width = attributes[:'Width']
175
- end
176
-
177
- if attributes.key?(:'Height')
178
- self.height = attributes[:'Height']
179
- end
180
-
181
- if attributes.key?(:'HorizontalResolution')
182
- self.horizontal_resolution = attributes[:'HorizontalResolution']
183
- end
184
-
185
- if attributes.key?(:'VerticalResolution')
186
- self.vertical_resolution = attributes[:'VerticalResolution']
187
- end
188
-
189
- if attributes.key?(:'Grayscale')
190
- self.grayscale = attributes[:'Grayscale']
191
- end
192
-
193
- if attributes.key?(:'RotateAngle')
194
- self.rotate_angle = attributes[:'RotateAngle']
195
- end
196
-
197
- if attributes.key?(:'UsePdf')
198
- self.use_pdf = attributes[:'UsePdf']
199
- end
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
-
217
- if attributes.key?(:'BackgroundColor')
218
- self.background_color = attributes[:'BackgroundColor']
219
- end
220
-
221
- end
222
-
223
- # Show invalid properties with the reasons. Usually used together with valid?
224
- # @return Array for valid properies with the reasons
225
- def list_invalid_properties
226
- invalid_properties = []
227
- if @from_page.nil?
228
- invalid_properties.push("invalid value for 'from_page', from_page cannot be nil.")
229
- end
230
-
231
- if @pages_count.nil?
232
- invalid_properties.push("invalid value for 'pages_count', pages_count cannot be nil.")
233
- end
234
-
235
- if @width.nil?
236
- invalid_properties.push("invalid value for 'width', width cannot be nil.")
237
- end
238
-
239
- if @height.nil?
240
- invalid_properties.push("invalid value for 'height', height cannot be nil.")
241
- end
242
-
243
- if @horizontal_resolution.nil?
244
- invalid_properties.push("invalid value for 'horizontal_resolution', horizontal_resolution cannot be nil.")
245
- end
246
-
247
- if @vertical_resolution.nil?
248
- invalid_properties.push("invalid value for 'vertical_resolution', vertical_resolution cannot be nil.")
249
- end
250
-
251
- if @grayscale.nil?
252
- invalid_properties.push("invalid value for 'grayscale', grayscale cannot be nil.")
253
- end
254
-
255
- if @rotate_angle.nil?
256
- invalid_properties.push("invalid value for 'rotate_angle', rotate_angle cannot be nil.")
257
- end
258
-
259
- if @use_pdf.nil?
260
- invalid_properties.push("invalid value for 'use_pdf', use_pdf cannot be nil.")
261
- end
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
-
279
- return invalid_properties
280
- end
281
-
282
- # Check to see if the all the properties in the model are valid
283
- # @return true if the model is valid
284
- def valid?
285
- return false if @from_page.nil?
286
- return false if @pages_count.nil?
287
- return false if @width.nil?
288
- return false if @height.nil?
289
- return false if @horizontal_resolution.nil?
290
- return false if @vertical_resolution.nil?
291
- return false if @grayscale.nil?
292
- return false if @rotate_angle.nil?
293
- return false if @use_pdf.nil?
294
- return false if @brightness.nil?
295
- return false if @contrast.nil?
296
- return false if @gamma.nil?
297
- return false if @flip_mode.nil?
298
- flip_mode_validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
299
- return false unless flip_mode_validator.valid?(@flip_mode)
300
- return true
301
- end
302
-
303
- # Custom attribute writer method checking allowed values (enum).
304
- # @param [Object] flip_mode Object to be assigned
305
- def flip_mode=(flip_mode)
306
- validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
307
- if flip_mode.to_i == 0
308
- unless validator.valid?(flip_mode)
309
- raise ArgumentError, "invalid value for 'flip_mode', must be one of #{validator.allowable_values}."
310
- end
311
- @flip_mode = flip_mode
312
- else
313
- @flip_mode = validator.allowable_values[flip_mode.to_i]
314
- end
315
- end
316
-
317
- # Checks equality by comparing each attribute.
318
- # @param [Object] Object to be compared
319
- def ==(other)
320
- return true if self.equal?(other)
321
- self.class == other.class &&
322
- from_page == other.from_page &&
323
- pages_count == other.pages_count &&
324
- pages == other.pages &&
325
- watermark_options == other.watermark_options &&
326
- width == other.width &&
327
- height == other.height &&
328
- horizontal_resolution == other.horizontal_resolution &&
329
- vertical_resolution == other.vertical_resolution &&
330
- grayscale == other.grayscale &&
331
- rotate_angle == other.rotate_angle &&
332
- use_pdf == other.use_pdf &&
333
- brightness == other.brightness &&
334
- contrast == other.contrast &&
335
- gamma == other.gamma &&
336
- flip_mode == other.flip_mode &&
337
- background_color == other.background_color
338
- end
339
-
340
- # @see the `==` method
341
- # @param [Object] Object to be compared
342
- def eql?(other)
343
- self == other
344
- end
345
-
346
- # Calculates hash code according to all attributes.
347
- # @return [Fixnum] Hash code
348
- def hash
349
- [from_page, pages_count, pages, watermark_options, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, brightness, contrast, gamma, flip_mode, background_color].hash
350
- end
351
-
352
- # Downcases first letter.
353
- # @return downcased string
354
- def uncap(str)
355
- str[0, 1].downcase + str[1..-1]
356
- end
357
-
358
- # Builds the object from hash
359
- # @param [Hash] attributes Model attributes in the form of hash
360
- # @return [Object] Returns the model itself
361
- def build_from_hash(attributes)
362
- return nil unless attributes.is_a?(Hash)
363
- self.class.swagger_types.each_pair do |key, type|
364
- pname = uncap(self.class.attribute_map[key]).intern
365
- value = attributes[pname]
366
- if type =~ /\AArray<(.*)>/i
367
- # check to ensure the input is an array given that the the attribute
368
- # is documented as an array but the input is not
369
- if value.is_a?(Array)
370
- self.send("#{key}=", value.map { |v| _deserialize($1, v) })
371
- end
372
- elsif !value.nil?
373
- self.send("#{key}=", _deserialize(type, value))
374
- end
375
- # or else data not found in attributes(hash), not an issue as the data can be optional
376
- end
377
-
378
- self
379
- end
380
-
381
- # Deserializes the data based on type
382
- # @param string type Data type
383
- # @param string value Value to be deserialized
384
- # @return [Object] Deserialized data
385
- def _deserialize(type, value)
386
- case type.to_sym
387
- when :DateTime
388
- Date.parse value
389
- when :Date
390
- Date.parse value
391
- when :String
392
- value.to_s
393
- when :Integer
394
- value.to_i
395
- when :Float
396
- value.to_f
397
- when :BOOLEAN
398
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
399
- true
400
- else
401
- false
402
- end
403
- when :Object
404
- # generic object (usually a Hash), return directly
405
- value
406
- when /\AArray<(?<inner_type>.+)>\z/
407
- inner_type = Regexp.last_match[:inner_type]
408
- value.map { |v| _deserialize(inner_type, v) }
409
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
410
- k_type = Regexp.last_match[:k_type]
411
- v_type = Regexp.last_match[:v_type]
412
- {}.tap do |hash|
413
- value.each do |k, v|
414
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
415
- end
416
- end
417
- else
418
- # model
419
- temp_model = GroupDocsConversionCloud.const_get(type).new
420
- temp_model.build_from_hash(value)
421
- end
422
- end
423
-
424
- # Returns the string representation of the object
425
- # @return [String] String presentation of the object
426
- def to_s
427
- to_hash.to_s
428
- end
429
-
430
- # to_body is an alias to to_hash (backward compatibility)
431
- # @return [Hash] Returns the object in the form of hash
432
- def to_body
433
- to_hash
434
- end
435
-
436
- # Returns the object in the form of hash
437
- # @return [Hash] Returns the object in the form of hash
438
- def to_hash
439
- hash = {}
440
- self.class.attribute_map.each_pair do |attr, param|
441
- value = self.send(attr)
442
- next if value.nil?
443
- hash[param] = _to_hash(value)
444
- end
445
- hash
446
- end
447
-
448
- # Outputs non-array value in the form of hash
449
- # For object, use to_hash. Otherwise, just return the value
450
- # @param [Object] value Any valid value
451
- # @return [Hash] Returns the value in the form of hash
452
- def _to_hash(value)
453
- if value.is_a?(Array)
454
- value.compact.map { |v| _to_hash(v) }
455
- elsif value.is_a?(Hash)
456
- {}.tap do |hash|
457
- value.each { |k, v| hash[k] = _to_hash(v) }
458
- end
459
- elsif value.respond_to? :to_hash
460
- value.to_hash
461
- else
462
- value
463
- end
464
- end
465
-
466
- end
467
-
468
- end