aspose_words_cloud 26.1 → 26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: add8928fbefef5ff466c15fb65dc35d1e0e53c1495dbf0e0087895226943894a
|
|
4
|
+
data.tar.gz: 7aaa54d252b1d029873c36786649b56d39d7ad7505a6009677c0596ab2ffbd59
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c49da9baa7b4c3f5b282eb8d0fc95591cb450643e7b7d704c24a4d522306a23e697cbed74838b1d0cd279cee87db70b0c1cfaee0c1fbad6eb50d45c93952891
|
|
7
|
+
data.tar.gz: 4a823f607cef181eaf0ae811885bf959c19f9e313b69213d9b75e92b2d243d954cb8619ba92aca93a2cd9b2ec14a79647f695e5d2898d264e82bbb001dafff96
|
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
# ------------------------------------------------------------------------------------
|
|
2
|
+
# <copyright company="Aspose" file="docling_save_options_data.rb">
|
|
3
|
+
# Copyright (c) 2026 Aspose.Words for Cloud
|
|
4
|
+
# </copyright>
|
|
5
|
+
# <summary>
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
# furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
# copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
# SOFTWARE.
|
|
23
|
+
# </summary>
|
|
24
|
+
# ------------------------------------------------------------------------------------
|
|
25
|
+
|
|
26
|
+
require 'date'
|
|
27
|
+
|
|
28
|
+
module AsposeWordsCloud
|
|
29
|
+
|
|
30
|
+
# Container class for docling json save options.
|
|
31
|
+
class DoclingSaveOptionsData
|
|
32
|
+
# Gets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved. The default value is false..
|
|
33
|
+
# Note, Word does not embed PostScript fonts, but can open documents with embedded fonts of this type.
|
|
34
|
+
# This option only works when Aspose.Words.Fonts.FontInfoCollection.EmbedTrueTypeFonts of the Aspose.Words.DocumentBase.FontInfos property is set to true.
|
|
35
|
+
# The default value is false.
|
|
36
|
+
attr_accessor :allow_embedding_post_script_fonts
|
|
37
|
+
|
|
38
|
+
# Gets or sets CustomTimeZoneInfo.
|
|
39
|
+
attr_accessor :custom_time_zone_info_data
|
|
40
|
+
|
|
41
|
+
# Gets or sets the value determining how 3D effects are rendered.
|
|
42
|
+
# The default value is Aspose.Words.Saving.Dml3DEffectsRenderingMode.Basic.
|
|
43
|
+
attr_accessor :dml3_d_effects_rendering_mode
|
|
44
|
+
|
|
45
|
+
# Gets or sets the value determining how DrawingML effects are rendered.
|
|
46
|
+
# { Simplified | None | Fine }.
|
|
47
|
+
# The default value is Simplified.
|
|
48
|
+
# This property is used when the document is exported to fixed page formats.
|
|
49
|
+
attr_accessor :dml_effects_rendering_mode
|
|
50
|
+
|
|
51
|
+
# Gets or sets the option that controls how DrawingML shapes are rendered.
|
|
52
|
+
# { Fallback | DrawingML }. The default value is Fallback.
|
|
53
|
+
# This property is used when the document is exported to fixed page formats.
|
|
54
|
+
attr_accessor :dml_rendering_mode
|
|
55
|
+
|
|
56
|
+
# Gets or sets the name of destination file.
|
|
57
|
+
attr_accessor :file_name
|
|
58
|
+
|
|
59
|
+
# Gets or sets the value determining how ink (InkML) objects are rendered.
|
|
60
|
+
# The default value is Aspose.Words.Saving.ImlRenderingMode.InkML.
|
|
61
|
+
attr_accessor :iml_rendering_mode
|
|
62
|
+
|
|
63
|
+
# Gets or sets a value indicating whether the font attributes will be changed according to the character code being used.
|
|
64
|
+
attr_accessor :update_ambiguous_text_font
|
|
65
|
+
|
|
66
|
+
# Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
|
|
67
|
+
# The default value is false.
|
|
68
|
+
attr_accessor :update_created_time_property
|
|
69
|
+
|
|
70
|
+
# Gets or sets a value indicating whether fields should be updated before saving the document to a fixed page format. The default value is true.
|
|
71
|
+
attr_accessor :update_fields
|
|
72
|
+
|
|
73
|
+
# Gets or sets a value indicating whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastPrinted property is updated before saving.
|
|
74
|
+
attr_accessor :update_last_printed_property
|
|
75
|
+
|
|
76
|
+
# Gets or sets a value indicating whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastSavedTime property is updated before saving.
|
|
77
|
+
# The default value is false.
|
|
78
|
+
attr_accessor :update_last_saved_time_property
|
|
79
|
+
|
|
80
|
+
# Gets or sets a value indicating whether to zip output or not.
|
|
81
|
+
# The default value is false.
|
|
82
|
+
# When set to true, output files will be zipped.
|
|
83
|
+
attr_accessor :zip_output
|
|
84
|
+
|
|
85
|
+
# Gets or sets a value indicating whether non-image shapes should be rendered and written to the output
|
|
86
|
+
# Docling JSON document.
|
|
87
|
+
# If the property is false, non-image shapes are not exported to the output document.
|
|
88
|
+
# The default value is false.
|
|
89
|
+
attr_accessor :render_non_image_shapes
|
|
90
|
+
|
|
91
|
+
# Gets the format of save.
|
|
92
|
+
attr_accessor :save_format
|
|
93
|
+
|
|
94
|
+
class EnumAttributeValidator
|
|
95
|
+
attr_reader :datatype
|
|
96
|
+
attr_reader :allowable_values
|
|
97
|
+
|
|
98
|
+
def initialize(datatype, allowable_values)
|
|
99
|
+
@allowable_values = allowable_values.map do |value|
|
|
100
|
+
case datatype.to_s
|
|
101
|
+
when /Integer/i
|
|
102
|
+
value.to_i
|
|
103
|
+
when /Float/i
|
|
104
|
+
value.to_f
|
|
105
|
+
else
|
|
106
|
+
value
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def valid?(value)
|
|
112
|
+
!value || allowable_values.include?(value)
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
117
|
+
def self.attribute_map
|
|
118
|
+
{
|
|
119
|
+
:'allow_embedding_post_script_fonts' => :'AllowEmbeddingPostScriptFonts',
|
|
120
|
+
:'custom_time_zone_info_data' => :'CustomTimeZoneInfoData',
|
|
121
|
+
:'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
|
|
122
|
+
:'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
|
|
123
|
+
:'dml_rendering_mode' => :'DmlRenderingMode',
|
|
124
|
+
:'file_name' => :'FileName',
|
|
125
|
+
:'iml_rendering_mode' => :'ImlRenderingMode',
|
|
126
|
+
:'update_ambiguous_text_font' => :'UpdateAmbiguousTextFont',
|
|
127
|
+
:'update_created_time_property' => :'UpdateCreatedTimeProperty',
|
|
128
|
+
:'update_fields' => :'UpdateFields',
|
|
129
|
+
:'update_last_printed_property' => :'UpdateLastPrintedProperty',
|
|
130
|
+
:'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
|
|
131
|
+
:'zip_output' => :'ZipOutput',
|
|
132
|
+
:'render_non_image_shapes' => :'RenderNonImageShapes',
|
|
133
|
+
:'save_format' => :'SaveFormat'
|
|
134
|
+
}
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Attribute type mapping.
|
|
138
|
+
def self.swagger_types
|
|
139
|
+
{
|
|
140
|
+
:'allow_embedding_post_script_fonts' => :'BOOLEAN',
|
|
141
|
+
:'custom_time_zone_info_data' => :'TimeZoneInfoData',
|
|
142
|
+
:'dml3_d_effects_rendering_mode' => :'String',
|
|
143
|
+
:'dml_effects_rendering_mode' => :'String',
|
|
144
|
+
:'dml_rendering_mode' => :'String',
|
|
145
|
+
:'file_name' => :'String',
|
|
146
|
+
:'iml_rendering_mode' => :'String',
|
|
147
|
+
:'update_ambiguous_text_font' => :'BOOLEAN',
|
|
148
|
+
:'update_created_time_property' => :'BOOLEAN',
|
|
149
|
+
:'update_fields' => :'BOOLEAN',
|
|
150
|
+
:'update_last_printed_property' => :'BOOLEAN',
|
|
151
|
+
:'update_last_saved_time_property' => :'BOOLEAN',
|
|
152
|
+
:'zip_output' => :'BOOLEAN',
|
|
153
|
+
:'render_non_image_shapes' => :'BOOLEAN',
|
|
154
|
+
:'save_format' => :'String'
|
|
155
|
+
}
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Initializes the object
|
|
159
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
160
|
+
def initialize(attributes = {})
|
|
161
|
+
return unless attributes.is_a?(Hash)
|
|
162
|
+
|
|
163
|
+
# convert string to symbol for hash key
|
|
164
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
165
|
+
|
|
166
|
+
self.save_format = 'docling'
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'AllowEmbeddingPostScriptFonts')
|
|
169
|
+
self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'CustomTimeZoneInfoData')
|
|
173
|
+
self.custom_time_zone_info_data = attributes[:'CustomTimeZoneInfoData']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'Dml3DEffectsRenderingMode')
|
|
177
|
+
self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'DmlEffectsRenderingMode')
|
|
181
|
+
self.dml_effects_rendering_mode = attributes[:'DmlEffectsRenderingMode']
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'DmlRenderingMode')
|
|
185
|
+
self.dml_rendering_mode = attributes[:'DmlRenderingMode']
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'FileName')
|
|
189
|
+
self.file_name = attributes[:'FileName']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'ImlRenderingMode')
|
|
193
|
+
self.iml_rendering_mode = attributes[:'ImlRenderingMode']
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'UpdateAmbiguousTextFont')
|
|
197
|
+
self.update_ambiguous_text_font = attributes[:'UpdateAmbiguousTextFont']
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'UpdateCreatedTimeProperty')
|
|
201
|
+
self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'UpdateFields')
|
|
205
|
+
self.update_fields = attributes[:'UpdateFields']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'UpdateLastPrintedProperty')
|
|
209
|
+
self.update_last_printed_property = attributes[:'UpdateLastPrintedProperty']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'UpdateLastSavedTimeProperty')
|
|
213
|
+
self.update_last_saved_time_property = attributes[:'UpdateLastSavedTimeProperty']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'ZipOutput')
|
|
217
|
+
self.zip_output = attributes[:'ZipOutput']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'RenderNonImageShapes')
|
|
221
|
+
self.render_non_image_shapes = attributes[:'RenderNonImageShapes']
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Check to see if the all the properties in the model are valid
|
|
226
|
+
# @return true if the model is valid
|
|
227
|
+
def valid?
|
|
228
|
+
dml3_d_effects_rendering_mode_validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
|
229
|
+
return false unless dml3_d_effects_rendering_mode_validator.valid?(@dml3_d_effects_rendering_mode)
|
|
230
|
+
dml_effects_rendering_mode_validator = EnumAttributeValidator.new('String', ["Simplified", "None", "Fine"])
|
|
231
|
+
return false unless dml_effects_rendering_mode_validator.valid?(@dml_effects_rendering_mode)
|
|
232
|
+
dml_rendering_mode_validator = EnumAttributeValidator.new('String', ["Fallback", "DrawingML"])
|
|
233
|
+
return false unless dml_rendering_mode_validator.valid?(@dml_rendering_mode)
|
|
234
|
+
iml_rendering_mode_validator = EnumAttributeValidator.new('String', ["Fallback", "InkML"])
|
|
235
|
+
return false unless iml_rendering_mode_validator.valid?(@iml_rendering_mode)
|
|
236
|
+
|
|
237
|
+
return true
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
241
|
+
# @param [Object] dml3_d_effects_rendering_mode Object to be assigned
|
|
242
|
+
def dml3_d_effects_rendering_mode=(dml3_d_effects_rendering_mode)
|
|
243
|
+
validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
|
244
|
+
if dml3_d_effects_rendering_mode.to_i == 0
|
|
245
|
+
unless validator.valid?(dml3_d_effects_rendering_mode)
|
|
246
|
+
raise ArgumentError, "invalid value for 'dml3_d_effects_rendering_mode', must be one of #{validator.allowable_values}."
|
|
247
|
+
end
|
|
248
|
+
@dml3_d_effects_rendering_mode = dml3_d_effects_rendering_mode
|
|
249
|
+
else
|
|
250
|
+
@dml3_d_effects_rendering_mode = validator.allowable_values[dml3_d_effects_rendering_mode.to_i]
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
255
|
+
# @param [Object] dml_effects_rendering_mode Object to be assigned
|
|
256
|
+
def dml_effects_rendering_mode=(dml_effects_rendering_mode)
|
|
257
|
+
validator = EnumAttributeValidator.new('String', ["Simplified", "None", "Fine"])
|
|
258
|
+
if dml_effects_rendering_mode.to_i == 0
|
|
259
|
+
unless validator.valid?(dml_effects_rendering_mode)
|
|
260
|
+
raise ArgumentError, "invalid value for 'dml_effects_rendering_mode', must be one of #{validator.allowable_values}."
|
|
261
|
+
end
|
|
262
|
+
@dml_effects_rendering_mode = dml_effects_rendering_mode
|
|
263
|
+
else
|
|
264
|
+
@dml_effects_rendering_mode = validator.allowable_values[dml_effects_rendering_mode.to_i]
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
269
|
+
# @param [Object] dml_rendering_mode Object to be assigned
|
|
270
|
+
def dml_rendering_mode=(dml_rendering_mode)
|
|
271
|
+
validator = EnumAttributeValidator.new('String', ["Fallback", "DrawingML"])
|
|
272
|
+
if dml_rendering_mode.to_i == 0
|
|
273
|
+
unless validator.valid?(dml_rendering_mode)
|
|
274
|
+
raise ArgumentError, "invalid value for 'dml_rendering_mode', must be one of #{validator.allowable_values}."
|
|
275
|
+
end
|
|
276
|
+
@dml_rendering_mode = dml_rendering_mode
|
|
277
|
+
else
|
|
278
|
+
@dml_rendering_mode = validator.allowable_values[dml_rendering_mode.to_i]
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
283
|
+
# @param [Object] iml_rendering_mode Object to be assigned
|
|
284
|
+
def iml_rendering_mode=(iml_rendering_mode)
|
|
285
|
+
validator = EnumAttributeValidator.new('String', ["Fallback", "InkML"])
|
|
286
|
+
if iml_rendering_mode.to_i == 0
|
|
287
|
+
unless validator.valid?(iml_rendering_mode)
|
|
288
|
+
raise ArgumentError, "invalid value for 'iml_rendering_mode', must be one of #{validator.allowable_values}."
|
|
289
|
+
end
|
|
290
|
+
@iml_rendering_mode = iml_rendering_mode
|
|
291
|
+
else
|
|
292
|
+
@iml_rendering_mode = validator.allowable_values[iml_rendering_mode.to_i]
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
# Checks equality by comparing each attribute.
|
|
298
|
+
# @param [Object] Object to be compared
|
|
299
|
+
def ==(other)
|
|
300
|
+
return true if self.equal?(other)
|
|
301
|
+
self.class == other.class &&
|
|
302
|
+
allow_embedding_post_script_fonts == other.allow_embedding_post_script_fonts &&
|
|
303
|
+
custom_time_zone_info_data == other.custom_time_zone_info_data &&
|
|
304
|
+
dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
|
|
305
|
+
dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
|
|
306
|
+
dml_rendering_mode == other.dml_rendering_mode &&
|
|
307
|
+
file_name == other.file_name &&
|
|
308
|
+
iml_rendering_mode == other.iml_rendering_mode &&
|
|
309
|
+
update_ambiguous_text_font == other.update_ambiguous_text_font &&
|
|
310
|
+
update_created_time_property == other.update_created_time_property &&
|
|
311
|
+
update_fields == other.update_fields &&
|
|
312
|
+
update_last_printed_property == other.update_last_printed_property &&
|
|
313
|
+
update_last_saved_time_property == other.update_last_saved_time_property &&
|
|
314
|
+
zip_output == other.zip_output &&
|
|
315
|
+
render_non_image_shapes == other.render_non_image_shapes &&
|
|
316
|
+
save_format == other.save_format
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# @see the `==` method
|
|
320
|
+
# @param [Object] Object to be compared
|
|
321
|
+
def eql?(other)
|
|
322
|
+
self == other
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# Calculates hash code according to all attributes.
|
|
326
|
+
# @return [Fixnum] Hash code
|
|
327
|
+
def hash
|
|
328
|
+
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_ambiguous_text_font, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, zip_output, render_non_image_shapes, save_format].hash
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# Builds the object from hash
|
|
332
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
333
|
+
# @return [Object] Returns the model itself
|
|
334
|
+
def build_from_hash(attributes)
|
|
335
|
+
return nil unless attributes.is_a?(Hash)
|
|
336
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
337
|
+
if type =~ /\AArray<(.*)>/i
|
|
338
|
+
# check to ensure the input is an array given that the the attribute
|
|
339
|
+
# is documented as an array but the input is not
|
|
340
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
341
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
342
|
+
end
|
|
343
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
344
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
345
|
+
end
|
|
346
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
self
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Deserializes the data based on type
|
|
353
|
+
# @param string type Data type
|
|
354
|
+
# @param string value Value to be deserialized
|
|
355
|
+
# @return [Object] Deserialized data
|
|
356
|
+
def _deserialize(type, value)
|
|
357
|
+
case type.to_sym
|
|
358
|
+
when :DateTime
|
|
359
|
+
Time.at(/\d/.match(value)[0].to_f).to_datetime
|
|
360
|
+
when :Date
|
|
361
|
+
Time.at(/\d/.match(value)[0].to_f).to_date
|
|
362
|
+
when :String
|
|
363
|
+
value.to_s
|
|
364
|
+
when :Integer
|
|
365
|
+
value.to_i
|
|
366
|
+
when :Float
|
|
367
|
+
value.to_f
|
|
368
|
+
when :BOOLEAN
|
|
369
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
370
|
+
true
|
|
371
|
+
else
|
|
372
|
+
false
|
|
373
|
+
end
|
|
374
|
+
when :Object
|
|
375
|
+
# generic object (usually a Hash), return directly
|
|
376
|
+
value
|
|
377
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
378
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
379
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
380
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
381
|
+
k_type = Regexp.last_match[:k_type]
|
|
382
|
+
v_type = Regexp.last_match[:v_type]
|
|
383
|
+
{}.tap do |hash|
|
|
384
|
+
value.each do |k, v|
|
|
385
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
else
|
|
389
|
+
# model
|
|
390
|
+
if value[:'$type']
|
|
391
|
+
type = value[:'$type'][0..-4]
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
temp_model = AsposeWordsCloud.const_get(type).new
|
|
395
|
+
temp_model.build_from_hash(value)
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# Returns the string representation of the object
|
|
400
|
+
# @return [String] String presentation of the object
|
|
401
|
+
def to_s
|
|
402
|
+
to_hash.to_s
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
406
|
+
# @return [Hash] Returns the object in the form of hash
|
|
407
|
+
def to_body
|
|
408
|
+
to_hash
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Returns the object in the form of hash
|
|
412
|
+
# @return [Hash] Returns the object in the form of hash
|
|
413
|
+
def to_hash
|
|
414
|
+
hash = {}
|
|
415
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
416
|
+
value = self.send(attr)
|
|
417
|
+
next if value.nil?
|
|
418
|
+
hash[param] = _to_hash(value)
|
|
419
|
+
end
|
|
420
|
+
hash
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Outputs non-array value in the form of hash
|
|
424
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
425
|
+
# @param [Object] value Any valid value
|
|
426
|
+
# @return [Hash] Returns the value in the form of hash
|
|
427
|
+
def _to_hash(value)
|
|
428
|
+
if value.is_a?(Array)
|
|
429
|
+
value.compact.map { |v| _to_hash(v) }
|
|
430
|
+
elsif value.is_a?(Hash)
|
|
431
|
+
{}.tap do |hash|
|
|
432
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
433
|
+
end
|
|
434
|
+
elsif value.respond_to? :to_hash
|
|
435
|
+
value.to_hash
|
|
436
|
+
else
|
|
437
|
+
value
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
def collectFilesContent(resultFilesContent)
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
def validate()
|
|
445
|
+
raise ArgumentError, 'Property file_name in DoclingSaveOptionsData is required.' if self.file_name.nil?
|
|
446
|
+
unless self.custom_time_zone_info_data.nil?
|
|
447
|
+
self.custom_time_zone_info_data.validate
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
end
|
|
453
|
+
end
|
data/lib/aspose_words_cloud.rb
CHANGED
|
@@ -68,6 +68,7 @@ require_relative 'aspose_words_cloud/models/custom_xml_parts_collection'
|
|
|
68
68
|
require_relative 'aspose_words_cloud/models/custom_xml_parts_response'
|
|
69
69
|
require_relative 'aspose_words_cloud/models/custom_xml_part_update'
|
|
70
70
|
require_relative 'aspose_words_cloud/models/digital_signature_details'
|
|
71
|
+
require_relative 'aspose_words_cloud/models/docling_save_options_data'
|
|
71
72
|
require_relative 'aspose_words_cloud/models/docm_save_options_data'
|
|
72
73
|
require_relative 'aspose_words_cloud/models/doc_save_options_data'
|
|
73
74
|
require_relative 'aspose_words_cloud/models/document'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aspose_words_cloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '26.
|
|
4
|
+
version: '26.2'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aspose
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -127,6 +127,7 @@ files:
|
|
|
127
127
|
- lib/aspose_words_cloud/models/custom_xml_parts_response.rb
|
|
128
128
|
- lib/aspose_words_cloud/models/digital_signature_details.rb
|
|
129
129
|
- lib/aspose_words_cloud/models/doc_save_options_data.rb
|
|
130
|
+
- lib/aspose_words_cloud/models/docling_save_options_data.rb
|
|
130
131
|
- lib/aspose_words_cloud/models/docm_save_options_data.rb
|
|
131
132
|
- lib/aspose_words_cloud/models/document.rb
|
|
132
133
|
- lib/aspose_words_cloud/models/document_entry.rb
|