aspose_words_cloud 22.1.0 → 22.2.0

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud/api_client.rb +1 -0
  3. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +12 -14
  4. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +9 -11
  5. data/lib/aspose_words_cloud/models/{ooxml_save_options_data.rb → docm_save_options_data.rb} +15 -17
  6. data/lib/aspose_words_cloud/models/docx_save_options_data.rb +440 -0
  7. data/lib/aspose_words_cloud/models/dot_save_options_data.rb +426 -0
  8. data/lib/aspose_words_cloud/models/dotm_save_options_data.rb +440 -0
  9. data/lib/aspose_words_cloud/models/dotx_save_options_data.rb +440 -0
  10. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +12 -14
  11. data/lib/aspose_words_cloud/models/epub_save_options_data.rb +12 -14
  12. data/lib/aspose_words_cloud/models/flat_opc_macro_save_options_data.rb +440 -0
  13. data/lib/aspose_words_cloud/models/{txt_save_options_base_data.rb → flat_opc_save_options_data.rb} +50 -54
  14. data/lib/aspose_words_cloud/models/flat_opc_template_macro_save_options_data.rb +440 -0
  15. data/lib/aspose_words_cloud/models/flat_opc_template_save_options_data.rb +440 -0
  16. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +12 -14
  17. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +9 -11
  18. data/lib/aspose_words_cloud/models/html_save_options_data.rb +9 -11
  19. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +12 -14
  20. data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +9 -11
  21. data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +12 -14
  22. data/lib/aspose_words_cloud/models/odt_save_options_data.rb +12 -14
  23. data/lib/aspose_words_cloud/models/{fixed_page_save_options_data.rb → open_xps_save_options_data.rb} +55 -17
  24. data/lib/aspose_words_cloud/models/ott_save_options_data.rb +441 -0
  25. data/lib/aspose_words_cloud/models/pcl_save_options_data.rb +12 -14
  26. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +9 -11
  27. data/lib/aspose_words_cloud/models/png_save_options_data.rb +12 -14
  28. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +9 -11
  29. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +9 -11
  30. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +9 -11
  31. data/lib/aspose_words_cloud/models/text_save_options_data.rb +9 -11
  32. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +9 -11
  33. data/lib/aspose_words_cloud/models/word_ml_save_options_data.rb +12 -14
  34. data/lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb +12 -14
  35. data/lib/aspose_words_cloud/models/{save_options_data.rb → xaml_flow_pack_save_options_data.rb} +35 -17
  36. data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +12 -14
  37. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +9 -11
  38. data/lib/aspose_words_cloud/version.rb +1 -1
  39. data/lib/aspose_words_cloud.rb +12 -10
  40. metadata +14 -12
  41. data/lib/aspose_words_cloud/models/comment_base.rb +0 -251
  42. data/lib/aspose_words_cloud/models/document_property_base.rb +0 -201
  43. data/lib/aspose_words_cloud/models/field_base.rb +0 -211
  44. data/lib/aspose_words_cloud/models/footnote_base.rb +0 -273
  45. data/lib/aspose_words_cloud/models/image_save_options_data.rb +0 -585
  46. data/lib/aspose_words_cloud/models/run_base.rb +0 -201
@@ -0,0 +1,441 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="ott_save_options_data.rb">
3
+ # Copyright (c) 2022 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 ott save options.
31
+ class OttSaveOptionsData
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
+ attr_accessor :allow_embedding_post_script_fonts
34
+
35
+ # Gets or sets CustomTimeZoneInfo.
36
+ attr_accessor :custom_time_zone_info_data
37
+
38
+ # Gets or sets the value determining how 3D effects are rendered.
39
+ attr_accessor :dml3_d_effects_rendering_mode
40
+
41
+ # Gets or sets the value determining how DrawingML effects are rendered.
42
+ # { Simplified | None | Fine }.
43
+ attr_accessor :dml_effects_rendering_mode
44
+
45
+ # Gets or sets the option that controls how DrawingML shapes are rendered.
46
+ attr_accessor :dml_rendering_mode
47
+
48
+ # Gets or sets the name of destination file.
49
+ attr_accessor :file_name
50
+
51
+ # Gets or sets value determining which document formats are allowed to be mapped by Aspose.Words.Markup.StructuredDocumentTag.XmlMapping.
52
+ # By default only Aspose.Words.LoadFormat.FlatOpc document format is allowed to be mapped.
53
+ attr_accessor :flat_opc_xml_mapping_only
54
+
55
+ # Gets or sets the value determining how ink (InkML) objects are rendered.
56
+ attr_accessor :iml_rendering_mode
57
+
58
+ # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
59
+ # Default value is false.
60
+ attr_accessor :update_created_time_property
61
+
62
+ # 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.
63
+ attr_accessor :update_fields
64
+
65
+ # Gets or sets a value indicating whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastPrinted property is updated before saving.
66
+ attr_accessor :update_last_printed_property
67
+
68
+ # Gets or sets a value indicating whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastSavedTime property is updated before saving.
69
+ attr_accessor :update_last_saved_time_property
70
+
71
+ # Gets or sets a value indicating whether content of StructuredDocumentTag is updated before saving.
72
+ attr_accessor :update_sdt_content
73
+
74
+ # Gets or sets a value indicating whether to zip output or not.
75
+ # The default value is false.
76
+ attr_accessor :zip_output
77
+
78
+ # Gets or sets a value indicating whether export should correspond to ODT specification 1.1 strictly.
79
+ attr_accessor :is_strict_schema11
80
+
81
+ # Gets or sets the units of measure to apply to document content. The default value is Aspose.Words.Saving.OdtSaveMeasureUnit.Centimeters.
82
+ # Open Office uses centimeters when specifying lengths, widths and other measurable formatting and content properties in documents whereas MS Office uses inches.
83
+ attr_accessor :measure_unit
84
+
85
+ # Gets or sets the password to encrypt document.
86
+ attr_accessor :password
87
+
88
+ # Gets or sets a value indicating whether to use pretty formats output.
89
+ attr_accessor :pretty_format
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
+ :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
126
+ :'iml_rendering_mode' => :'ImlRenderingMode',
127
+ :'update_created_time_property' => :'UpdateCreatedTimeProperty',
128
+ :'update_fields' => :'UpdateFields',
129
+ :'update_last_printed_property' => :'UpdateLastPrintedProperty',
130
+ :'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
131
+ :'update_sdt_content' => :'UpdateSdtContent',
132
+ :'zip_output' => :'ZipOutput',
133
+ :'is_strict_schema11' => :'IsStrictSchema11',
134
+ :'measure_unit' => :'MeasureUnit',
135
+ :'password' => :'Password',
136
+ :'pretty_format' => :'PrettyFormat',
137
+ :'save_format' => :'SaveFormat'
138
+ }
139
+ end
140
+
141
+ # Attribute type mapping.
142
+ def self.swagger_types
143
+ {
144
+ :'allow_embedding_post_script_fonts' => :'BOOLEAN',
145
+ :'custom_time_zone_info_data' => :'TimeZoneInfoData',
146
+ :'dml3_d_effects_rendering_mode' => :'String',
147
+ :'dml_effects_rendering_mode' => :'String',
148
+ :'dml_rendering_mode' => :'String',
149
+ :'file_name' => :'String',
150
+ :'flat_opc_xml_mapping_only' => :'BOOLEAN',
151
+ :'iml_rendering_mode' => :'String',
152
+ :'update_created_time_property' => :'BOOLEAN',
153
+ :'update_fields' => :'BOOLEAN',
154
+ :'update_last_printed_property' => :'BOOLEAN',
155
+ :'update_last_saved_time_property' => :'BOOLEAN',
156
+ :'update_sdt_content' => :'BOOLEAN',
157
+ :'zip_output' => :'BOOLEAN',
158
+ :'is_strict_schema11' => :'BOOLEAN',
159
+ :'measure_unit' => :'String',
160
+ :'password' => :'String',
161
+ :'pretty_format' => :'BOOLEAN',
162
+ :'save_format' => :'String'
163
+ }
164
+ end
165
+
166
+ # Initializes the object
167
+ # @param [Hash] attributes Model attributes in the form of hash
168
+ def initialize(attributes = {})
169
+ return unless attributes.is_a?(Hash)
170
+
171
+ # convert string to symbol for hash key
172
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
173
+
174
+ self.save_format = 'ott'
175
+
176
+ if attributes.key?(:'AllowEmbeddingPostScriptFonts')
177
+ self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
178
+ end
179
+
180
+ if attributes.key?(:'CustomTimeZoneInfoData')
181
+ self.custom_time_zone_info_data = attributes[:'CustomTimeZoneInfoData']
182
+ end
183
+
184
+ if attributes.key?(:'Dml3DEffectsRenderingMode')
185
+ self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
186
+ end
187
+
188
+ if attributes.key?(:'DmlEffectsRenderingMode')
189
+ self.dml_effects_rendering_mode = attributes[:'DmlEffectsRenderingMode']
190
+ end
191
+
192
+ if attributes.key?(:'DmlRenderingMode')
193
+ self.dml_rendering_mode = attributes[:'DmlRenderingMode']
194
+ end
195
+
196
+ if attributes.key?(:'FileName')
197
+ self.file_name = attributes[:'FileName']
198
+ end
199
+
200
+ if attributes.key?(:'FlatOpcXmlMappingOnly')
201
+ self.flat_opc_xml_mapping_only = attributes[:'FlatOpcXmlMappingOnly']
202
+ end
203
+
204
+ if attributes.key?(:'ImlRenderingMode')
205
+ self.iml_rendering_mode = attributes[:'ImlRenderingMode']
206
+ end
207
+
208
+ if attributes.key?(:'UpdateCreatedTimeProperty')
209
+ self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
210
+ end
211
+
212
+ if attributes.key?(:'UpdateFields')
213
+ self.update_fields = attributes[:'UpdateFields']
214
+ end
215
+
216
+ if attributes.key?(:'UpdateLastPrintedProperty')
217
+ self.update_last_printed_property = attributes[:'UpdateLastPrintedProperty']
218
+ end
219
+
220
+ if attributes.key?(:'UpdateLastSavedTimeProperty')
221
+ self.update_last_saved_time_property = attributes[:'UpdateLastSavedTimeProperty']
222
+ end
223
+
224
+ if attributes.key?(:'UpdateSdtContent')
225
+ self.update_sdt_content = attributes[:'UpdateSdtContent']
226
+ end
227
+
228
+ if attributes.key?(:'ZipOutput')
229
+ self.zip_output = attributes[:'ZipOutput']
230
+ end
231
+
232
+ if attributes.key?(:'IsStrictSchema11')
233
+ self.is_strict_schema11 = attributes[:'IsStrictSchema11']
234
+ end
235
+
236
+ if attributes.key?(:'MeasureUnit')
237
+ self.measure_unit = attributes[:'MeasureUnit']
238
+ end
239
+
240
+ if attributes.key?(:'Password')
241
+ self.password = attributes[:'Password']
242
+ end
243
+
244
+ if attributes.key?(:'PrettyFormat')
245
+ self.pretty_format = attributes[:'PrettyFormat']
246
+ end
247
+ end
248
+
249
+ # Show invalid properties with the reasons. Usually used together with valid?
250
+ # @return Array for valid properies with the reasons
251
+ def list_invalid_properties
252
+ invalid_properties = []
253
+ return invalid_properties
254
+ end
255
+
256
+ # Check to see if the all the properties in the model are valid
257
+ # @return true if the model is valid
258
+ def valid?
259
+ dml3_d_effects_rendering_mode_validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
260
+ return false unless dml3_d_effects_rendering_mode_validator.valid?(@dml3_d_effects_rendering_mode)
261
+ measure_unit_validator = EnumAttributeValidator.new('String', ["Centimeters", "Inches"])
262
+ return false unless measure_unit_validator.valid?(@measure_unit)
263
+
264
+ return true
265
+ end
266
+
267
+ # Custom attribute writer method checking allowed values (enum).
268
+ # @param [Object] dml3_d_effects_rendering_mode Object to be assigned
269
+ def dml3_d_effects_rendering_mode=(dml3_d_effects_rendering_mode)
270
+ validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
271
+ if dml3_d_effects_rendering_mode.to_i == 0
272
+ unless validator.valid?(dml3_d_effects_rendering_mode)
273
+ raise ArgumentError, "invalid value for 'dml3_d_effects_rendering_mode', must be one of #{validator.allowable_values}."
274
+ end
275
+ @dml3_d_effects_rendering_mode = dml3_d_effects_rendering_mode
276
+ else
277
+ @dml3_d_effects_rendering_mode = validator.allowable_values[dml3_d_effects_rendering_mode.to_i]
278
+ end
279
+ end
280
+
281
+ # Custom attribute writer method checking allowed values (enum).
282
+ # @param [Object] measure_unit Object to be assigned
283
+ def measure_unit=(measure_unit)
284
+ validator = EnumAttributeValidator.new('String', ["Centimeters", "Inches"])
285
+ if measure_unit.to_i == 0
286
+ unless validator.valid?(measure_unit)
287
+ raise ArgumentError, "invalid value for 'measure_unit', must be one of #{validator.allowable_values}."
288
+ end
289
+ @measure_unit = measure_unit
290
+ else
291
+ @measure_unit = validator.allowable_values[measure_unit.to_i]
292
+ end
293
+ end
294
+
295
+
296
+ # Checks equality by comparing each attribute.
297
+ # @param [Object] Object to be compared
298
+ def ==(other)
299
+ return true if self.equal?(other)
300
+ self.class == other.class &&
301
+ allow_embedding_post_script_fonts == other.allow_embedding_post_script_fonts &&
302
+ custom_time_zone_info_data == other.custom_time_zone_info_data &&
303
+ dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
304
+ dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
305
+ dml_rendering_mode == other.dml_rendering_mode &&
306
+ file_name == other.file_name &&
307
+ flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
308
+ iml_rendering_mode == other.iml_rendering_mode &&
309
+ update_created_time_property == other.update_created_time_property &&
310
+ update_fields == other.update_fields &&
311
+ update_last_printed_property == other.update_last_printed_property &&
312
+ update_last_saved_time_property == other.update_last_saved_time_property &&
313
+ update_sdt_content == other.update_sdt_content &&
314
+ zip_output == other.zip_output &&
315
+ is_strict_schema11 == other.is_strict_schema11 &&
316
+ measure_unit == other.measure_unit &&
317
+ password == other.password &&
318
+ pretty_format == other.pretty_format &&
319
+ save_format == other.save_format
320
+ end
321
+
322
+ # @see the `==` method
323
+ # @param [Object] Object to be compared
324
+ def eql?(other)
325
+ self == other
326
+ end
327
+
328
+ # Calculates hash code according to all attributes.
329
+ # @return [Fixnum] Hash code
330
+ def hash
331
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, is_strict_schema11, measure_unit, password, pretty_format, save_format].hash
332
+ end
333
+
334
+ # Builds the object from hash
335
+ # @param [Hash] attributes Model attributes in the form of hash
336
+ # @return [Object] Returns the model itself
337
+ def build_from_hash(attributes)
338
+ return nil unless attributes.is_a?(Hash)
339
+ self.class.swagger_types.each_pair do |key, type|
340
+ if type =~ /\AArray<(.*)>/i
341
+ # check to ensure the input is an array given that the the attribute
342
+ # is documented as an array but the input is not
343
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
344
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
345
+ end
346
+ elsif !attributes[self.class.attribute_map[key]].nil?
347
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
348
+ end
349
+ # or else data not found in attributes(hash), not an issue as the data can be optional
350
+ end
351
+
352
+ self
353
+ end
354
+
355
+ # Deserializes the data based on type
356
+ # @param string type Data type
357
+ # @param string value Value to be deserialized
358
+ # @return [Object] Deserialized data
359
+ def _deserialize(type, value)
360
+ case type.to_sym
361
+ when :DateTime
362
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
363
+ when :Date
364
+ Time.at(/\d/.match(value)[0].to_f).to_date
365
+ when :String
366
+ value.to_s
367
+ when :Integer
368
+ value.to_i
369
+ when :Float
370
+ value.to_f
371
+ when :BOOLEAN
372
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
373
+ true
374
+ else
375
+ false
376
+ end
377
+ when :Object
378
+ # generic object (usually a Hash), return directly
379
+ value
380
+ when /\AArray<(?<inner_type>.+)>\z/
381
+ inner_type = Regexp.last_match[:inner_type]
382
+ value.map { |v| _deserialize(inner_type, v) }
383
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
384
+ k_type = Regexp.last_match[:k_type]
385
+ v_type = Regexp.last_match[:v_type]
386
+ {}.tap do |hash|
387
+ value.each do |k, v|
388
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
389
+ end
390
+ end
391
+ else
392
+ # model
393
+ temp_model = AsposeWordsCloud.const_get(type).new
394
+ temp_model.build_from_hash(value)
395
+ end
396
+ end
397
+
398
+ # Returns the string representation of the object
399
+ # @return [String] String presentation of the object
400
+ def to_s
401
+ to_hash.to_s
402
+ end
403
+
404
+ # to_body is an alias to to_hash (backward compatibility)
405
+ # @return [Hash] Returns the object in the form of hash
406
+ def to_body
407
+ to_hash
408
+ end
409
+
410
+ # Returns the object in the form of hash
411
+ # @return [Hash] Returns the object in the form of hash
412
+ def to_hash
413
+ hash = {}
414
+ self.class.attribute_map.each_pair do |attr, param|
415
+ value = self.send(attr)
416
+ next if value.nil?
417
+ hash[param] = _to_hash(value)
418
+ end
419
+ hash
420
+ end
421
+
422
+ # Outputs non-array value in the form of hash
423
+ # For object, use to_hash. Otherwise, just return the value
424
+ # @param [Object] value Any valid value
425
+ # @return [Hash] Returns the value in the form of hash
426
+ def _to_hash(value)
427
+ if value.is_a?(Array)
428
+ value.compact.map { |v| _to_hash(v) }
429
+ elsif value.is_a?(Hash)
430
+ {}.tap do |hash|
431
+ value.each { |k, v| hash[k] = _to_hash(v) }
432
+ end
433
+ elsif value.respond_to? :to_hash
434
+ value.to_hash
435
+ else
436
+ value
437
+ end
438
+ end
439
+
440
+ end
441
+ end
@@ -55,9 +55,6 @@ module AsposeWordsCloud
55
55
  # Gets or sets the value determining how ink (InkML) objects are rendered.
56
56
  attr_accessor :iml_rendering_mode
57
57
 
58
- # Gets or sets the format of save.
59
- attr_accessor :save_format
60
-
61
58
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
62
59
  # Default value is false.
63
60
  attr_accessor :update_created_time_property
@@ -108,6 +105,9 @@ module AsposeWordsCloud
108
105
  # Gets or sets a value indicating whether complex transformed elements should be rasterized before saving to PCL document.. The default value is true.
109
106
  attr_accessor :rasterize_transformed_elements
110
107
 
108
+ # Gets the format of save.
109
+ attr_accessor :save_format
110
+
111
111
  class EnumAttributeValidator
112
112
  attr_reader :datatype
113
113
  attr_reader :allowable_values
@@ -141,7 +141,6 @@ module AsposeWordsCloud
141
141
  :'file_name' => :'FileName',
142
142
  :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
143
143
  :'iml_rendering_mode' => :'ImlRenderingMode',
144
- :'save_format' => :'SaveFormat',
145
144
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
146
145
  :'update_fields' => :'UpdateFields',
147
146
  :'update_last_printed_property' => :'UpdateLastPrintedProperty',
@@ -156,7 +155,8 @@ module AsposeWordsCloud
156
155
  :'page_count' => :'PageCount',
157
156
  :'page_index' => :'PageIndex',
158
157
  :'falllback_font_name' => :'FalllbackFontName',
159
- :'rasterize_transformed_elements' => :'RasterizeTransformedElements'
158
+ :'rasterize_transformed_elements' => :'RasterizeTransformedElements',
159
+ :'save_format' => :'SaveFormat'
160
160
  }
161
161
  end
162
162
 
@@ -171,7 +171,6 @@ module AsposeWordsCloud
171
171
  :'file_name' => :'String',
172
172
  :'flat_opc_xml_mapping_only' => :'BOOLEAN',
173
173
  :'iml_rendering_mode' => :'String',
174
- :'save_format' => :'String',
175
174
  :'update_created_time_property' => :'BOOLEAN',
176
175
  :'update_fields' => :'BOOLEAN',
177
176
  :'update_last_printed_property' => :'BOOLEAN',
@@ -186,7 +185,8 @@ module AsposeWordsCloud
186
185
  :'page_count' => :'Integer',
187
186
  :'page_index' => :'Integer',
188
187
  :'falllback_font_name' => :'String',
189
- :'rasterize_transformed_elements' => :'BOOLEAN'
188
+ :'rasterize_transformed_elements' => :'BOOLEAN',
189
+ :'save_format' => :'String'
190
190
  }
191
191
  end
192
192
 
@@ -198,6 +198,8 @@ module AsposeWordsCloud
198
198
  # convert string to symbol for hash key
199
199
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
200
200
 
201
+ self.save_format = 'pcl'
202
+
201
203
  if attributes.key?(:'AllowEmbeddingPostScriptFonts')
202
204
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
203
205
  end
@@ -230,10 +232,6 @@ module AsposeWordsCloud
230
232
  self.iml_rendering_mode = attributes[:'ImlRenderingMode']
231
233
  end
232
234
 
233
- if attributes.key?(:'SaveFormat')
234
- self.save_format = attributes[:'SaveFormat']
235
- end
236
-
237
235
  if attributes.key?(:'UpdateCreatedTimeProperty')
238
236
  self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
239
237
  end
@@ -339,7 +337,6 @@ module AsposeWordsCloud
339
337
  file_name == other.file_name &&
340
338
  flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
341
339
  iml_rendering_mode == other.iml_rendering_mode &&
342
- save_format == other.save_format &&
343
340
  update_created_time_property == other.update_created_time_property &&
344
341
  update_fields == other.update_fields &&
345
342
  update_last_printed_property == other.update_last_printed_property &&
@@ -354,7 +351,8 @@ module AsposeWordsCloud
354
351
  page_count == other.page_count &&
355
352
  page_index == other.page_index &&
356
353
  falllback_font_name == other.falllback_font_name &&
357
- rasterize_transformed_elements == other.rasterize_transformed_elements
354
+ rasterize_transformed_elements == other.rasterize_transformed_elements &&
355
+ save_format == other.save_format
358
356
  end
359
357
 
360
358
  # @see the `==` method
@@ -366,7 +364,7 @@ module AsposeWordsCloud
366
364
  # Calculates hash code according to all attributes.
367
365
  # @return [Fixnum] Hash code
368
366
  def hash
369
- [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, falllback_font_name, rasterize_transformed_elements].hash
367
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, falllback_font_name, rasterize_transformed_elements, save_format].hash
370
368
  end
371
369
 
372
370
  # Builds the object from hash
@@ -55,9 +55,6 @@ module AsposeWordsCloud
55
55
  # Gets or sets the value determining how ink (InkML) objects are rendered.
56
56
  attr_accessor :iml_rendering_mode
57
57
 
58
- # Gets or sets the format of save.
59
- attr_accessor :save_format
60
-
61
58
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
62
59
  # Default value is false.
63
60
  attr_accessor :update_created_time_property
@@ -166,6 +163,9 @@ module AsposeWordsCloud
166
163
  # Gets or sets a value indicating whether to preserve Microsoft Word form fields as form fields in PDF or convert them to text.
167
164
  attr_accessor :preserve_form_fields
168
165
 
166
+ # Gets the format of save.
167
+ attr_accessor :save_format
168
+
169
169
  # Gets or sets the compression type to be used for all textual content in the document.
170
170
  attr_accessor :text_compression
171
171
 
@@ -214,7 +214,6 @@ module AsposeWordsCloud
214
214
  :'file_name' => :'FileName',
215
215
  :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
216
216
  :'iml_rendering_mode' => :'ImlRenderingMode',
217
- :'save_format' => :'SaveFormat',
218
217
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
219
218
  :'update_fields' => :'UpdateFields',
220
219
  :'update_last_printed_property' => :'UpdateLastPrintedProperty',
@@ -248,6 +247,7 @@ module AsposeWordsCloud
248
247
  :'page_mode' => :'PageMode',
249
248
  :'preblend_images' => :'PreblendImages',
250
249
  :'preserve_form_fields' => :'PreserveFormFields',
250
+ :'save_format' => :'SaveFormat',
251
251
  :'text_compression' => :'TextCompression',
252
252
  :'use_book_fold_printing_settings' => :'UseBookFoldPrintingSettings',
253
253
  :'use_core_fonts' => :'UseCoreFonts',
@@ -267,7 +267,6 @@ module AsposeWordsCloud
267
267
  :'file_name' => :'String',
268
268
  :'flat_opc_xml_mapping_only' => :'BOOLEAN',
269
269
  :'iml_rendering_mode' => :'String',
270
- :'save_format' => :'String',
271
270
  :'update_created_time_property' => :'BOOLEAN',
272
271
  :'update_fields' => :'BOOLEAN',
273
272
  :'update_last_printed_property' => :'BOOLEAN',
@@ -301,6 +300,7 @@ module AsposeWordsCloud
301
300
  :'page_mode' => :'String',
302
301
  :'preblend_images' => :'BOOLEAN',
303
302
  :'preserve_form_fields' => :'BOOLEAN',
303
+ :'save_format' => :'String',
304
304
  :'text_compression' => :'String',
305
305
  :'use_book_fold_printing_settings' => :'BOOLEAN',
306
306
  :'use_core_fonts' => :'BOOLEAN',
@@ -317,6 +317,8 @@ module AsposeWordsCloud
317
317
  # convert string to symbol for hash key
318
318
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
319
319
 
320
+ self.save_format = 'pdf'
321
+
320
322
  if attributes.key?(:'AllowEmbeddingPostScriptFonts')
321
323
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
322
324
  end
@@ -349,10 +351,6 @@ module AsposeWordsCloud
349
351
  self.iml_rendering_mode = attributes[:'ImlRenderingMode']
350
352
  end
351
353
 
352
- if attributes.key?(:'SaveFormat')
353
- self.save_format = attributes[:'SaveFormat']
354
- end
355
-
356
354
  if attributes.key?(:'UpdateCreatedTimeProperty')
357
355
  self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
358
356
  end
@@ -566,7 +564,6 @@ module AsposeWordsCloud
566
564
  file_name == other.file_name &&
567
565
  flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
568
566
  iml_rendering_mode == other.iml_rendering_mode &&
569
- save_format == other.save_format &&
570
567
  update_created_time_property == other.update_created_time_property &&
571
568
  update_fields == other.update_fields &&
572
569
  update_last_printed_property == other.update_last_printed_property &&
@@ -600,6 +597,7 @@ module AsposeWordsCloud
600
597
  page_mode == other.page_mode &&
601
598
  preblend_images == other.preblend_images &&
602
599
  preserve_form_fields == other.preserve_form_fields &&
600
+ save_format == other.save_format &&
603
601
  text_compression == other.text_compression &&
604
602
  use_book_fold_printing_settings == other.use_book_fold_printing_settings &&
605
603
  use_core_fonts == other.use_core_fonts &&
@@ -616,7 +614,7 @@ module AsposeWordsCloud
616
614
  # Calculates hash code according to all attributes.
617
615
  # @return [Fixnum] Hash code
618
616
  def hash
619
- [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, compliance, create_note_hyperlinks, custom_properties_export, digital_signature_details, display_doc_title, downsample_options, embed_full_fonts, encryption_details, export_document_structure, export_language_to_span_tag, font_embedding_mode, header_footer_bookmarks_export_mode, image_color_space_export_mode, image_compression, interpolate_images, open_hyperlinks_in_new_window, outline_options, page_mode, preblend_images, preserve_form_fields, text_compression, use_book_fold_printing_settings, use_core_fonts, zoom_behavior, zoom_factor].hash
617
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, compliance, create_note_hyperlinks, custom_properties_export, digital_signature_details, display_doc_title, downsample_options, embed_full_fonts, encryption_details, export_document_structure, export_language_to_span_tag, font_embedding_mode, header_footer_bookmarks_export_mode, image_color_space_export_mode, image_compression, interpolate_images, open_hyperlinks_in_new_window, outline_options, page_mode, preblend_images, preserve_form_fields, save_format, text_compression, use_book_fold_printing_settings, use_core_fonts, zoom_behavior, zoom_factor].hash
620
618
  end
621
619
 
622
620
  # Builds the object from hash