groupdocs_conversion_cloud 24.8 → 24.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1354fe62e635aea64e167a58a224ac421eb828ae62e34d8ceb7428a57ca5a79
4
- data.tar.gz: 3f11f11e09ef7b69a94c530ebb8595cf4d76eb850167861af5b4c4968688e762
3
+ metadata.gz: ec9ab0c081db03715ec7a7926812068ccef82149c35a294f67803b9691b5999b
4
+ data.tar.gz: 6dbd005c613bd132c88053b18dd2cd8fb55d11f9b6a7f506c2faded3776bdcad
5
5
  SHA512:
6
- metadata.gz: facd18066e84f511bd977f1c080b8e215280883c8878fe575e83dc0ad3227dca150ce0677eed91375052cc00f029228c61fe8390827adaa1d8105955a39626fd
7
- data.tar.gz: 06d857ba949f254664e99703ee9c309a224f4e734bc622707dd7b2fa5e55f35c4e96d2d90bbbe99f42bc94ca034b9fd806a11d12daa892d6c31b1aa89782c473
6
+ metadata.gz: 23bfb5869adca2eacbe2b70dea2a5c195f644ac35ffba023c706bb1a8e70b63eeb54b053c180fa84bc7d4fade9c185f58002ae2e80bd7e0a78529e42ae88ea64
7
+ data.tar.gz: 8e3d21305c44d742390391224b474cf8eb184cb07db34276bb1a08a1d2aa4d0eef60e856c9286e7143c1ded4442d8857faccf6cc6fc457d4ccaf7448a754555f
@@ -37,11 +37,44 @@ module GroupDocsConversionCloud
37
37
  # Enable or disable generation of page numbering in converted document. Default: false
38
38
  attr_accessor :page_numbering
39
39
 
40
+ # Get or sets the encoding to be used when loading the web document. If the property is null the encoding will be determined from document character set attribute
41
+ attr_accessor :encoding
42
+
43
+ # Use pdf for the conversion. Default: false
44
+ attr_accessor :use_pdf
45
+
46
+ # Controls how HTML content is rendered. Default: AbsolutePositioning
47
+ attr_accessor :rendering_mode
48
+ class EnumAttributeValidator
49
+ attr_reader :datatype
50
+ attr_reader :allowable_values
51
+
52
+ def initialize(datatype, allowable_values)
53
+ @allowable_values = allowable_values.map do |value|
54
+ case datatype.to_s
55
+ when /Integer/i
56
+ value.to_i
57
+ when /Float/i
58
+ value.to_f
59
+ else
60
+ value
61
+ end
62
+ end
63
+ end
64
+
65
+ def valid?(value)
66
+ !value || allowable_values.include?(value)
67
+ end
68
+ end
69
+
40
70
  # Attribute mapping from ruby-style variable name to JSON key.
41
71
  def self.attribute_map
42
72
  {
43
73
  :'format' => :'Format',
44
- :'page_numbering' => :'PageNumbering'
74
+ :'page_numbering' => :'PageNumbering',
75
+ :'encoding' => :'Encoding',
76
+ :'use_pdf' => :'UsePdf',
77
+ :'rendering_mode' => :'RenderingMode'
45
78
  }
46
79
  end
47
80
 
@@ -49,7 +82,10 @@ module GroupDocsConversionCloud
49
82
  def self.swagger_types
50
83
  {
51
84
  :'format' => :'String',
52
- :'page_numbering' => :'BOOLEAN'
85
+ :'page_numbering' => :'BOOLEAN',
86
+ :'encoding' => :'String',
87
+ :'use_pdf' => :'BOOLEAN',
88
+ :'rendering_mode' => :'String'
53
89
  }
54
90
  end
55
91
 
@@ -69,6 +105,18 @@ module GroupDocsConversionCloud
69
105
  self.page_numbering = attributes[:'PageNumbering']
70
106
  end
71
107
 
108
+ if attributes.key?(:'Encoding')
109
+ self.encoding = attributes[:'Encoding']
110
+ end
111
+
112
+ if attributes.key?(:'UsePdf')
113
+ self.use_pdf = attributes[:'UsePdf']
114
+ end
115
+
116
+ if attributes.key?(:'RenderingMode')
117
+ self.rendering_mode = attributes[:'RenderingMode']
118
+ end
119
+
72
120
  end
73
121
 
74
122
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -79,6 +127,14 @@ module GroupDocsConversionCloud
79
127
  invalid_properties.push("invalid value for 'page_numbering', page_numbering cannot be nil.")
80
128
  end
81
129
 
130
+ if @use_pdf.nil?
131
+ invalid_properties.push("invalid value for 'use_pdf', use_pdf cannot be nil.")
132
+ end
133
+
134
+ if @rendering_mode.nil?
135
+ invalid_properties.push("invalid value for 'rendering_mode', rendering_mode cannot be nil.")
136
+ end
137
+
82
138
  return invalid_properties
83
139
  end
84
140
 
@@ -86,16 +142,37 @@ module GroupDocsConversionCloud
86
142
  # @return true if the model is valid
87
143
  def valid?
88
144
  return false if @page_numbering.nil?
145
+ return false if @use_pdf.nil?
146
+ return false if @rendering_mode.nil?
147
+ rendering_mode_validator = EnumAttributeValidator.new('String', ["Flow", "AbsolutePositioning"])
148
+ return false unless rendering_mode_validator.valid?(@rendering_mode)
89
149
  return true
90
150
  end
91
151
 
152
+ # Custom attribute writer method checking allowed values (enum).
153
+ # @param [Object] rendering_mode Object to be assigned
154
+ def rendering_mode=(rendering_mode)
155
+ validator = EnumAttributeValidator.new('String', ["Flow", "AbsolutePositioning"])
156
+ if rendering_mode.to_i == 0
157
+ unless validator.valid?(rendering_mode)
158
+ raise ArgumentError, "invalid value for 'rendering_mode', must be one of #{validator.allowable_values}."
159
+ end
160
+ @rendering_mode = rendering_mode
161
+ else
162
+ @rendering_mode = validator.allowable_values[rendering_mode.to_i]
163
+ end
164
+ end
165
+
92
166
  # Checks equality by comparing each attribute.
93
167
  # @param [Object] Object to be compared
94
168
  def ==(other)
95
169
  return true if self.equal?(other)
96
170
  self.class == other.class &&
97
171
  format == other.format &&
98
- page_numbering == other.page_numbering
172
+ page_numbering == other.page_numbering &&
173
+ encoding == other.encoding &&
174
+ use_pdf == other.use_pdf &&
175
+ rendering_mode == other.rendering_mode
99
176
  end
100
177
 
101
178
  # @see the `==` method
@@ -107,7 +184,7 @@ module GroupDocsConversionCloud
107
184
  # Calculates hash code according to all attributes.
108
185
  # @return [Fixnum] Hash code
109
186
  def hash
110
- [format, page_numbering].hash
187
+ [format, page_numbering, encoding, use_pdf, rendering_mode].hash
111
188
  end
112
189
 
113
190
  # Downcases first letter.
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsConversionCloud
28
- VERSION = "24.8".freeze
28
+ VERSION = "24.11".freeze
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_conversion_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '24.8'
4
+ version: '24.11'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday