groupdocs_conversion_cloud 25.5 → 25.6
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 +4 -4
- data/lib/groupdocs_conversion_cloud/models/doc_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/models/docm_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/models/docx_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/models/dot_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/models/dotm_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/models/dotx_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/models/mobi_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/odt_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/ott_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +3 -3
- data/lib/groupdocs_conversion_cloud/models/word_processing_load_options.rb +356 -34
- data/lib/groupdocs_conversion_cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a32da8c9bbef0cca2fe3cd8a44a50736faef82ba5e27451252cd41cf2b41c6b5
|
4
|
+
data.tar.gz: 0f499c0dd26883d00c153dc5d61a82eb3c87e7b7ae0ace4aa281a90c081251c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee15e7c2894e7e9b4c818ebef3079d356e0638f8a36490fce6dd2e7a0a3b532dc9836160212fda50dd8c0456328198b21e466ee26676a73b0f3c881139e1b1c
|
7
|
+
data.tar.gz: cf96ea77a3d3cada4d7d4495419d0b8ff6b440fd31e7c7745b69d6443e057ffdb7f4c76de25987a0165b7eea7548013c081a8e969bb891103bbbbe39b534e670
|
@@ -37,9 +37,6 @@ module GroupDocsConversionCloud
|
|
37
37
|
# Default font for Words document. The following font will be used if a font is missing.
|
38
38
|
attr_accessor :default_font
|
39
39
|
|
40
|
-
# If AutoFontSubstitution is disabled, GroupDocs.Conversion uses the DefaultFont for the substitution of missing fonts. If AutoFontSubstitution is enabled, GroupDocs.Conversion evaluates all the related fields in FontInfo (Panose, Sig etc) for the missing font and finds the closest match among the available font sources. Note that font substitution mechanism will override the DefaultFont in cases when FontInfo for the missing font is available in the document. The default value is True.
|
41
|
-
attr_accessor :auto_font_substitution
|
42
|
-
|
43
40
|
# Substitute specific fonts when converting Words document.
|
44
41
|
attr_accessor :font_substitutes
|
45
42
|
|
@@ -49,9 +46,6 @@ module GroupDocsConversionCloud
|
|
49
46
|
# Hide markup and track changes for Word documents
|
50
47
|
attr_accessor :hide_word_tracked_changes
|
51
48
|
|
52
|
-
# Hide comments
|
53
|
-
attr_accessor :hide_comments
|
54
|
-
|
55
49
|
# Specifies the default level in the document outline at which to display Word bookmarks. Default is 0. Valid range is 0 to 9.
|
56
50
|
attr_accessor :bookmarks_outline_level
|
57
51
|
|
@@ -61,19 +55,122 @@ module GroupDocsConversionCloud
|
|
61
55
|
# Specifies how many levels in the document outline to show expanded when the file is viewed. Default is 0. Valid range is 0 to 9. Note that this options will not work when saving to XPS.
|
62
56
|
attr_accessor :expanded_outline_levels
|
63
57
|
|
58
|
+
# Clear custom document properties. Default is false.
|
59
|
+
attr_accessor :clear_custom_document_properties
|
60
|
+
|
61
|
+
# Clear built-in document properties. Default is false.
|
62
|
+
attr_accessor :clear_built_in_document_properties
|
63
|
+
|
64
|
+
# Option to control how many levels in depth to perform conversion. Default: 1.
|
65
|
+
attr_accessor :depth
|
66
|
+
|
67
|
+
# Option to control whether the owned documents in the documents container must be converted
|
68
|
+
attr_accessor :convert_owned
|
69
|
+
|
70
|
+
# Option to control whether the documents container itself must be converted If this property is true the documents container will be the first converted document. Default is true.
|
71
|
+
attr_accessor :convert_owner
|
72
|
+
|
73
|
+
# Gets or sets value determining whether automatic hyphenation is turned on for the document. Default value for this property is false.
|
74
|
+
attr_accessor :auto_hyphenation
|
75
|
+
|
76
|
+
# Gets or sets value determining whether words written in all capital letters are hyphenated. Default value for this property is true.
|
77
|
+
attr_accessor :hyphenate_caps
|
78
|
+
|
79
|
+
# Enable or disable generation of page numbering in converted document. Default: false
|
80
|
+
attr_accessor :page_numbering
|
81
|
+
|
82
|
+
# Determines whether the document structure should be preserved when converting to PDF (default is false).
|
83
|
+
attr_accessor :preserve_document_structure
|
84
|
+
|
85
|
+
# If true all external resource will not be loading. Default is true.
|
86
|
+
attr_accessor :skip_external_resources
|
87
|
+
|
88
|
+
# Specifies whether to use a text shaper for better kerning display. Default is false.
|
89
|
+
attr_accessor :use_text_shaper
|
90
|
+
|
91
|
+
# Specifies whether to preserve Microsoft Word form fields as form fields in PDF or convert them to text. Default is false.
|
92
|
+
attr_accessor :preserve_form_fields
|
93
|
+
|
94
|
+
# Specifies how comments should be displayed in the output document. Default is Balloon.
|
95
|
+
attr_accessor :comment_display_mode
|
96
|
+
|
97
|
+
# Keep original value of date field. Default: false
|
98
|
+
attr_accessor :keep_date_field_original_value
|
99
|
+
|
100
|
+
# Update fields after loading. Default: false
|
101
|
+
attr_accessor :update_fields
|
102
|
+
|
103
|
+
# Update page layout after loading. Default: false
|
104
|
+
attr_accessor :update_page_layout
|
105
|
+
|
106
|
+
# If EmbedTrueTypeFonts is true, GroupDocs.Conversion Cloud embed true type fonts in the output document. Default: true
|
107
|
+
attr_accessor :embed_true_type_fonts
|
108
|
+
|
109
|
+
# Automatically substitutes missing fonts based on FontInfo in the document. Default: false.
|
110
|
+
attr_accessor :font_info_substitution_enabled
|
111
|
+
|
112
|
+
# Automatically substitutes missing fonts based on FontConfig in the system. Default: false.
|
113
|
+
attr_accessor :font_config_substitution_enabled
|
114
|
+
|
115
|
+
# Automatically substitutes missing fonts based on the font name. Default: false.
|
116
|
+
attr_accessor :font_name_substitution_enabled
|
117
|
+
|
118
|
+
# Show full commenter name in comments. Default is false.
|
119
|
+
attr_accessor :show_full_commenter_name
|
120
|
+
class EnumAttributeValidator
|
121
|
+
attr_reader :datatype
|
122
|
+
attr_reader :allowable_values
|
123
|
+
|
124
|
+
def initialize(datatype, allowable_values)
|
125
|
+
@allowable_values = allowable_values.map do |value|
|
126
|
+
case datatype.to_s
|
127
|
+
when /Integer/i
|
128
|
+
value.to_i
|
129
|
+
when /Float/i
|
130
|
+
value.to_f
|
131
|
+
else
|
132
|
+
value
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
def valid?(value)
|
138
|
+
!value || allowable_values.include?(value)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
64
142
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
143
|
def self.attribute_map
|
66
144
|
{
|
67
145
|
:'format' => :'Format',
|
68
146
|
:'default_font' => :'DefaultFont',
|
69
|
-
:'auto_font_substitution' => :'AutoFontSubstitution',
|
70
147
|
:'font_substitutes' => :'FontSubstitutes',
|
71
148
|
:'password' => :'Password',
|
72
149
|
:'hide_word_tracked_changes' => :'HideWordTrackedChanges',
|
73
|
-
:'hide_comments' => :'HideComments',
|
74
150
|
:'bookmarks_outline_level' => :'BookmarksOutlineLevel',
|
75
151
|
:'headings_outline_levels' => :'HeadingsOutlineLevels',
|
76
|
-
:'expanded_outline_levels' => :'ExpandedOutlineLevels'
|
152
|
+
:'expanded_outline_levels' => :'ExpandedOutlineLevels',
|
153
|
+
:'clear_custom_document_properties' => :'ClearCustomDocumentProperties',
|
154
|
+
:'clear_built_in_document_properties' => :'ClearBuiltInDocumentProperties',
|
155
|
+
:'depth' => :'Depth',
|
156
|
+
:'convert_owned' => :'ConvertOwned',
|
157
|
+
:'convert_owner' => :'ConvertOwner',
|
158
|
+
:'auto_hyphenation' => :'AutoHyphenation',
|
159
|
+
:'hyphenate_caps' => :'HyphenateCaps',
|
160
|
+
:'page_numbering' => :'PageNumbering',
|
161
|
+
:'preserve_document_structure' => :'PreserveDocumentStructure',
|
162
|
+
:'skip_external_resources' => :'SkipExternalResources',
|
163
|
+
:'use_text_shaper' => :'UseTextShaper',
|
164
|
+
:'preserve_form_fields' => :'PreserveFormFields',
|
165
|
+
:'comment_display_mode' => :'CommentDisplayMode',
|
166
|
+
:'keep_date_field_original_value' => :'KeepDateFieldOriginalValue',
|
167
|
+
:'update_fields' => :'UpdateFields',
|
168
|
+
:'update_page_layout' => :'UpdatePageLayout',
|
169
|
+
:'embed_true_type_fonts' => :'EmbedTrueTypeFonts',
|
170
|
+
:'font_info_substitution_enabled' => :'FontInfoSubstitutionEnabled',
|
171
|
+
:'font_config_substitution_enabled' => :'FontConfigSubstitutionEnabled',
|
172
|
+
:'font_name_substitution_enabled' => :'FontNameSubstitutionEnabled',
|
173
|
+
:'show_full_commenter_name' => :'ShowFullCommenterName'
|
77
174
|
}
|
78
175
|
end
|
79
176
|
|
@@ -82,14 +179,33 @@ module GroupDocsConversionCloud
|
|
82
179
|
{
|
83
180
|
:'format' => :'String',
|
84
181
|
:'default_font' => :'String',
|
85
|
-
:'auto_font_substitution' => :'BOOLEAN',
|
86
182
|
:'font_substitutes' => :'Hash<String, String>',
|
87
183
|
:'password' => :'String',
|
88
184
|
:'hide_word_tracked_changes' => :'BOOLEAN',
|
89
|
-
:'hide_comments' => :'BOOLEAN',
|
90
185
|
:'bookmarks_outline_level' => :'Integer',
|
91
186
|
:'headings_outline_levels' => :'Integer',
|
92
|
-
:'expanded_outline_levels' => :'Integer'
|
187
|
+
:'expanded_outline_levels' => :'Integer',
|
188
|
+
:'clear_custom_document_properties' => :'BOOLEAN',
|
189
|
+
:'clear_built_in_document_properties' => :'BOOLEAN',
|
190
|
+
:'depth' => :'Integer',
|
191
|
+
:'convert_owned' => :'BOOLEAN',
|
192
|
+
:'convert_owner' => :'BOOLEAN',
|
193
|
+
:'auto_hyphenation' => :'BOOLEAN',
|
194
|
+
:'hyphenate_caps' => :'BOOLEAN',
|
195
|
+
:'page_numbering' => :'BOOLEAN',
|
196
|
+
:'preserve_document_structure' => :'BOOLEAN',
|
197
|
+
:'skip_external_resources' => :'BOOLEAN',
|
198
|
+
:'use_text_shaper' => :'BOOLEAN',
|
199
|
+
:'preserve_form_fields' => :'BOOLEAN',
|
200
|
+
:'comment_display_mode' => :'String',
|
201
|
+
:'keep_date_field_original_value' => :'BOOLEAN',
|
202
|
+
:'update_fields' => :'BOOLEAN',
|
203
|
+
:'update_page_layout' => :'BOOLEAN',
|
204
|
+
:'embed_true_type_fonts' => :'BOOLEAN',
|
205
|
+
:'font_info_substitution_enabled' => :'BOOLEAN',
|
206
|
+
:'font_config_substitution_enabled' => :'BOOLEAN',
|
207
|
+
:'font_name_substitution_enabled' => :'BOOLEAN',
|
208
|
+
:'show_full_commenter_name' => :'BOOLEAN'
|
93
209
|
}
|
94
210
|
end
|
95
211
|
|
@@ -109,10 +225,6 @@ module GroupDocsConversionCloud
|
|
109
225
|
self.default_font = attributes[:'DefaultFont']
|
110
226
|
end
|
111
227
|
|
112
|
-
if attributes.key?(:'AutoFontSubstitution')
|
113
|
-
self.auto_font_substitution = attributes[:'AutoFontSubstitution']
|
114
|
-
end
|
115
|
-
|
116
228
|
if attributes.key?(:'FontSubstitutes')
|
117
229
|
if (value = attributes[:'FontSubstitutes']).is_a?(Hash)
|
118
230
|
self.font_substitutes = value
|
@@ -127,10 +239,6 @@ module GroupDocsConversionCloud
|
|
127
239
|
self.hide_word_tracked_changes = attributes[:'HideWordTrackedChanges']
|
128
240
|
end
|
129
241
|
|
130
|
-
if attributes.key?(:'HideComments')
|
131
|
-
self.hide_comments = attributes[:'HideComments']
|
132
|
-
end
|
133
|
-
|
134
242
|
if attributes.key?(:'BookmarksOutlineLevel')
|
135
243
|
self.bookmarks_outline_level = attributes[:'BookmarksOutlineLevel']
|
136
244
|
end
|
@@ -143,24 +251,100 @@ module GroupDocsConversionCloud
|
|
143
251
|
self.expanded_outline_levels = attributes[:'ExpandedOutlineLevels']
|
144
252
|
end
|
145
253
|
|
254
|
+
if attributes.key?(:'ClearCustomDocumentProperties')
|
255
|
+
self.clear_custom_document_properties = attributes[:'ClearCustomDocumentProperties']
|
256
|
+
end
|
257
|
+
|
258
|
+
if attributes.key?(:'ClearBuiltInDocumentProperties')
|
259
|
+
self.clear_built_in_document_properties = attributes[:'ClearBuiltInDocumentProperties']
|
260
|
+
end
|
261
|
+
|
262
|
+
if attributes.key?(:'Depth')
|
263
|
+
self.depth = attributes[:'Depth']
|
264
|
+
end
|
265
|
+
|
266
|
+
if attributes.key?(:'ConvertOwned')
|
267
|
+
self.convert_owned = attributes[:'ConvertOwned']
|
268
|
+
end
|
269
|
+
|
270
|
+
if attributes.key?(:'ConvertOwner')
|
271
|
+
self.convert_owner = attributes[:'ConvertOwner']
|
272
|
+
end
|
273
|
+
|
274
|
+
if attributes.key?(:'AutoHyphenation')
|
275
|
+
self.auto_hyphenation = attributes[:'AutoHyphenation']
|
276
|
+
end
|
277
|
+
|
278
|
+
if attributes.key?(:'HyphenateCaps')
|
279
|
+
self.hyphenate_caps = attributes[:'HyphenateCaps']
|
280
|
+
end
|
281
|
+
|
282
|
+
if attributes.key?(:'PageNumbering')
|
283
|
+
self.page_numbering = attributes[:'PageNumbering']
|
284
|
+
end
|
285
|
+
|
286
|
+
if attributes.key?(:'PreserveDocumentStructure')
|
287
|
+
self.preserve_document_structure = attributes[:'PreserveDocumentStructure']
|
288
|
+
end
|
289
|
+
|
290
|
+
if attributes.key?(:'SkipExternalResources')
|
291
|
+
self.skip_external_resources = attributes[:'SkipExternalResources']
|
292
|
+
end
|
293
|
+
|
294
|
+
if attributes.key?(:'UseTextShaper')
|
295
|
+
self.use_text_shaper = attributes[:'UseTextShaper']
|
296
|
+
end
|
297
|
+
|
298
|
+
if attributes.key?(:'PreserveFormFields')
|
299
|
+
self.preserve_form_fields = attributes[:'PreserveFormFields']
|
300
|
+
end
|
301
|
+
|
302
|
+
if attributes.key?(:'CommentDisplayMode')
|
303
|
+
self.comment_display_mode = attributes[:'CommentDisplayMode']
|
304
|
+
end
|
305
|
+
|
306
|
+
if attributes.key?(:'KeepDateFieldOriginalValue')
|
307
|
+
self.keep_date_field_original_value = attributes[:'KeepDateFieldOriginalValue']
|
308
|
+
end
|
309
|
+
|
310
|
+
if attributes.key?(:'UpdateFields')
|
311
|
+
self.update_fields = attributes[:'UpdateFields']
|
312
|
+
end
|
313
|
+
|
314
|
+
if attributes.key?(:'UpdatePageLayout')
|
315
|
+
self.update_page_layout = attributes[:'UpdatePageLayout']
|
316
|
+
end
|
317
|
+
|
318
|
+
if attributes.key?(:'EmbedTrueTypeFonts')
|
319
|
+
self.embed_true_type_fonts = attributes[:'EmbedTrueTypeFonts']
|
320
|
+
end
|
321
|
+
|
322
|
+
if attributes.key?(:'FontInfoSubstitutionEnabled')
|
323
|
+
self.font_info_substitution_enabled = attributes[:'FontInfoSubstitutionEnabled']
|
324
|
+
end
|
325
|
+
|
326
|
+
if attributes.key?(:'FontConfigSubstitutionEnabled')
|
327
|
+
self.font_config_substitution_enabled = attributes[:'FontConfigSubstitutionEnabled']
|
328
|
+
end
|
329
|
+
|
330
|
+
if attributes.key?(:'FontNameSubstitutionEnabled')
|
331
|
+
self.font_name_substitution_enabled = attributes[:'FontNameSubstitutionEnabled']
|
332
|
+
end
|
333
|
+
|
334
|
+
if attributes.key?(:'ShowFullCommenterName')
|
335
|
+
self.show_full_commenter_name = attributes[:'ShowFullCommenterName']
|
336
|
+
end
|
337
|
+
|
146
338
|
end
|
147
339
|
|
148
340
|
# Show invalid properties with the reasons. Usually used together with valid?
|
149
341
|
# @return Array for valid properies with the reasons
|
150
342
|
def list_invalid_properties
|
151
343
|
invalid_properties = []
|
152
|
-
if @auto_font_substitution.nil?
|
153
|
-
invalid_properties.push("invalid value for 'auto_font_substitution', auto_font_substitution cannot be nil.")
|
154
|
-
end
|
155
|
-
|
156
344
|
if @hide_word_tracked_changes.nil?
|
157
345
|
invalid_properties.push("invalid value for 'hide_word_tracked_changes', hide_word_tracked_changes cannot be nil.")
|
158
346
|
end
|
159
347
|
|
160
|
-
if @hide_comments.nil?
|
161
|
-
invalid_properties.push("invalid value for 'hide_comments', hide_comments cannot be nil.")
|
162
|
-
end
|
163
|
-
|
164
348
|
if @bookmarks_outline_level.nil?
|
165
349
|
invalid_properties.push("invalid value for 'bookmarks_outline_level', bookmarks_outline_level cannot be nil.")
|
166
350
|
end
|
@@ -173,21 +357,140 @@ module GroupDocsConversionCloud
|
|
173
357
|
invalid_properties.push("invalid value for 'expanded_outline_levels', expanded_outline_levels cannot be nil.")
|
174
358
|
end
|
175
359
|
|
360
|
+
if @clear_custom_document_properties.nil?
|
361
|
+
invalid_properties.push("invalid value for 'clear_custom_document_properties', clear_custom_document_properties cannot be nil.")
|
362
|
+
end
|
363
|
+
|
364
|
+
if @clear_built_in_document_properties.nil?
|
365
|
+
invalid_properties.push("invalid value for 'clear_built_in_document_properties', clear_built_in_document_properties cannot be nil.")
|
366
|
+
end
|
367
|
+
|
368
|
+
if @depth.nil?
|
369
|
+
invalid_properties.push("invalid value for 'depth', depth cannot be nil.")
|
370
|
+
end
|
371
|
+
|
372
|
+
if @convert_owned.nil?
|
373
|
+
invalid_properties.push("invalid value for 'convert_owned', convert_owned cannot be nil.")
|
374
|
+
end
|
375
|
+
|
376
|
+
if @convert_owner.nil?
|
377
|
+
invalid_properties.push("invalid value for 'convert_owner', convert_owner cannot be nil.")
|
378
|
+
end
|
379
|
+
|
380
|
+
if @auto_hyphenation.nil?
|
381
|
+
invalid_properties.push("invalid value for 'auto_hyphenation', auto_hyphenation cannot be nil.")
|
382
|
+
end
|
383
|
+
|
384
|
+
if @hyphenate_caps.nil?
|
385
|
+
invalid_properties.push("invalid value for 'hyphenate_caps', hyphenate_caps cannot be nil.")
|
386
|
+
end
|
387
|
+
|
388
|
+
if @page_numbering.nil?
|
389
|
+
invalid_properties.push("invalid value for 'page_numbering', page_numbering cannot be nil.")
|
390
|
+
end
|
391
|
+
|
392
|
+
if @preserve_document_structure.nil?
|
393
|
+
invalid_properties.push("invalid value for 'preserve_document_structure', preserve_document_structure cannot be nil.")
|
394
|
+
end
|
395
|
+
|
396
|
+
if @skip_external_resources.nil?
|
397
|
+
invalid_properties.push("invalid value for 'skip_external_resources', skip_external_resources cannot be nil.")
|
398
|
+
end
|
399
|
+
|
400
|
+
if @use_text_shaper.nil?
|
401
|
+
invalid_properties.push("invalid value for 'use_text_shaper', use_text_shaper cannot be nil.")
|
402
|
+
end
|
403
|
+
|
404
|
+
if @preserve_form_fields.nil?
|
405
|
+
invalid_properties.push("invalid value for 'preserve_form_fields', preserve_form_fields cannot be nil.")
|
406
|
+
end
|
407
|
+
|
408
|
+
if @comment_display_mode.nil?
|
409
|
+
invalid_properties.push("invalid value for 'comment_display_mode', comment_display_mode cannot be nil.")
|
410
|
+
end
|
411
|
+
|
412
|
+
if @keep_date_field_original_value.nil?
|
413
|
+
invalid_properties.push("invalid value for 'keep_date_field_original_value', keep_date_field_original_value cannot be nil.")
|
414
|
+
end
|
415
|
+
|
416
|
+
if @update_fields.nil?
|
417
|
+
invalid_properties.push("invalid value for 'update_fields', update_fields cannot be nil.")
|
418
|
+
end
|
419
|
+
|
420
|
+
if @update_page_layout.nil?
|
421
|
+
invalid_properties.push("invalid value for 'update_page_layout', update_page_layout cannot be nil.")
|
422
|
+
end
|
423
|
+
|
424
|
+
if @embed_true_type_fonts.nil?
|
425
|
+
invalid_properties.push("invalid value for 'embed_true_type_fonts', embed_true_type_fonts cannot be nil.")
|
426
|
+
end
|
427
|
+
|
428
|
+
if @font_info_substitution_enabled.nil?
|
429
|
+
invalid_properties.push("invalid value for 'font_info_substitution_enabled', font_info_substitution_enabled cannot be nil.")
|
430
|
+
end
|
431
|
+
|
432
|
+
if @font_config_substitution_enabled.nil?
|
433
|
+
invalid_properties.push("invalid value for 'font_config_substitution_enabled', font_config_substitution_enabled cannot be nil.")
|
434
|
+
end
|
435
|
+
|
436
|
+
if @font_name_substitution_enabled.nil?
|
437
|
+
invalid_properties.push("invalid value for 'font_name_substitution_enabled', font_name_substitution_enabled cannot be nil.")
|
438
|
+
end
|
439
|
+
|
440
|
+
if @show_full_commenter_name.nil?
|
441
|
+
invalid_properties.push("invalid value for 'show_full_commenter_name', show_full_commenter_name cannot be nil.")
|
442
|
+
end
|
443
|
+
|
176
444
|
return invalid_properties
|
177
445
|
end
|
178
446
|
|
179
447
|
# Check to see if the all the properties in the model are valid
|
180
448
|
# @return true if the model is valid
|
181
449
|
def valid?
|
182
|
-
return false if @auto_font_substitution.nil?
|
183
450
|
return false if @hide_word_tracked_changes.nil?
|
184
|
-
return false if @hide_comments.nil?
|
185
451
|
return false if @bookmarks_outline_level.nil?
|
186
452
|
return false if @headings_outline_levels.nil?
|
187
453
|
return false if @expanded_outline_levels.nil?
|
454
|
+
return false if @clear_custom_document_properties.nil?
|
455
|
+
return false if @clear_built_in_document_properties.nil?
|
456
|
+
return false if @depth.nil?
|
457
|
+
return false if @convert_owned.nil?
|
458
|
+
return false if @convert_owner.nil?
|
459
|
+
return false if @auto_hyphenation.nil?
|
460
|
+
return false if @hyphenate_caps.nil?
|
461
|
+
return false if @page_numbering.nil?
|
462
|
+
return false if @preserve_document_structure.nil?
|
463
|
+
return false if @skip_external_resources.nil?
|
464
|
+
return false if @use_text_shaper.nil?
|
465
|
+
return false if @preserve_form_fields.nil?
|
466
|
+
return false if @comment_display_mode.nil?
|
467
|
+
comment_display_mode_validator = EnumAttributeValidator.new('String', ["Hidden", "Balloon", "Annotation"])
|
468
|
+
return false unless comment_display_mode_validator.valid?(@comment_display_mode)
|
469
|
+
return false if @keep_date_field_original_value.nil?
|
470
|
+
return false if @update_fields.nil?
|
471
|
+
return false if @update_page_layout.nil?
|
472
|
+
return false if @embed_true_type_fonts.nil?
|
473
|
+
return false if @font_info_substitution_enabled.nil?
|
474
|
+
return false if @font_config_substitution_enabled.nil?
|
475
|
+
return false if @font_name_substitution_enabled.nil?
|
476
|
+
return false if @show_full_commenter_name.nil?
|
188
477
|
return true
|
189
478
|
end
|
190
479
|
|
480
|
+
# Custom attribute writer method checking allowed values (enum).
|
481
|
+
# @param [Object] comment_display_mode Object to be assigned
|
482
|
+
def comment_display_mode=(comment_display_mode)
|
483
|
+
validator = EnumAttributeValidator.new('String', ["Hidden", "Balloon", "Annotation"])
|
484
|
+
if comment_display_mode.to_i == 0
|
485
|
+
unless validator.valid?(comment_display_mode)
|
486
|
+
raise ArgumentError, "invalid value for 'comment_display_mode', must be one of #{validator.allowable_values}."
|
487
|
+
end
|
488
|
+
@comment_display_mode = comment_display_mode
|
489
|
+
else
|
490
|
+
@comment_display_mode = validator.allowable_values[comment_display_mode.to_i]
|
491
|
+
end
|
492
|
+
end
|
493
|
+
|
191
494
|
# Checks equality by comparing each attribute.
|
192
495
|
# @param [Object] Object to be compared
|
193
496
|
def ==(other)
|
@@ -195,14 +498,33 @@ module GroupDocsConversionCloud
|
|
195
498
|
self.class == other.class &&
|
196
499
|
format == other.format &&
|
197
500
|
default_font == other.default_font &&
|
198
|
-
auto_font_substitution == other.auto_font_substitution &&
|
199
501
|
font_substitutes == other.font_substitutes &&
|
200
502
|
password == other.password &&
|
201
503
|
hide_word_tracked_changes == other.hide_word_tracked_changes &&
|
202
|
-
hide_comments == other.hide_comments &&
|
203
504
|
bookmarks_outline_level == other.bookmarks_outline_level &&
|
204
505
|
headings_outline_levels == other.headings_outline_levels &&
|
205
|
-
expanded_outline_levels == other.expanded_outline_levels
|
506
|
+
expanded_outline_levels == other.expanded_outline_levels &&
|
507
|
+
clear_custom_document_properties == other.clear_custom_document_properties &&
|
508
|
+
clear_built_in_document_properties == other.clear_built_in_document_properties &&
|
509
|
+
depth == other.depth &&
|
510
|
+
convert_owned == other.convert_owned &&
|
511
|
+
convert_owner == other.convert_owner &&
|
512
|
+
auto_hyphenation == other.auto_hyphenation &&
|
513
|
+
hyphenate_caps == other.hyphenate_caps &&
|
514
|
+
page_numbering == other.page_numbering &&
|
515
|
+
preserve_document_structure == other.preserve_document_structure &&
|
516
|
+
skip_external_resources == other.skip_external_resources &&
|
517
|
+
use_text_shaper == other.use_text_shaper &&
|
518
|
+
preserve_form_fields == other.preserve_form_fields &&
|
519
|
+
comment_display_mode == other.comment_display_mode &&
|
520
|
+
keep_date_field_original_value == other.keep_date_field_original_value &&
|
521
|
+
update_fields == other.update_fields &&
|
522
|
+
update_page_layout == other.update_page_layout &&
|
523
|
+
embed_true_type_fonts == other.embed_true_type_fonts &&
|
524
|
+
font_info_substitution_enabled == other.font_info_substitution_enabled &&
|
525
|
+
font_config_substitution_enabled == other.font_config_substitution_enabled &&
|
526
|
+
font_name_substitution_enabled == other.font_name_substitution_enabled &&
|
527
|
+
show_full_commenter_name == other.show_full_commenter_name
|
206
528
|
end
|
207
529
|
|
208
530
|
# @see the `==` method
|
@@ -214,7 +536,7 @@ module GroupDocsConversionCloud
|
|
214
536
|
# Calculates hash code according to all attributes.
|
215
537
|
# @return [Fixnum] Hash code
|
216
538
|
def hash
|
217
|
-
[format, default_font,
|
539
|
+
[format, default_font, font_substitutes, password, hide_word_tracked_changes, bookmarks_outline_level, headings_outline_levels, expanded_outline_levels, clear_custom_document_properties, clear_built_in_document_properties, depth, convert_owned, convert_owner, auto_hyphenation, hyphenate_caps, page_numbering, preserve_document_structure, skip_external_resources, use_text_shaper, preserve_form_fields, comment_display_mode, keep_date_field_original_value, update_fields, update_page_layout, embed_true_type_fonts, font_info_substitution_enabled, font_config_substitution_enabled, font_name_substitution_enabled, show_full_commenter_name].hash
|
218
540
|
end
|
219
541
|
|
220
542
|
# Downcases first letter.
|