aspose_words_cloud 22.1.0 → 22.2.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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
@@ -200,6 +197,9 @@ module AsposeWordsCloud
200
197
  # Gets or sets the name of the folder used to construct URIs of all resources written into HTML document. The default value is an empty string.
201
198
  attr_accessor :resource_folder_alias
202
199
 
200
+ # Gets the format of save.
201
+ attr_accessor :save_format
202
+
203
203
  # Gets or sets a value indicating whether images are scaled by Aspose.Words to the bounding shape size when exporting.
204
204
  attr_accessor :scale_image_to_shape_size
205
205
 
@@ -239,7 +239,6 @@ module AsposeWordsCloud
239
239
  :'file_name' => :'FileName',
240
240
  :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
241
241
  :'iml_rendering_mode' => :'ImlRenderingMode',
242
- :'save_format' => :'SaveFormat',
243
242
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
244
243
  :'update_fields' => :'UpdateFields',
245
244
  :'update_last_printed_property' => :'UpdateLastPrintedProperty',
@@ -283,6 +282,7 @@ module AsposeWordsCloud
283
282
  :'resolve_font_names' => :'ResolveFontNames',
284
283
  :'resource_folder' => :'ResourceFolder',
285
284
  :'resource_folder_alias' => :'ResourceFolderAlias',
285
+ :'save_format' => :'SaveFormat',
286
286
  :'scale_image_to_shape_size' => :'ScaleImageToShapeSize',
287
287
  :'table_width_output_mode' => :'TableWidthOutputMode'
288
288
  }
@@ -299,7 +299,6 @@ module AsposeWordsCloud
299
299
  :'file_name' => :'String',
300
300
  :'flat_opc_xml_mapping_only' => :'BOOLEAN',
301
301
  :'iml_rendering_mode' => :'String',
302
- :'save_format' => :'String',
303
302
  :'update_created_time_property' => :'BOOLEAN',
304
303
  :'update_fields' => :'BOOLEAN',
305
304
  :'update_last_printed_property' => :'BOOLEAN',
@@ -343,6 +342,7 @@ module AsposeWordsCloud
343
342
  :'resolve_font_names' => :'BOOLEAN',
344
343
  :'resource_folder' => :'String',
345
344
  :'resource_folder_alias' => :'String',
345
+ :'save_format' => :'String',
346
346
  :'scale_image_to_shape_size' => :'BOOLEAN',
347
347
  :'table_width_output_mode' => :'String'
348
348
  }
@@ -356,6 +356,8 @@ module AsposeWordsCloud
356
356
  # convert string to symbol for hash key
357
357
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
358
358
 
359
+ self.save_format = 'html'
360
+
359
361
  if attributes.key?(:'AllowEmbeddingPostScriptFonts')
360
362
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
361
363
  end
@@ -388,10 +390,6 @@ module AsposeWordsCloud
388
390
  self.iml_rendering_mode = attributes[:'ImlRenderingMode']
389
391
  end
390
392
 
391
- if attributes.key?(:'SaveFormat')
392
- self.save_format = attributes[:'SaveFormat']
393
- end
394
-
395
393
  if attributes.key?(:'UpdateCreatedTimeProperty')
396
394
  self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
397
395
  end
@@ -665,7 +663,6 @@ module AsposeWordsCloud
665
663
  file_name == other.file_name &&
666
664
  flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
667
665
  iml_rendering_mode == other.iml_rendering_mode &&
668
- save_format == other.save_format &&
669
666
  update_created_time_property == other.update_created_time_property &&
670
667
  update_fields == other.update_fields &&
671
668
  update_last_printed_property == other.update_last_printed_property &&
@@ -709,6 +706,7 @@ module AsposeWordsCloud
709
706
  resolve_font_names == other.resolve_font_names &&
710
707
  resource_folder == other.resource_folder &&
711
708
  resource_folder_alias == other.resource_folder_alias &&
709
+ save_format == other.save_format &&
712
710
  scale_image_to_shape_size == other.scale_image_to_shape_size &&
713
711
  table_width_output_mode == other.table_width_output_mode
714
712
  end
@@ -722,7 +720,7 @@ module AsposeWordsCloud
722
720
  # Calculates hash code according to all attributes.
723
721
  # @return [Fixnum] Hash code
724
722
  def hash
725
- [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, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_box_as_svg, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode].hash
723
+ [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, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_box_as_svg, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, resolve_font_names, resource_folder, resource_folder_alias, save_format, scale_image_to_shape_size, table_width_output_mode].hash
726
724
  end
727
725
 
728
726
  # 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
@@ -144,6 +141,9 @@ module AsposeWordsCloud
144
141
  # The default value is 96.
145
142
  attr_accessor :vertical_resolution
146
143
 
144
+ # Gets the format of save.
145
+ attr_accessor :save_format
146
+
147
147
  class EnumAttributeValidator
148
148
  attr_reader :datatype
149
149
  attr_reader :allowable_values
@@ -177,7 +177,6 @@ module AsposeWordsCloud
177
177
  :'file_name' => :'FileName',
178
178
  :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
179
179
  :'iml_rendering_mode' => :'ImlRenderingMode',
180
- :'save_format' => :'SaveFormat',
181
180
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
182
181
  :'update_fields' => :'UpdateFields',
183
182
  :'update_last_printed_property' => :'UpdateLastPrintedProperty',
@@ -202,7 +201,8 @@ module AsposeWordsCloud
202
201
  :'use_anti_aliasing' => :'UseAntiAliasing',
203
202
  :'use_gdi_emf_renderer' => :'UseGdiEmfRenderer',
204
203
  :'use_high_quality_rendering' => :'UseHighQualityRendering',
205
- :'vertical_resolution' => :'VerticalResolution'
204
+ :'vertical_resolution' => :'VerticalResolution',
205
+ :'save_format' => :'SaveFormat'
206
206
  }
207
207
  end
208
208
 
@@ -217,7 +217,6 @@ module AsposeWordsCloud
217
217
  :'file_name' => :'String',
218
218
  :'flat_opc_xml_mapping_only' => :'BOOLEAN',
219
219
  :'iml_rendering_mode' => :'String',
220
- :'save_format' => :'String',
221
220
  :'update_created_time_property' => :'BOOLEAN',
222
221
  :'update_fields' => :'BOOLEAN',
223
222
  :'update_last_printed_property' => :'BOOLEAN',
@@ -242,7 +241,8 @@ module AsposeWordsCloud
242
241
  :'use_anti_aliasing' => :'BOOLEAN',
243
242
  :'use_gdi_emf_renderer' => :'BOOLEAN',
244
243
  :'use_high_quality_rendering' => :'BOOLEAN',
245
- :'vertical_resolution' => :'Float'
244
+ :'vertical_resolution' => :'Float',
245
+ :'save_format' => :'String'
246
246
  }
247
247
  end
248
248
 
@@ -254,6 +254,8 @@ module AsposeWordsCloud
254
254
  # convert string to symbol for hash key
255
255
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
256
256
 
257
+ self.save_format = 'jpeg'
258
+
257
259
  if attributes.key?(:'AllowEmbeddingPostScriptFonts')
258
260
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
259
261
  end
@@ -286,10 +288,6 @@ module AsposeWordsCloud
286
288
  self.iml_rendering_mode = attributes[:'ImlRenderingMode']
287
289
  end
288
290
 
289
- if attributes.key?(:'SaveFormat')
290
- self.save_format = attributes[:'SaveFormat']
291
- end
292
-
293
291
  if attributes.key?(:'UpdateCreatedTimeProperty')
294
292
  self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
295
293
  end
@@ -435,7 +433,6 @@ module AsposeWordsCloud
435
433
  file_name == other.file_name &&
436
434
  flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
437
435
  iml_rendering_mode == other.iml_rendering_mode &&
438
- save_format == other.save_format &&
439
436
  update_created_time_property == other.update_created_time_property &&
440
437
  update_fields == other.update_fields &&
441
438
  update_last_printed_property == other.update_last_printed_property &&
@@ -460,7 +457,8 @@ module AsposeWordsCloud
460
457
  use_anti_aliasing == other.use_anti_aliasing &&
461
458
  use_gdi_emf_renderer == other.use_gdi_emf_renderer &&
462
459
  use_high_quality_rendering == other.use_high_quality_rendering &&
463
- vertical_resolution == other.vertical_resolution
460
+ vertical_resolution == other.vertical_resolution &&
461
+ save_format == other.save_format
464
462
  end
465
463
 
466
464
  # @see the `==` method
@@ -472,7 +470,7 @@ module AsposeWordsCloud
472
470
  # Calculates hash code according to all attributes.
473
471
  # @return [Fixnum] Hash code
474
472
  def hash
475
- [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, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution].hash
473
+ [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, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution, save_format].hash
476
474
  end
477
475
 
478
476
  # 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
@@ -92,6 +89,9 @@ module AsposeWordsCloud
92
89
  # Gets or sets the string to use as a paragraph break when exporting in plain text format.
93
90
  attr_accessor :paragraph_break
94
91
 
92
+ # Gets the format of save.
93
+ attr_accessor :save_format
94
+
95
95
  # Gets or sets the value, that specifies how to align contents in tables when exporting into the Markdown format.
96
96
  # The default value is Auto.
97
97
  attr_accessor :table_content_alignment
@@ -129,7 +129,6 @@ module AsposeWordsCloud
129
129
  :'file_name' => :'FileName',
130
130
  :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
131
131
  :'iml_rendering_mode' => :'ImlRenderingMode',
132
- :'save_format' => :'SaveFormat',
133
132
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
134
133
  :'update_fields' => :'UpdateFields',
135
134
  :'update_last_printed_property' => :'UpdateLastPrintedProperty',
@@ -140,6 +139,7 @@ module AsposeWordsCloud
140
139
  :'export_headers_footers_mode' => :'ExportHeadersFootersMode',
141
140
  :'force_page_breaks' => :'ForcePageBreaks',
142
141
  :'paragraph_break' => :'ParagraphBreak',
142
+ :'save_format' => :'SaveFormat',
143
143
  :'table_content_alignment' => :'TableContentAlignment'
144
144
  }
145
145
  end
@@ -155,7 +155,6 @@ module AsposeWordsCloud
155
155
  :'file_name' => :'String',
156
156
  :'flat_opc_xml_mapping_only' => :'BOOLEAN',
157
157
  :'iml_rendering_mode' => :'String',
158
- :'save_format' => :'String',
159
158
  :'update_created_time_property' => :'BOOLEAN',
160
159
  :'update_fields' => :'BOOLEAN',
161
160
  :'update_last_printed_property' => :'BOOLEAN',
@@ -166,6 +165,7 @@ module AsposeWordsCloud
166
165
  :'export_headers_footers_mode' => :'String',
167
166
  :'force_page_breaks' => :'BOOLEAN',
168
167
  :'paragraph_break' => :'String',
168
+ :'save_format' => :'String',
169
169
  :'table_content_alignment' => :'String'
170
170
  }
171
171
  end
@@ -178,6 +178,8 @@ module AsposeWordsCloud
178
178
  # convert string to symbol for hash key
179
179
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
180
180
 
181
+ self.save_format = 'md'
182
+
181
183
  if attributes.key?(:'AllowEmbeddingPostScriptFonts')
182
184
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
183
185
  end
@@ -210,10 +212,6 @@ module AsposeWordsCloud
210
212
  self.iml_rendering_mode = attributes[:'ImlRenderingMode']
211
213
  end
212
214
 
213
- if attributes.key?(:'SaveFormat')
214
- self.save_format = attributes[:'SaveFormat']
215
- end
216
-
217
215
  if attributes.key?(:'UpdateCreatedTimeProperty')
218
216
  self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
219
217
  end
@@ -335,7 +333,6 @@ module AsposeWordsCloud
335
333
  file_name == other.file_name &&
336
334
  flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
337
335
  iml_rendering_mode == other.iml_rendering_mode &&
338
- save_format == other.save_format &&
339
336
  update_created_time_property == other.update_created_time_property &&
340
337
  update_fields == other.update_fields &&
341
338
  update_last_printed_property == other.update_last_printed_property &&
@@ -346,6 +343,7 @@ module AsposeWordsCloud
346
343
  export_headers_footers_mode == other.export_headers_footers_mode &&
347
344
  force_page_breaks == other.force_page_breaks &&
348
345
  paragraph_break == other.paragraph_break &&
346
+ save_format == other.save_format &&
349
347
  table_content_alignment == other.table_content_alignment
350
348
  end
351
349
 
@@ -358,7 +356,7 @@ module AsposeWordsCloud
358
356
  # Calculates hash code according to all attributes.
359
357
  # @return [Fixnum] Hash code
360
358
  def hash
361
- [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, encoding, export_headers_footers_mode, force_page_breaks, paragraph_break, table_content_alignment].hash
359
+ [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, encoding, export_headers_footers_mode, force_page_breaks, paragraph_break, save_format, table_content_alignment].hash
362
360
  end
363
361
 
364
362
  # 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
@@ -209,6 +206,9 @@ module AsposeWordsCloud
209
206
  # Gets or sets a value indicating whether to use CID (Content-ID) URLs to reference resources (images, fonts, CSS) included in MHTML documents. The default value is false.
210
207
  attr_accessor :export_cid_urls_for_mhtml_resources
211
208
 
209
+ # Gets the format of save.
210
+ attr_accessor :save_format
211
+
212
212
  class EnumAttributeValidator
213
213
  attr_reader :datatype
214
214
  attr_reader :allowable_values
@@ -242,7 +242,6 @@ module AsposeWordsCloud
242
242
  :'file_name' => :'FileName',
243
243
  :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
244
244
  :'iml_rendering_mode' => :'ImlRenderingMode',
245
- :'save_format' => :'SaveFormat',
246
245
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
247
246
  :'update_fields' => :'UpdateFields',
248
247
  :'update_last_printed_property' => :'UpdateLastPrintedProperty',
@@ -288,7 +287,8 @@ module AsposeWordsCloud
288
287
  :'resource_folder_alias' => :'ResourceFolderAlias',
289
288
  :'scale_image_to_shape_size' => :'ScaleImageToShapeSize',
290
289
  :'table_width_output_mode' => :'TableWidthOutputMode',
291
- :'export_cid_urls_for_mhtml_resources' => :'ExportCidUrlsForMhtmlResources'
290
+ :'export_cid_urls_for_mhtml_resources' => :'ExportCidUrlsForMhtmlResources',
291
+ :'save_format' => :'SaveFormat'
292
292
  }
293
293
  end
294
294
 
@@ -303,7 +303,6 @@ module AsposeWordsCloud
303
303
  :'file_name' => :'String',
304
304
  :'flat_opc_xml_mapping_only' => :'BOOLEAN',
305
305
  :'iml_rendering_mode' => :'String',
306
- :'save_format' => :'String',
307
306
  :'update_created_time_property' => :'BOOLEAN',
308
307
  :'update_fields' => :'BOOLEAN',
309
308
  :'update_last_printed_property' => :'BOOLEAN',
@@ -349,7 +348,8 @@ module AsposeWordsCloud
349
348
  :'resource_folder_alias' => :'String',
350
349
  :'scale_image_to_shape_size' => :'BOOLEAN',
351
350
  :'table_width_output_mode' => :'String',
352
- :'export_cid_urls_for_mhtml_resources' => :'BOOLEAN'
351
+ :'export_cid_urls_for_mhtml_resources' => :'BOOLEAN',
352
+ :'save_format' => :'String'
353
353
  }
354
354
  end
355
355
 
@@ -361,6 +361,8 @@ module AsposeWordsCloud
361
361
  # convert string to symbol for hash key
362
362
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
363
363
 
364
+ self.save_format = 'mht'
365
+
364
366
  if attributes.key?(:'AllowEmbeddingPostScriptFonts')
365
367
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
366
368
  end
@@ -393,10 +395,6 @@ module AsposeWordsCloud
393
395
  self.iml_rendering_mode = attributes[:'ImlRenderingMode']
394
396
  end
395
397
 
396
- if attributes.key?(:'SaveFormat')
397
- self.save_format = attributes[:'SaveFormat']
398
- end
399
-
400
398
  if attributes.key?(:'UpdateCreatedTimeProperty')
401
399
  self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
402
400
  end
@@ -674,7 +672,6 @@ module AsposeWordsCloud
674
672
  file_name == other.file_name &&
675
673
  flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
676
674
  iml_rendering_mode == other.iml_rendering_mode &&
677
- save_format == other.save_format &&
678
675
  update_created_time_property == other.update_created_time_property &&
679
676
  update_fields == other.update_fields &&
680
677
  update_last_printed_property == other.update_last_printed_property &&
@@ -720,7 +717,8 @@ module AsposeWordsCloud
720
717
  resource_folder_alias == other.resource_folder_alias &&
721
718
  scale_image_to_shape_size == other.scale_image_to_shape_size &&
722
719
  table_width_output_mode == other.table_width_output_mode &&
723
- export_cid_urls_for_mhtml_resources == other.export_cid_urls_for_mhtml_resources
720
+ export_cid_urls_for_mhtml_resources == other.export_cid_urls_for_mhtml_resources &&
721
+ save_format == other.save_format
724
722
  end
725
723
 
726
724
  # @see the `==` method
@@ -732,7 +730,7 @@ module AsposeWordsCloud
732
730
  # Calculates hash code according to all attributes.
733
731
  # @return [Fixnum] Hash code
734
732
  def hash
735
- [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, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_box_as_svg, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, export_cid_urls_for_mhtml_resources].hash
733
+ [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, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_box_as_svg, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, export_cid_urls_for_mhtml_resources, save_format].hash
736
734
  end
737
735
 
738
736
  # 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
@@ -91,6 +88,9 @@ module AsposeWordsCloud
91
88
  # Gets or sets a value indicating whether to use pretty formats output.
92
89
  attr_accessor :pretty_format
93
90
 
91
+ # Gets the format of save.
92
+ attr_accessor :save_format
93
+
94
94
  class EnumAttributeValidator
95
95
  attr_reader :datatype
96
96
  attr_reader :allowable_values
@@ -124,7 +124,6 @@ module AsposeWordsCloud
124
124
  :'file_name' => :'FileName',
125
125
  :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
126
126
  :'iml_rendering_mode' => :'ImlRenderingMode',
127
- :'save_format' => :'SaveFormat',
128
127
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
129
128
  :'update_fields' => :'UpdateFields',
130
129
  :'update_last_printed_property' => :'UpdateLastPrintedProperty',
@@ -134,7 +133,8 @@ module AsposeWordsCloud
134
133
  :'is_strict_schema11' => :'IsStrictSchema11',
135
134
  :'measure_unit' => :'MeasureUnit',
136
135
  :'password' => :'Password',
137
- :'pretty_format' => :'PrettyFormat'
136
+ :'pretty_format' => :'PrettyFormat',
137
+ :'save_format' => :'SaveFormat'
138
138
  }
139
139
  end
140
140
 
@@ -149,7 +149,6 @@ module AsposeWordsCloud
149
149
  :'file_name' => :'String',
150
150
  :'flat_opc_xml_mapping_only' => :'BOOLEAN',
151
151
  :'iml_rendering_mode' => :'String',
152
- :'save_format' => :'String',
153
152
  :'update_created_time_property' => :'BOOLEAN',
154
153
  :'update_fields' => :'BOOLEAN',
155
154
  :'update_last_printed_property' => :'BOOLEAN',
@@ -159,7 +158,8 @@ module AsposeWordsCloud
159
158
  :'is_strict_schema11' => :'BOOLEAN',
160
159
  :'measure_unit' => :'String',
161
160
  :'password' => :'String',
162
- :'pretty_format' => :'BOOLEAN'
161
+ :'pretty_format' => :'BOOLEAN',
162
+ :'save_format' => :'String'
163
163
  }
164
164
  end
165
165
 
@@ -171,6 +171,8 @@ module AsposeWordsCloud
171
171
  # convert string to symbol for hash key
172
172
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
173
173
 
174
+ self.save_format = 'odt'
175
+
174
176
  if attributes.key?(:'AllowEmbeddingPostScriptFonts')
175
177
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
176
178
  end
@@ -203,10 +205,6 @@ module AsposeWordsCloud
203
205
  self.iml_rendering_mode = attributes[:'ImlRenderingMode']
204
206
  end
205
207
 
206
- if attributes.key?(:'SaveFormat')
207
- self.save_format = attributes[:'SaveFormat']
208
- end
209
-
210
208
  if attributes.key?(:'UpdateCreatedTimeProperty')
211
209
  self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
212
210
  end
@@ -308,7 +306,6 @@ module AsposeWordsCloud
308
306
  file_name == other.file_name &&
309
307
  flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
310
308
  iml_rendering_mode == other.iml_rendering_mode &&
311
- save_format == other.save_format &&
312
309
  update_created_time_property == other.update_created_time_property &&
313
310
  update_fields == other.update_fields &&
314
311
  update_last_printed_property == other.update_last_printed_property &&
@@ -318,7 +315,8 @@ module AsposeWordsCloud
318
315
  is_strict_schema11 == other.is_strict_schema11 &&
319
316
  measure_unit == other.measure_unit &&
320
317
  password == other.password &&
321
- pretty_format == other.pretty_format
318
+ pretty_format == other.pretty_format &&
319
+ save_format == other.save_format
322
320
  end
323
321
 
324
322
  # @see the `==` method
@@ -330,7 +328,7 @@ module AsposeWordsCloud
330
328
  # Calculates hash code according to all attributes.
331
329
  # @return [Fixnum] Hash code
332
330
  def hash
333
- [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, is_strict_schema11, measure_unit, password, pretty_format].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
334
332
  end
335
333
 
336
334
  # Builds the object from hash
@@ -1,5 +1,5 @@
1
1
  # ------------------------------------------------------------------------------------
2
- # <copyright company="Aspose" file="fixed_page_save_options_data.rb">
2
+ # <copyright company="Aspose" file="open_xps_save_options_data.rb">
3
3
  # Copyright (c) 2022 Aspose.Words for Cloud
4
4
  # </copyright>
5
5
  # <summary>
@@ -27,8 +27,8 @@ require 'date'
27
27
 
28
28
  module AsposeWordsCloud
29
29
 
30
- # Contains common options that can be specified when saving a document into fixed page formats (PDF, XPS, images etc).
31
- class FixedPageSaveOptionsData
30
+ # Container class for xps save options.
31
+ class OpenXpsSaveOptionsData
32
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
33
  attr_accessor :allow_embedding_post_script_fonts
34
34
 
@@ -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
@@ -102,6 +99,21 @@ module AsposeWordsCloud
102
99
  # Gets or sets the 0-based index of the first page to render.
103
100
  attr_accessor :page_index
104
101
 
102
+ # Gets or sets the level in the XPS document outline at which to display Word bookmarks.
103
+ attr_accessor :bookmarks_outline_level
104
+
105
+ # Gets or sets the number of heading levels (paragraphs formatted with the Heading styles) to include in the XPS document outline.
106
+ attr_accessor :headings_outline_levels
107
+
108
+ # Gets or sets the outline options.
109
+ attr_accessor :outline_options
110
+
111
+ # Gets or sets a value indicating whether the document should be saved using a booklet printing layout.
112
+ attr_accessor :use_book_fold_printing_settings
113
+
114
+ # Gets the format of save.
115
+ attr_accessor :save_format
116
+
105
117
  class EnumAttributeValidator
106
118
  attr_reader :datatype
107
119
  attr_reader :allowable_values
@@ -135,7 +147,6 @@ module AsposeWordsCloud
135
147
  :'file_name' => :'FileName',
136
148
  :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
137
149
  :'iml_rendering_mode' => :'ImlRenderingMode',
138
- :'save_format' => :'SaveFormat',
139
150
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
140
151
  :'update_fields' => :'UpdateFields',
141
152
  :'update_last_printed_property' => :'UpdateLastPrintedProperty',
@@ -148,7 +159,12 @@ module AsposeWordsCloud
148
159
  :'numeral_format' => :'NumeralFormat',
149
160
  :'optimize_output' => :'OptimizeOutput',
150
161
  :'page_count' => :'PageCount',
151
- :'page_index' => :'PageIndex'
162
+ :'page_index' => :'PageIndex',
163
+ :'bookmarks_outline_level' => :'BookmarksOutlineLevel',
164
+ :'headings_outline_levels' => :'HeadingsOutlineLevels',
165
+ :'outline_options' => :'OutlineOptions',
166
+ :'use_book_fold_printing_settings' => :'UseBookFoldPrintingSettings',
167
+ :'save_format' => :'SaveFormat'
152
168
  }
153
169
  end
154
170
 
@@ -163,7 +179,6 @@ module AsposeWordsCloud
163
179
  :'file_name' => :'String',
164
180
  :'flat_opc_xml_mapping_only' => :'BOOLEAN',
165
181
  :'iml_rendering_mode' => :'String',
166
- :'save_format' => :'String',
167
182
  :'update_created_time_property' => :'BOOLEAN',
168
183
  :'update_fields' => :'BOOLEAN',
169
184
  :'update_last_printed_property' => :'BOOLEAN',
@@ -176,7 +191,12 @@ module AsposeWordsCloud
176
191
  :'numeral_format' => :'String',
177
192
  :'optimize_output' => :'BOOLEAN',
178
193
  :'page_count' => :'Integer',
179
- :'page_index' => :'Integer'
194
+ :'page_index' => :'Integer',
195
+ :'bookmarks_outline_level' => :'Integer',
196
+ :'headings_outline_levels' => :'Integer',
197
+ :'outline_options' => :'OutlineOptionsData',
198
+ :'use_book_fold_printing_settings' => :'BOOLEAN',
199
+ :'save_format' => :'String'
180
200
  }
181
201
  end
182
202
 
@@ -188,6 +208,8 @@ module AsposeWordsCloud
188
208
  # convert string to symbol for hash key
189
209
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
190
210
 
211
+ self.save_format = 'openxps'
212
+
191
213
  if attributes.key?(:'AllowEmbeddingPostScriptFonts')
192
214
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
193
215
  end
@@ -220,10 +242,6 @@ module AsposeWordsCloud
220
242
  self.iml_rendering_mode = attributes[:'ImlRenderingMode']
221
243
  end
222
244
 
223
- if attributes.key?(:'SaveFormat')
224
- self.save_format = attributes[:'SaveFormat']
225
- end
226
-
227
245
  if attributes.key?(:'UpdateCreatedTimeProperty')
228
246
  self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
229
247
  end
@@ -275,6 +293,22 @@ module AsposeWordsCloud
275
293
  if attributes.key?(:'PageIndex')
276
294
  self.page_index = attributes[:'PageIndex']
277
295
  end
296
+
297
+ if attributes.key?(:'BookmarksOutlineLevel')
298
+ self.bookmarks_outline_level = attributes[:'BookmarksOutlineLevel']
299
+ end
300
+
301
+ if attributes.key?(:'HeadingsOutlineLevels')
302
+ self.headings_outline_levels = attributes[:'HeadingsOutlineLevels']
303
+ end
304
+
305
+ if attributes.key?(:'OutlineOptions')
306
+ self.outline_options = attributes[:'OutlineOptions']
307
+ end
308
+
309
+ if attributes.key?(:'UseBookFoldPrintingSettings')
310
+ self.use_book_fold_printing_settings = attributes[:'UseBookFoldPrintingSettings']
311
+ end
278
312
  end
279
313
 
280
314
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -321,7 +355,6 @@ module AsposeWordsCloud
321
355
  file_name == other.file_name &&
322
356
  flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
323
357
  iml_rendering_mode == other.iml_rendering_mode &&
324
- save_format == other.save_format &&
325
358
  update_created_time_property == other.update_created_time_property &&
326
359
  update_fields == other.update_fields &&
327
360
  update_last_printed_property == other.update_last_printed_property &&
@@ -334,7 +367,12 @@ module AsposeWordsCloud
334
367
  numeral_format == other.numeral_format &&
335
368
  optimize_output == other.optimize_output &&
336
369
  page_count == other.page_count &&
337
- page_index == other.page_index
370
+ page_index == other.page_index &&
371
+ bookmarks_outline_level == other.bookmarks_outline_level &&
372
+ headings_outline_levels == other.headings_outline_levels &&
373
+ outline_options == other.outline_options &&
374
+ use_book_fold_printing_settings == other.use_book_fold_printing_settings &&
375
+ save_format == other.save_format
338
376
  end
339
377
 
340
378
  # @see the `==` method
@@ -346,7 +384,7 @@ module AsposeWordsCloud
346
384
  # Calculates hash code according to all attributes.
347
385
  # @return [Fixnum] Hash code
348
386
  def hash
349
- [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].hash
387
+ [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, bookmarks_outline_level, headings_outline_levels, outline_options, use_book_fold_printing_settings, save_format].hash
350
388
  end
351
389
 
352
390
  # Builds the object from hash