aspose_words_cloud 26.8 → 26.10

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: e57df56533b7693164d7fdc56243e27997b10f18ab954fbeb212b141e2344442
4
- data.tar.gz: 91479d9fc5835156e178fc20139bb905b5070d7a1ca4c3a28c3e022170fa64c6
3
+ metadata.gz: ec14f969f69d3dc35e3266efb5c4c8ddd2d59f4c829b8381f920767dc2177cca
4
+ data.tar.gz: f0ab912c81c94e5394f4fc9c4fd6fe655c3f621af56afbf952abf85cc2a8b4b6
5
5
  SHA512:
6
- metadata.gz: 5be98293080d5cd6f42d7fd324b84efc4fd9ba32a792338d4619213696f4bd2bc4bf104b3f76751b874934945da27f2a3a3d88bfc8caedbabc4988f3aee08ee9
7
- data.tar.gz: bdb47ca8046635c132f0783c97aec39d4b9a34def64c2f4ceffd8653fa251a8c0e10381edd2c51be908cc3496cdaa28c5efea9ff1addbd2972489681d55cb54f
6
+ metadata.gz: dd3ba5939380de99a008903ad158b3aeb367e99b747a01e01ee99dc8bf6156285cdb8d8f59ab0b90ff43c7aac58916358f1c6b11414aaaa6aa644524eadffb5b
7
+ data.tar.gz: 220a824f8d08be346a8e9365917d00cd07c6168d15d21f1ff249ad831c7fa0ce6f399c6ae0b1ab19528f9a1964e6745569368d449605c7dad2bce83bdc70ead9
@@ -0,0 +1,227 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="advanced_compare_options.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
+ # Allows to set advanced compare options.
31
+ class AdvancedCompareOptions
32
+ # Gets or sets the value indicating whether list definition contents are compared instead of list definition Ids.
33
+ # Default value is false.
34
+ attr_accessor :compare_list_definitions
35
+
36
+ # Gets or sets the value indicating whether to ignore difference in DrawingML unique Id.
37
+ # Default value is false.
38
+ attr_accessor :ignore_dml_unique_id
39
+
40
+ # Gets or sets the value indicating whether to ignore difference in StructuredDocumentTag store item Id.
41
+ # Default value is false.
42
+ attr_accessor :ignore_store_item_id
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'compare_list_definitions' => :'CompareListDefinitions',
47
+ :'ignore_dml_unique_id' => :'IgnoreDmlUniqueId',
48
+ :'ignore_store_item_id' => :'IgnoreStoreItemId'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.swagger_types
54
+ {
55
+ :'compare_list_definitions' => :'BOOLEAN',
56
+ :'ignore_dml_unique_id' => :'BOOLEAN',
57
+ :'ignore_store_item_id' => :'BOOLEAN'
58
+ }
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ return unless attributes.is_a?(Hash)
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
+
69
+ if attributes.key?(:'CompareListDefinitions')
70
+ self.compare_list_definitions = attributes[:'CompareListDefinitions']
71
+ end
72
+
73
+ if attributes.key?(:'IgnoreDmlUniqueId')
74
+ self.ignore_dml_unique_id = attributes[:'IgnoreDmlUniqueId']
75
+ end
76
+
77
+ if attributes.key?(:'IgnoreStoreItemId')
78
+ self.ignore_store_item_id = attributes[:'IgnoreStoreItemId']
79
+ end
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ return true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(other)
91
+ return true if self.equal?(other)
92
+ self.class == other.class &&
93
+ compare_list_definitions == other.compare_list_definitions &&
94
+ ignore_dml_unique_id == other.ignore_dml_unique_id &&
95
+ ignore_store_item_id == other.ignore_store_item_id
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(other)
101
+ self == other
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [compare_list_definitions, ignore_dml_unique_id, ignore_store_item_id].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end
125
+ # or else data not found in attributes(hash), not an issue as the data can be optional
126
+ end
127
+
128
+ self
129
+ end
130
+
131
+ # Deserializes the data based on type
132
+ # @param string type Data type
133
+ # @param string value Value to be deserialized
134
+ # @return [Object] Deserialized data
135
+ def _deserialize(type, value)
136
+ case type.to_sym
137
+ when :DateTime
138
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
139
+ when :Date
140
+ Time.at(/\d/.match(value)[0].to_f).to_date
141
+ when :String
142
+ value.to_s
143
+ when :Integer
144
+ value.to_i
145
+ when :Float
146
+ value.to_f
147
+ when :BOOLEAN
148
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
+ true
150
+ else
151
+ false
152
+ end
153
+ when :Object
154
+ # generic object (usually a Hash), return directly
155
+ value
156
+ when /\AArray<(?<inner_type>.+)>\z/
157
+ inner_type = Regexp.last_match[:inner_type]
158
+ value.map { |v| _deserialize(inner_type, v) }
159
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
160
+ k_type = Regexp.last_match[:k_type]
161
+ v_type = Regexp.last_match[:v_type]
162
+ {}.tap do |hash|
163
+ value.each do |k, v|
164
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
+ end
166
+ end
167
+ else
168
+ # model
169
+ if value[:'$type']
170
+ type = value[:'$type'][0..-4]
171
+ end
172
+
173
+ temp_model = AsposeWordsCloud.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ def collectFilesContent(resultFilesContent)
221
+ end
222
+
223
+ def validate()
224
+ end
225
+
226
+ end
227
+ end
@@ -29,6 +29,9 @@ module AsposeWordsCloud
29
29
 
30
30
  # Container class for compare documents.
31
31
  class CompareData
32
+ # Gets or sets advanced compare options that might help to produce more precise comparison output.
33
+ attr_accessor :advanced_options
34
+
32
35
  # Gets or sets the initials of the author to use for revisions.
33
36
  attr_accessor :author
34
37
 
@@ -49,6 +52,7 @@ module AsposeWordsCloud
49
52
  # Attribute mapping from ruby-style variable name to JSON key.
50
53
  def self.attribute_map
51
54
  {
55
+ :'advanced_options' => :'AdvancedOptions',
52
56
  :'author' => :'Author',
53
57
  :'compare_options' => :'CompareOptions',
54
58
  :'comparing_with_document' => :'ComparingWithDocument',
@@ -61,6 +65,7 @@ module AsposeWordsCloud
61
65
  # Attribute type mapping.
62
66
  def self.swagger_types
63
67
  {
68
+ :'advanced_options' => :'AdvancedCompareOptions',
64
69
  :'author' => :'String',
65
70
  :'compare_options' => :'CompareOptions',
66
71
  :'comparing_with_document' => :'String',
@@ -78,6 +83,10 @@ module AsposeWordsCloud
78
83
  # convert string to symbol for hash key
79
84
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
80
85
 
86
+ if attributes.key?(:'AdvancedOptions')
87
+ self.advanced_options = attributes[:'AdvancedOptions']
88
+ end
89
+
81
90
  if attributes.key?(:'Author')
82
91
  self.author = attributes[:'Author']
83
92
  end
@@ -114,6 +123,7 @@ module AsposeWordsCloud
114
123
  def ==(other)
115
124
  return true if self.equal?(other)
116
125
  self.class == other.class &&
126
+ advanced_options == other.advanced_options &&
117
127
  author == other.author &&
118
128
  compare_options == other.compare_options &&
119
129
  comparing_with_document == other.comparing_with_document &&
@@ -131,7 +141,7 @@ module AsposeWordsCloud
131
141
  # Calculates hash code according to all attributes.
132
142
  # @return [Fixnum] Hash code
133
143
  def hash
134
- [author, compare_options, comparing_with_document, date_time, file_reference, result_document_format].hash
144
+ [advanced_options, author, compare_options, comparing_with_document, date_time, file_reference, result_document_format].hash
135
145
  end
136
146
 
137
147
  # Builds the object from hash
@@ -255,6 +265,9 @@ module AsposeWordsCloud
255
265
  def validate()
256
266
  raise ArgumentError, 'Property author in CompareData is required.' if self.author.nil?
257
267
  raise ArgumentError, 'Property file_reference in CompareData is required.' if self.file_reference.nil?
268
+ unless self.advanced_options.nil?
269
+ self.advanced_options.validate
270
+ end
258
271
  unless self.compare_options.nil?
259
272
  self.compare_options.validate
260
273
  end
@@ -111,6 +111,10 @@ module AsposeWordsCloud
111
111
  # Gets or sets the level in the XPS document outline at which to display Word bookmarks.
112
112
  attr_accessor :bookmarks_outline_level
113
113
 
114
+ # Gets or sets a compression level used to save document.
115
+ # The default value is Normal.
116
+ attr_accessor :compression_level
117
+
114
118
  # Gets or sets the details for signing the output document.
115
119
  attr_accessor :digital_signature_details
116
120
 
@@ -172,6 +176,7 @@ module AsposeWordsCloud
172
176
  :'page_count' => :'PageCount',
173
177
  :'page_index' => :'PageIndex',
174
178
  :'bookmarks_outline_level' => :'BookmarksOutlineLevel',
179
+ :'compression_level' => :'CompressionLevel',
175
180
  :'digital_signature_details' => :'DigitalSignatureDetails',
176
181
  :'headings_outline_levels' => :'HeadingsOutlineLevels',
177
182
  :'outline_options' => :'OutlineOptions',
@@ -204,6 +209,7 @@ module AsposeWordsCloud
204
209
  :'page_count' => :'Integer',
205
210
  :'page_index' => :'Integer',
206
211
  :'bookmarks_outline_level' => :'Integer',
212
+ :'compression_level' => :'String',
207
213
  :'digital_signature_details' => :'DigitalSignatureDetails',
208
214
  :'headings_outline_levels' => :'Integer',
209
215
  :'outline_options' => :'OutlineOptionsData',
@@ -306,6 +312,10 @@ module AsposeWordsCloud
306
312
  self.bookmarks_outline_level = attributes[:'BookmarksOutlineLevel']
307
313
  end
308
314
 
315
+ if attributes.key?(:'CompressionLevel')
316
+ self.compression_level = attributes[:'CompressionLevel']
317
+ end
318
+
309
319
  if attributes.key?(:'DigitalSignatureDetails')
310
320
  self.digital_signature_details = attributes[:'DigitalSignatureDetails']
311
321
  end
@@ -338,6 +348,8 @@ module AsposeWordsCloud
338
348
  return false unless color_mode_validator.valid?(@color_mode)
339
349
  numeral_format_validator = EnumAttributeValidator.new('String', ["European", "ArabicIndic", "EasternArabicIndic", "Context", "System"])
340
350
  return false unless numeral_format_validator.valid?(@numeral_format)
351
+ compression_level_validator = EnumAttributeValidator.new('String', ["Normal", "Maximum", "Fast", "SuperFast"])
352
+ return false unless compression_level_validator.valid?(@compression_level)
341
353
 
342
354
  return true
343
355
  end
@@ -426,6 +438,20 @@ module AsposeWordsCloud
426
438
  end
427
439
  end
428
440
 
441
+ # Custom attribute writer method checking allowed values (enum).
442
+ # @param [Object] compression_level Object to be assigned
443
+ def compression_level=(compression_level)
444
+ validator = EnumAttributeValidator.new('String', ["Normal", "Maximum", "Fast", "SuperFast"])
445
+ if compression_level.to_i == 0
446
+ unless validator.valid?(compression_level)
447
+ raise ArgumentError, "invalid value for 'compression_level', must be one of #{validator.allowable_values}."
448
+ end
449
+ @compression_level = compression_level
450
+ else
451
+ @compression_level = validator.allowable_values[compression_level.to_i]
452
+ end
453
+ end
454
+
429
455
 
430
456
  # Checks equality by comparing each attribute.
431
457
  # @param [Object] Object to be compared
@@ -453,6 +479,7 @@ module AsposeWordsCloud
453
479
  page_count == other.page_count &&
454
480
  page_index == other.page_index &&
455
481
  bookmarks_outline_level == other.bookmarks_outline_level &&
482
+ compression_level == other.compression_level &&
456
483
  digital_signature_details == other.digital_signature_details &&
457
484
  headings_outline_levels == other.headings_outline_levels &&
458
485
  outline_options == other.outline_options &&
@@ -469,7 +496,7 @@ module AsposeWordsCloud
469
496
  # Calculates hash code according to all attributes.
470
497
  # @return [Fixnum] Hash code
471
498
  def hash
472
- [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, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, bookmarks_outline_level, digital_signature_details, headings_outline_levels, outline_options, use_book_fold_printing_settings, save_format].hash
499
+ [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, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, bookmarks_outline_level, compression_level, digital_signature_details, headings_outline_levels, outline_options, use_book_fold_printing_settings, save_format].hash
473
500
  end
474
501
 
475
502
  # Builds the object from hash
@@ -168,6 +168,15 @@ module AsposeWordsCloud
168
168
  # Gets or sets the font embedding mode.
169
169
  attr_accessor :font_embedding_mode
170
170
 
171
+ # Gets or sets a value determining whether to generate scripts that emulate specific Microsoft Word form field behavior in PDF.
172
+ # Default is false.
173
+ # When this option is enabled, the exporter generates PDF JavaScript actions to emulate Microsoft Word
174
+ # form field behavior, such as date and time form fields with formatting and validation rules.When set to true, supported behavior will be exported as PDF JavaScript actions.
175
+ # When set to false, no form field scripts will be generated.Script execution depends on the PDF viewer. Some PDF viewers might ignore scripts, restrict script execution,
176
+ # or require the user to enable JavaScript.JavaScript actions are prohibited by PDF/A-1, PDF/A-2 and PDF/A-3 compliance.
177
+ # The false value will be used automatically in this case.
178
+ attr_accessor :generate_form_field_scripts
179
+
171
180
  # Gets or sets the option that controls how bookmarks in headers/footers are exported.
172
181
  # The default value is Aspose.Words.Saving.HeaderFooterBookmarksExportMode.All.
173
182
  attr_accessor :header_footer_bookmarks_export_mode
@@ -293,6 +302,7 @@ module AsposeWordsCloud
293
302
  :'export_document_structure' => :'ExportDocumentStructure',
294
303
  :'export_language_to_span_tag' => :'ExportLanguageToSpanTag',
295
304
  :'font_embedding_mode' => :'FontEmbeddingMode',
305
+ :'generate_form_field_scripts' => :'GenerateFormFieldScripts',
296
306
  :'header_footer_bookmarks_export_mode' => :'HeaderFooterBookmarksExportMode',
297
307
  :'image_color_space_export_mode' => :'ImageColorSpaceExportMode',
298
308
  :'image_compression' => :'ImageCompression',
@@ -351,6 +361,7 @@ module AsposeWordsCloud
351
361
  :'export_document_structure' => :'BOOLEAN',
352
362
  :'export_language_to_span_tag' => :'BOOLEAN',
353
363
  :'font_embedding_mode' => :'String',
364
+ :'generate_form_field_scripts' => :'BOOLEAN',
354
365
  :'header_footer_bookmarks_export_mode' => :'String',
355
366
  :'image_color_space_export_mode' => :'String',
356
367
  :'image_compression' => :'String',
@@ -518,6 +529,10 @@ module AsposeWordsCloud
518
529
  self.font_embedding_mode = attributes[:'FontEmbeddingMode']
519
530
  end
520
531
 
532
+ if attributes.key?(:'GenerateFormFieldScripts')
533
+ self.generate_form_field_scripts = attributes[:'GenerateFormFieldScripts']
534
+ end
535
+
521
536
  if attributes.key?(:'HeaderFooterBookmarksExportMode')
522
537
  self.header_footer_bookmarks_export_mode = attributes[:'HeaderFooterBookmarksExportMode']
523
538
  end
@@ -874,6 +889,7 @@ module AsposeWordsCloud
874
889
  export_document_structure == other.export_document_structure &&
875
890
  export_language_to_span_tag == other.export_language_to_span_tag &&
876
891
  font_embedding_mode == other.font_embedding_mode &&
892
+ generate_form_field_scripts == other.generate_form_field_scripts &&
877
893
  header_footer_bookmarks_export_mode == other.header_footer_bookmarks_export_mode &&
878
894
  image_color_space_export_mode == other.image_color_space_export_mode &&
879
895
  image_compression == other.image_compression &&
@@ -903,7 +919,7 @@ module AsposeWordsCloud
903
919
  # Calculates hash code according to all attributes.
904
920
  # @return [Fixnum] Hash code
905
921
  def hash
906
- [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, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, attachments_embedding_mode, cache_background_graphics, compliance, create_note_hyperlinks, custom_properties_export, digital_signature_details, display_doc_title, downsample_options, embed_attachments, 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, render_choice_form_field_border, text_compression, use_book_fold_printing_settings, use_core_fonts, use_sdt_tag_as_form_field_name, zoom_behavior, zoom_factor, export_floating_shapes_as_inline_tag, save_format].hash
922
+ [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, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, attachments_embedding_mode, cache_background_graphics, compliance, create_note_hyperlinks, custom_properties_export, digital_signature_details, display_doc_title, downsample_options, embed_attachments, embed_full_fonts, encryption_details, export_document_structure, export_language_to_span_tag, font_embedding_mode, generate_form_field_scripts, 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, render_choice_form_field_border, text_compression, use_book_fold_printing_settings, use_core_fonts, use_sdt_tag_as_form_field_name, zoom_behavior, zoom_factor, export_floating_shapes_as_inline_tag, save_format].hash
907
923
  end
908
924
 
909
925
  # Builds the object from hash
@@ -111,6 +111,10 @@ module AsposeWordsCloud
111
111
  # Gets or sets the level in the XPS document outline at which to display Word bookmarks.
112
112
  attr_accessor :bookmarks_outline_level
113
113
 
114
+ # Gets or sets a compression level used to save document.
115
+ # The default value is Normal.
116
+ attr_accessor :compression_level
117
+
114
118
  # Gets or sets the details for signing the output document.
115
119
  attr_accessor :digital_signature_details
116
120
 
@@ -172,6 +176,7 @@ module AsposeWordsCloud
172
176
  :'page_count' => :'PageCount',
173
177
  :'page_index' => :'PageIndex',
174
178
  :'bookmarks_outline_level' => :'BookmarksOutlineLevel',
179
+ :'compression_level' => :'CompressionLevel',
175
180
  :'digital_signature_details' => :'DigitalSignatureDetails',
176
181
  :'headings_outline_levels' => :'HeadingsOutlineLevels',
177
182
  :'outline_options' => :'OutlineOptions',
@@ -204,6 +209,7 @@ module AsposeWordsCloud
204
209
  :'page_count' => :'Integer',
205
210
  :'page_index' => :'Integer',
206
211
  :'bookmarks_outline_level' => :'Integer',
212
+ :'compression_level' => :'String',
207
213
  :'digital_signature_details' => :'DigitalSignatureDetails',
208
214
  :'headings_outline_levels' => :'Integer',
209
215
  :'outline_options' => :'OutlineOptionsData',
@@ -306,6 +312,10 @@ module AsposeWordsCloud
306
312
  self.bookmarks_outline_level = attributes[:'BookmarksOutlineLevel']
307
313
  end
308
314
 
315
+ if attributes.key?(:'CompressionLevel')
316
+ self.compression_level = attributes[:'CompressionLevel']
317
+ end
318
+
309
319
  if attributes.key?(:'DigitalSignatureDetails')
310
320
  self.digital_signature_details = attributes[:'DigitalSignatureDetails']
311
321
  end
@@ -338,6 +348,8 @@ module AsposeWordsCloud
338
348
  return false unless color_mode_validator.valid?(@color_mode)
339
349
  numeral_format_validator = EnumAttributeValidator.new('String', ["European", "ArabicIndic", "EasternArabicIndic", "Context", "System"])
340
350
  return false unless numeral_format_validator.valid?(@numeral_format)
351
+ compression_level_validator = EnumAttributeValidator.new('String', ["Normal", "Maximum", "Fast", "SuperFast"])
352
+ return false unless compression_level_validator.valid?(@compression_level)
341
353
 
342
354
  return true
343
355
  end
@@ -426,6 +438,20 @@ module AsposeWordsCloud
426
438
  end
427
439
  end
428
440
 
441
+ # Custom attribute writer method checking allowed values (enum).
442
+ # @param [Object] compression_level Object to be assigned
443
+ def compression_level=(compression_level)
444
+ validator = EnumAttributeValidator.new('String', ["Normal", "Maximum", "Fast", "SuperFast"])
445
+ if compression_level.to_i == 0
446
+ unless validator.valid?(compression_level)
447
+ raise ArgumentError, "invalid value for 'compression_level', must be one of #{validator.allowable_values}."
448
+ end
449
+ @compression_level = compression_level
450
+ else
451
+ @compression_level = validator.allowable_values[compression_level.to_i]
452
+ end
453
+ end
454
+
429
455
 
430
456
  # Checks equality by comparing each attribute.
431
457
  # @param [Object] Object to be compared
@@ -453,6 +479,7 @@ module AsposeWordsCloud
453
479
  page_count == other.page_count &&
454
480
  page_index == other.page_index &&
455
481
  bookmarks_outline_level == other.bookmarks_outline_level &&
482
+ compression_level == other.compression_level &&
456
483
  digital_signature_details == other.digital_signature_details &&
457
484
  headings_outline_levels == other.headings_outline_levels &&
458
485
  outline_options == other.outline_options &&
@@ -469,7 +496,7 @@ module AsposeWordsCloud
469
496
  # Calculates hash code according to all attributes.
470
497
  # @return [Fixnum] Hash code
471
498
  def hash
472
- [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, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, bookmarks_outline_level, digital_signature_details, headings_outline_levels, outline_options, use_book_fold_printing_settings, save_format].hash
499
+ [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, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, bookmarks_outline_level, compression_level, digital_signature_details, headings_outline_levels, outline_options, use_book_fold_printing_settings, save_format].hash
473
500
  end
474
501
 
475
502
  # Builds the object from hash
@@ -24,5 +24,5 @@
24
24
  # ------------------------------------------------------------------------------------
25
25
 
26
26
  module AsposeWordsCloud
27
- VERSION = "26.8".freeze
27
+ VERSION = "26.10".freeze
28
28
  end
@@ -32,6 +32,7 @@ require_relative 'aspose_words_cloud/job_handler'
32
32
 
33
33
  # Models
34
34
  require_relative 'aspose_words_cloud/models/file_reference'
35
+ require_relative 'aspose_words_cloud/models/advanced_compare_options'
35
36
  require_relative 'aspose_words_cloud/models/response_error'
36
37
  require_relative 'aspose_words_cloud/models/available_fonts_response'
37
38
  require_relative 'aspose_words_cloud/models/azw3_save_options_data'
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.8'
4
+ version: '26.10'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-10 00:00:00.000000000 Z
11
+ date: 2026-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -91,6 +91,7 @@ files:
91
91
  - lib/aspose_words_cloud/api_error.rb
92
92
  - lib/aspose_words_cloud/configuration.rb
93
93
  - lib/aspose_words_cloud/job_handler.rb
94
+ - lib/aspose_words_cloud/models/advanced_compare_options.rb
94
95
  - lib/aspose_words_cloud/models/available_fonts_response.rb
95
96
  - lib/aspose_words_cloud/models/azw3_save_options_data.rb
96
97
  - lib/aspose_words_cloud/models/bmp_save_options_data.rb