aspose_words_cloud 18.7 → 18.8

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: '08cacb125075e7b2b57e3669f1270c6d759dfee9f375cca53695d4e4519bb4b8'
4
- data.tar.gz: d2d906a024168939e925eb1527d969216ce3213bea9ba6f024317dfab51a9994
3
+ metadata.gz: 6dcda7b6eff68ff10c3f0f7dd053bfb598fea34452f031aa886ef1c112888c66
4
+ data.tar.gz: b66522dd10a68c782c3c03957b770d4e5ef95889b1516564d226cc831a3a2b65
5
5
  SHA512:
6
- metadata.gz: 32c40d0efbb8df1c2da451a3087573c49317dd155d86b78f28c792d11dd4aa90dcc79d7a4fbd8651bdc753afbb09f8c53a45825e1f09433185ccdcc3b6d0d86c
7
- data.tar.gz: 5504bef36b3495d41cf883043357d1806f445d307d41dad3cb06b3d534ad226d995c2ae0a3ebe2743fae3ccc30025688f4fe02377d7b81a71200a8a5ea76227c
6
+ metadata.gz: 6f35fd9096959a963541aee8da9a4c53f9ac9682b8c39cde2e0f59961b46bf098143fef0599092e97b27daad1dea36db25d10670d50a19236e42185de18bd5e4
7
+ data.tar.gz: 20f78bc8332049c2cb38c906acfd2dffedd905702c738b5a000c35e28e8f260b33a5675c46cf8241672f080eb29ea591d5bd44e4f8760477d1ba52f29d5d2de6
@@ -40,6 +40,9 @@ module AsposeWordsCloud
40
40
  # Gets or sets a value determining whether or not to create missing outline levels when the document is exported. Default value for this property is false.
41
41
  attr_accessor :create_missing_outline_levels
42
42
 
43
+ # Specifies whether or not to create outlines for headings (paragraphs formatted with the Heading styles) inside tables.
44
+ attr_accessor :create_outlines_for_headings_in_tables
45
+
43
46
  # Specifies how many levels in the document outline to show expanded when the file is viewed
44
47
  attr_accessor :expanded_outline_levels
45
48
 
@@ -53,6 +56,7 @@ module AsposeWordsCloud
53
56
  :'bookmarks_outline_levels' => :'BookmarksOutlineLevels',
54
57
  :'default_bookmarks_outline_level' => :'DefaultBookmarksOutlineLevel',
55
58
  :'create_missing_outline_levels' => :'CreateMissingOutlineLevels',
59
+ :'create_outlines_for_headings_in_tables' => :'CreateOutlinesForHeadingsInTables',
56
60
  :'expanded_outline_levels' => :'ExpandedOutlineLevels',
57
61
  :'headings_outline_levels' => :'HeadingsOutlineLevels'
58
62
  }
@@ -64,6 +68,7 @@ module AsposeWordsCloud
64
68
  :'bookmarks_outline_levels' => :'Array<BookmarksOutlineLevelData>',
65
69
  :'default_bookmarks_outline_level' => :'Integer',
66
70
  :'create_missing_outline_levels' => :'BOOLEAN',
71
+ :'create_outlines_for_headings_in_tables' => :'BOOLEAN',
67
72
  :'expanded_outline_levels' => :'Integer',
68
73
  :'headings_outline_levels' => :'Integer'
69
74
  }
@@ -91,6 +96,10 @@ module AsposeWordsCloud
91
96
  self.create_missing_outline_levels = attributes[:'CreateMissingOutlineLevels']
92
97
  end
93
98
 
99
+ if attributes.key?(:'CreateOutlinesForHeadingsInTables')
100
+ self.create_outlines_for_headings_in_tables = attributes[:'CreateOutlinesForHeadingsInTables']
101
+ end
102
+
94
103
  if attributes.key?(:'ExpandedOutlineLevels')
95
104
  self.expanded_outline_levels = attributes[:'ExpandedOutlineLevels']
96
105
  end
@@ -122,6 +131,7 @@ module AsposeWordsCloud
122
131
  bookmarks_outline_levels == other.bookmarks_outline_levels &&
123
132
  default_bookmarks_outline_level == other.default_bookmarks_outline_level &&
124
133
  create_missing_outline_levels == other.create_missing_outline_levels &&
134
+ create_outlines_for_headings_in_tables == other.create_outlines_for_headings_in_tables &&
125
135
  expanded_outline_levels == other.expanded_outline_levels &&
126
136
  headings_outline_levels == other.headings_outline_levels
127
137
  end
@@ -135,7 +145,7 @@ module AsposeWordsCloud
135
145
  # Calculates hash code according to all attributes.
136
146
  # @return [Fixnum] Hash code
137
147
  def hash
138
- [bookmarks_outline_levels, default_bookmarks_outline_level, create_missing_outline_levels, expanded_outline_levels, headings_outline_levels].hash
148
+ [bookmarks_outline_levels, default_bookmarks_outline_level, create_missing_outline_levels, create_outlines_for_headings_in_tables, expanded_outline_levels, headings_outline_levels].hash
139
149
  end
140
150
 
141
151
  # Builds the object from hash
@@ -363,7 +363,7 @@ module AsposeWordsCloud
363
363
  return false unless line_number_restart_mode_validator.valid?(@line_number_restart_mode)
364
364
  orientation_validator = EnumAttributeValidator.new('String', ["Portrait", "Landscape"])
365
365
  return false unless orientation_validator.valid?(@orientation)
366
- page_number_style_validator = EnumAttributeValidator.new('String', ["Arabic", "UppercaseRoman", "LowercaseRoman", "UppercaseLetter", "LowercaseLetter", "Ordinal", "Number", "OrdinalText", "Hex", "ChicagoManual", "Kanji", "KanjiDigit", "AiueoHalfWidth", "IrohaHalfWidth", "ArabicFullWidth", "ArabicHalfWidth", "KanjiTraditional", "KanjiTraditional2", "NumberInCircle", "DecimalFullWidth", "Aiueo", "Iroha", "LeadingZero", "Bullet", "Ganada", "Chosung", "GB1", "GB2", "GB3", "GB4", "Zodiac1", "Zodiac2", "Zodiac3", "TradChinNum1", "TradChinNum2", "TradChinNum3", "TradChinNum4", "SimpChinNum1", "SimpChinNum2", "SimpChinNum3", "SimpChinNum4", "HanjaRead", "HanjaReadDigit", "Hangul", "Hanja", "Hebrew1", "Arabic1", "Hebrew2", "Arabic2", "HindiLetter1", "HindiLetter2", "HindiArabic", "HindiCardinalText", "ThaiLetter", "ThaiArabic", "ThaiCardinalText", "VietCardinalText", "NumberInDash", "NumInDash", "LowercaseRussian", "UppercaseRussian", "None", "Custom"])
366
+ page_number_style_validator = EnumAttributeValidator.new('String', ["Arabic", "UppercaseRoman", "LowercaseRoman", "UppercaseLetter", "LowercaseLetter", "Ordinal", "Number", "OrdinalText", "Hex", "ChicagoManual", "Kanji", "KanjiDigit", "AiueoHalfWidth", "IrohaHalfWidth", "ArabicFullWidth", "ArabicHalfWidth", "KanjiTraditional", "KanjiTraditional2", "NumberInCircle", "DecimalFullWidth", "Aiueo", "Iroha", "LeadingZero", "Bullet", "Ganada", "Chosung", "GB1", "GB2", "GB3", "GB4", "Zodiac1", "Zodiac2", "Zodiac3", "TradChinNum1", "TradChinNum2", "TradChinNum3", "TradChinNum4", "SimpChinNum1", "SimpChinNum2", "SimpChinNum3", "SimpChinNum4", "HanjaRead", "HanjaReadDigit", "Hangul", "Hanja", "Hebrew1", "Arabic1", "Hebrew2", "Arabic2", "HindiLetter1", "HindiLetter2", "HindiArabic", "HindiCardinalText", "ThaiLetter", "ThaiArabic", "ThaiCardinalText", "VietCardinalText", "NumberInDash", "LowercaseRussian", "UppercaseRussian", "None", "Custom"])
367
367
  return false unless page_number_style_validator.valid?(@page_number_style)
368
368
  paper_size_validator = EnumAttributeValidator.new('String', ["A3", "A4", "A5", "B4", "B5", "Executive", "Folio", "Ledger", "Legal", "Letter", "EnvelopeDL", "Quarto", "Statement", "Tabloid", "Paper10x14", "Paper11x17", "Custom"])
369
369
  return false unless paper_size_validator.valid?(@paper_size)
@@ -433,7 +433,7 @@ module AsposeWordsCloud
433
433
  # Custom attribute writer method checking allowed values (enum).
434
434
  # @param [Object] page_number_style Object to be assigned
435
435
  def page_number_style=(page_number_style)
436
- validator = EnumAttributeValidator.new('String', ["Arabic", "UppercaseRoman", "LowercaseRoman", "UppercaseLetter", "LowercaseLetter", "Ordinal", "Number", "OrdinalText", "Hex", "ChicagoManual", "Kanji", "KanjiDigit", "AiueoHalfWidth", "IrohaHalfWidth", "ArabicFullWidth", "ArabicHalfWidth", "KanjiTraditional", "KanjiTraditional2", "NumberInCircle", "DecimalFullWidth", "Aiueo", "Iroha", "LeadingZero", "Bullet", "Ganada", "Chosung", "GB1", "GB2", "GB3", "GB4", "Zodiac1", "Zodiac2", "Zodiac3", "TradChinNum1", "TradChinNum2", "TradChinNum3", "TradChinNum4", "SimpChinNum1", "SimpChinNum2", "SimpChinNum3", "SimpChinNum4", "HanjaRead", "HanjaReadDigit", "Hangul", "Hanja", "Hebrew1", "Arabic1", "Hebrew2", "Arabic2", "HindiLetter1", "HindiLetter2", "HindiArabic", "HindiCardinalText", "ThaiLetter", "ThaiArabic", "ThaiCardinalText", "VietCardinalText", "NumberInDash", "NumInDash", "LowercaseRussian", "UppercaseRussian", "None", "Custom"])
436
+ validator = EnumAttributeValidator.new('String', ["Arabic", "UppercaseRoman", "LowercaseRoman", "UppercaseLetter", "LowercaseLetter", "Ordinal", "Number", "OrdinalText", "Hex", "ChicagoManual", "Kanji", "KanjiDigit", "AiueoHalfWidth", "IrohaHalfWidth", "ArabicFullWidth", "ArabicHalfWidth", "KanjiTraditional", "KanjiTraditional2", "NumberInCircle", "DecimalFullWidth", "Aiueo", "Iroha", "LeadingZero", "Bullet", "Ganada", "Chosung", "GB1", "GB2", "GB3", "GB4", "Zodiac1", "Zodiac2", "Zodiac3", "TradChinNum1", "TradChinNum2", "TradChinNum3", "TradChinNum4", "SimpChinNum1", "SimpChinNum2", "SimpChinNum3", "SimpChinNum4", "HanjaRead", "HanjaReadDigit", "Hangul", "Hanja", "Hebrew1", "Arabic1", "Hebrew2", "Arabic2", "HindiLetter1", "HindiLetter2", "HindiArabic", "HindiCardinalText", "ThaiLetter", "ThaiArabic", "ThaiCardinalText", "VietCardinalText", "NumberInDash", "LowercaseRussian", "UppercaseRussian", "None", "Custom"])
437
437
  if page_number_style.to_i == 0
438
438
  unless validator.valid?(page_number_style)
439
439
  raise ArgumentError, "invalid value for 'page_number_style', must be one of #{validator.allowable_values}."
@@ -109,6 +109,9 @@ module AsposeWordsCloud
109
109
  # Specifies the font embedding mode
110
110
  attr_accessor :font_embedding_mode
111
111
 
112
+ # Determines how bookmarks in headers/footers are exported. The default value is Aspose.Words.Saving.HeaderFooterBookmarksExportMode.All.
113
+ attr_accessor :header_footer_bookmarks_export_mode
114
+
112
115
  # Specifies how the color space will be selected for the images in PDF document.
113
116
  attr_accessor :image_color_space_export_mode
114
117
 
@@ -145,6 +148,27 @@ module AsposeWordsCloud
145
148
  # Determines zoom factor (in percentages) for a document
146
149
  attr_accessor :zoom_factor
147
150
 
151
+ class EnumAttributeValidator
152
+ attr_reader :datatype
153
+ attr_reader :allowable_values
154
+
155
+ def initialize(datatype, allowable_values)
156
+ @allowable_values = allowable_values.map do |value|
157
+ case datatype.to_s
158
+ when /Integer/i
159
+ value.to_i
160
+ when /Float/i
161
+ value.to_f
162
+ else
163
+ value
164
+ end
165
+ end
166
+ end
167
+
168
+ def valid?(value)
169
+ !value || allowable_values.include?(value)
170
+ end
171
+ end
148
172
 
149
173
  # Attribute mapping from ruby-style variable name to JSON key.
150
174
  def self.attribute_map
@@ -175,6 +199,7 @@ module AsposeWordsCloud
175
199
  :'escape_uri' => :'EscapeUri',
176
200
  :'export_document_structure' => :'ExportDocumentStructure',
177
201
  :'font_embedding_mode' => :'FontEmbeddingMode',
202
+ :'header_footer_bookmarks_export_mode' => :'HeaderFooterBookmarksExportMode',
178
203
  :'image_color_space_export_mode' => :'ImageColorSpaceExportMode',
179
204
  :'image_compression' => :'ImageCompression',
180
205
  :'open_hyperlinks_in_new_window' => :'OpenHyperlinksInNewWindow',
@@ -219,6 +244,7 @@ module AsposeWordsCloud
219
244
  :'escape_uri' => :'BOOLEAN',
220
245
  :'export_document_structure' => :'BOOLEAN',
221
246
  :'font_embedding_mode' => :'String',
247
+ :'header_footer_bookmarks_export_mode' => :'String',
222
248
  :'image_color_space_export_mode' => :'String',
223
249
  :'image_compression' => :'String',
224
250
  :'open_hyperlinks_in_new_window' => :'BOOLEAN',
@@ -346,6 +372,10 @@ module AsposeWordsCloud
346
372
  self.font_embedding_mode = attributes[:'FontEmbeddingMode']
347
373
  end
348
374
 
375
+ if attributes.key?(:'HeaderFooterBookmarksExportMode')
376
+ self.header_footer_bookmarks_export_mode = attributes[:'HeaderFooterBookmarksExportMode']
377
+ end
378
+
349
379
  if attributes.key?(:'ImageColorSpaceExportMode')
350
380
  self.image_color_space_export_mode = attributes[:'ImageColorSpaceExportMode']
351
381
  end
@@ -406,9 +436,25 @@ module AsposeWordsCloud
406
436
  # Check to see if the all the properties in the model are valid
407
437
  # @return true if the model is valid
408
438
  def valid?
439
+ header_footer_bookmarks_export_mode_validator = EnumAttributeValidator.new('String', ["None", "First", "All"])
440
+ return false unless header_footer_bookmarks_export_mode_validator.valid?(@header_footer_bookmarks_export_mode)
409
441
  return true
410
442
  end
411
443
 
444
+ # Custom attribute writer method checking allowed values (enum).
445
+ # @param [Object] header_footer_bookmarks_export_mode Object to be assigned
446
+ def header_footer_bookmarks_export_mode=(header_footer_bookmarks_export_mode)
447
+ validator = EnumAttributeValidator.new('String', ["None", "First", "All"])
448
+ if header_footer_bookmarks_export_mode.to_i == 0
449
+ unless validator.valid?(header_footer_bookmarks_export_mode)
450
+ raise ArgumentError, "invalid value for 'header_footer_bookmarks_export_mode', must be one of #{validator.allowable_values}."
451
+ end
452
+ @header_footer_bookmarks_export_mode = header_footer_bookmarks_export_mode
453
+ else
454
+ @header_footer_bookmarks_export_mode = validator.allowable_values[header_footer_bookmarks_export_mode.to_i]
455
+ end
456
+ end
457
+
412
458
  # Checks equality by comparing each attribute.
413
459
  # @param [Object] Object to be compared
414
460
  def ==(other)
@@ -440,6 +486,7 @@ module AsposeWordsCloud
440
486
  escape_uri == other.escape_uri &&
441
487
  export_document_structure == other.export_document_structure &&
442
488
  font_embedding_mode == other.font_embedding_mode &&
489
+ header_footer_bookmarks_export_mode == other.header_footer_bookmarks_export_mode &&
443
490
  image_color_space_export_mode == other.image_color_space_export_mode &&
444
491
  image_compression == other.image_compression &&
445
492
  open_hyperlinks_in_new_window == other.open_hyperlinks_in_new_window &&
@@ -463,7 +510,7 @@ module AsposeWordsCloud
463
510
  # Calculates hash code according to all attributes.
464
511
  # @return [Fixnum] Hash code
465
512
  def hash
466
- [color_mode, save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, 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, escape_uri, export_document_structure, font_embedding_mode, image_color_space_export_mode, image_compression, 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
513
+ [color_mode, save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, 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, escape_uri, export_document_structure, font_embedding_mode, header_footer_bookmarks_export_mode, image_color_space_export_mode, image_compression, 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
467
514
  end
468
515
 
469
516
  # Builds the object from hash
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module AsposeWordsCloud
28
- VERSION = "18.7".freeze
28
+ VERSION = "18.8".freeze
29
29
  end
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: '18.7'
4
+ version: '18.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - YaroslawEkimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2018-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday