groupdocs_conversion_cloud 25.6 → 25.9
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/cad_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +230 -61
- data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +142 -77
- data/lib/groupdocs_conversion_cloud/models/pdf_load_options.rb +110 -28
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/web_load_options.rb +81 -4
- data/lib/groupdocs_conversion_cloud/version.rb +1 -1
- data/lib/groupdocs_conversion_cloud.rb +0 -79
- metadata +2 -81
- data/lib/groupdocs_conversion_cloud/models/bmp_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/cf2_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/dcm_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/dng_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/doc_load_options.rb +0 -658
- data/lib/groupdocs_conversion_cloud/models/docm_load_options.rb +0 -658
- data/lib/groupdocs_conversion_cloud/models/docx_load_options.rb +0 -658
- data/lib/groupdocs_conversion_cloud/models/dot_load_options.rb +0 -658
- data/lib/groupdocs_conversion_cloud/models/dotm_load_options.rb +0 -658
- data/lib/groupdocs_conversion_cloud/models/dotx_load_options.rb +0 -658
- data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/dwfx_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/dwt_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/emf_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +0 -341
- data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +0 -341
- data/lib/groupdocs_conversion_cloud/models/gif_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/ico_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/j2c_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/j2k_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/jp2_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/jpeg_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/jpf_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/jpg_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/jpm_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/jpx_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +0 -341
- data/lib/groupdocs_conversion_cloud/models/mobi_load_options.rb +0 -658
- data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +0 -341
- data/lib/groupdocs_conversion_cloud/models/odg_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +0 -368
- data/lib/groupdocs_conversion_cloud/models/odt_load_options.rb +0 -658
- data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +0 -341
- data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +0 -368
- data/lib/groupdocs_conversion_cloud/models/ott_load_options.rb +0 -658
- data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/png_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +0 -434
- data/lib/groupdocs_conversion_cloud/models/psd_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +0 -341
- data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +0 -288
- data/lib/groupdocs_conversion_cloud/models/tif_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/tiff_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vdw_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vdx_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vsd_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vsdm_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vsdx_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vss_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vssm_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vssx_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vst_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vstm_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vstx_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vsx_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/vtx_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/webp_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/wmf_load_options.rb +0 -224
- data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +0 -368
- data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +0 -368
- data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +0 -368
- data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +0 -368
- data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +0 -368
- data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +0 -368
- data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +0 -368
@@ -1,658 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="odt_load_options.rb">
|
4
|
-
# Copyright (c) Aspose Pty Ltd
|
5
|
-
# </copyright>
|
6
|
-
# <summary>
|
7
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
-
# of this software and associated documentation files (the "Software"), to deal
|
9
|
-
# in the Software without restriction, including without limitation the rights
|
10
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
-
# copies of the Software, and to permit persons to whom the Software is
|
12
|
-
# furnished to do so, subject to the following conditions:
|
13
|
-
#
|
14
|
-
# The above copyright notice and this permission notice shall be included in all
|
15
|
-
# copies or substantial portions of the Software.
|
16
|
-
#
|
17
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
-
# SOFTWARE.
|
24
|
-
# </summary>
|
25
|
-
# --------------------------------------------------------------------------------------------------------------------
|
26
|
-
#
|
27
|
-
|
28
|
-
require 'date'
|
29
|
-
|
30
|
-
module GroupDocsConversionCloud
|
31
|
-
# Odt load options
|
32
|
-
class OdtLoadOptions
|
33
|
-
|
34
|
-
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
|
35
|
-
attr_accessor :format
|
36
|
-
|
37
|
-
# Default font for Words document. The following font will be used if a font is missing.
|
38
|
-
attr_accessor :default_font
|
39
|
-
|
40
|
-
# Substitute specific fonts when converting Words document.
|
41
|
-
attr_accessor :font_substitutes
|
42
|
-
|
43
|
-
# Set password to unprotect protected document
|
44
|
-
attr_accessor :password
|
45
|
-
|
46
|
-
# Hide markup and track changes for Word documents
|
47
|
-
attr_accessor :hide_word_tracked_changes
|
48
|
-
|
49
|
-
# Specifies the default level in the document outline at which to display Word bookmarks. Default is 0. Valid range is 0 to 9.
|
50
|
-
attr_accessor :bookmarks_outline_level
|
51
|
-
|
52
|
-
# Specifies how many levels of headings (paragraphs formatted with the Heading styles) to include in the document outline. Default is 0. Valid range is 0 to 9.
|
53
|
-
attr_accessor :headings_outline_levels
|
54
|
-
|
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.
|
56
|
-
attr_accessor :expanded_outline_levels
|
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
|
-
|
142
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
143
|
-
def self.attribute_map
|
144
|
-
{
|
145
|
-
:'format' => :'Format',
|
146
|
-
:'default_font' => :'DefaultFont',
|
147
|
-
:'font_substitutes' => :'FontSubstitutes',
|
148
|
-
:'password' => :'Password',
|
149
|
-
:'hide_word_tracked_changes' => :'HideWordTrackedChanges',
|
150
|
-
:'bookmarks_outline_level' => :'BookmarksOutlineLevel',
|
151
|
-
:'headings_outline_levels' => :'HeadingsOutlineLevels',
|
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'
|
174
|
-
}
|
175
|
-
end
|
176
|
-
|
177
|
-
# Attribute type mapping.
|
178
|
-
def self.swagger_types
|
179
|
-
{
|
180
|
-
:'format' => :'String',
|
181
|
-
:'default_font' => :'String',
|
182
|
-
:'font_substitutes' => :'Hash<String, String>',
|
183
|
-
:'password' => :'String',
|
184
|
-
:'hide_word_tracked_changes' => :'BOOLEAN',
|
185
|
-
:'bookmarks_outline_level' => :'Integer',
|
186
|
-
:'headings_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'
|
209
|
-
}
|
210
|
-
end
|
211
|
-
|
212
|
-
# Initializes the object
|
213
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
214
|
-
def initialize(attributes = {})
|
215
|
-
return unless attributes.is_a?(Hash)
|
216
|
-
|
217
|
-
# convert string to symbol for hash key
|
218
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
219
|
-
|
220
|
-
if attributes.key?(:'Format')
|
221
|
-
self.format = attributes[:'Format']
|
222
|
-
end
|
223
|
-
|
224
|
-
if attributes.key?(:'DefaultFont')
|
225
|
-
self.default_font = attributes[:'DefaultFont']
|
226
|
-
end
|
227
|
-
|
228
|
-
if attributes.key?(:'FontSubstitutes')
|
229
|
-
if (value = attributes[:'FontSubstitutes']).is_a?(Hash)
|
230
|
-
self.font_substitutes = value
|
231
|
-
end
|
232
|
-
end
|
233
|
-
|
234
|
-
if attributes.key?(:'Password')
|
235
|
-
self.password = attributes[:'Password']
|
236
|
-
end
|
237
|
-
|
238
|
-
if attributes.key?(:'HideWordTrackedChanges')
|
239
|
-
self.hide_word_tracked_changes = attributes[:'HideWordTrackedChanges']
|
240
|
-
end
|
241
|
-
|
242
|
-
if attributes.key?(:'BookmarksOutlineLevel')
|
243
|
-
self.bookmarks_outline_level = attributes[:'BookmarksOutlineLevel']
|
244
|
-
end
|
245
|
-
|
246
|
-
if attributes.key?(:'HeadingsOutlineLevels')
|
247
|
-
self.headings_outline_levels = attributes[:'HeadingsOutlineLevels']
|
248
|
-
end
|
249
|
-
|
250
|
-
if attributes.key?(:'ExpandedOutlineLevels')
|
251
|
-
self.expanded_outline_levels = attributes[:'ExpandedOutlineLevels']
|
252
|
-
end
|
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
|
-
|
338
|
-
end
|
339
|
-
|
340
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
341
|
-
# @return Array for valid properies with the reasons
|
342
|
-
def list_invalid_properties
|
343
|
-
invalid_properties = []
|
344
|
-
if @hide_word_tracked_changes.nil?
|
345
|
-
invalid_properties.push("invalid value for 'hide_word_tracked_changes', hide_word_tracked_changes cannot be nil.")
|
346
|
-
end
|
347
|
-
|
348
|
-
if @bookmarks_outline_level.nil?
|
349
|
-
invalid_properties.push("invalid value for 'bookmarks_outline_level', bookmarks_outline_level cannot be nil.")
|
350
|
-
end
|
351
|
-
|
352
|
-
if @headings_outline_levels.nil?
|
353
|
-
invalid_properties.push("invalid value for 'headings_outline_levels', headings_outline_levels cannot be nil.")
|
354
|
-
end
|
355
|
-
|
356
|
-
if @expanded_outline_levels.nil?
|
357
|
-
invalid_properties.push("invalid value for 'expanded_outline_levels', expanded_outline_levels cannot be nil.")
|
358
|
-
end
|
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
|
-
|
444
|
-
return invalid_properties
|
445
|
-
end
|
446
|
-
|
447
|
-
# Check to see if the all the properties in the model are valid
|
448
|
-
# @return true if the model is valid
|
449
|
-
def valid?
|
450
|
-
return false if @hide_word_tracked_changes.nil?
|
451
|
-
return false if @bookmarks_outline_level.nil?
|
452
|
-
return false if @headings_outline_levels.nil?
|
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?
|
477
|
-
return true
|
478
|
-
end
|
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
|
-
|
494
|
-
# Checks equality by comparing each attribute.
|
495
|
-
# @param [Object] Object to be compared
|
496
|
-
def ==(other)
|
497
|
-
return true if self.equal?(other)
|
498
|
-
self.class == other.class &&
|
499
|
-
format == other.format &&
|
500
|
-
default_font == other.default_font &&
|
501
|
-
font_substitutes == other.font_substitutes &&
|
502
|
-
password == other.password &&
|
503
|
-
hide_word_tracked_changes == other.hide_word_tracked_changes &&
|
504
|
-
bookmarks_outline_level == other.bookmarks_outline_level &&
|
505
|
-
headings_outline_levels == other.headings_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
|
528
|
-
end
|
529
|
-
|
530
|
-
# @see the `==` method
|
531
|
-
# @param [Object] Object to be compared
|
532
|
-
def eql?(other)
|
533
|
-
self == other
|
534
|
-
end
|
535
|
-
|
536
|
-
# Calculates hash code according to all attributes.
|
537
|
-
# @return [Fixnum] Hash code
|
538
|
-
def hash
|
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
|
540
|
-
end
|
541
|
-
|
542
|
-
# Downcases first letter.
|
543
|
-
# @return downcased string
|
544
|
-
def uncap(str)
|
545
|
-
str[0, 1].downcase + str[1..-1]
|
546
|
-
end
|
547
|
-
|
548
|
-
# Builds the object from hash
|
549
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
550
|
-
# @return [Object] Returns the model itself
|
551
|
-
def build_from_hash(attributes)
|
552
|
-
return nil unless attributes.is_a?(Hash)
|
553
|
-
self.class.swagger_types.each_pair do |key, type|
|
554
|
-
pname = uncap(self.class.attribute_map[key]).intern
|
555
|
-
value = attributes[pname]
|
556
|
-
if type =~ /\AArray<(.*)>/i
|
557
|
-
# check to ensure the input is an array given that the the attribute
|
558
|
-
# is documented as an array but the input is not
|
559
|
-
if value.is_a?(Array)
|
560
|
-
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
561
|
-
end
|
562
|
-
elsif !value.nil?
|
563
|
-
self.send("#{key}=", _deserialize(type, value))
|
564
|
-
end
|
565
|
-
# or else data not found in attributes(hash), not an issue as the data can be optional
|
566
|
-
end
|
567
|
-
|
568
|
-
self
|
569
|
-
end
|
570
|
-
|
571
|
-
# Deserializes the data based on type
|
572
|
-
# @param string type Data type
|
573
|
-
# @param string value Value to be deserialized
|
574
|
-
# @return [Object] Deserialized data
|
575
|
-
def _deserialize(type, value)
|
576
|
-
case type.to_sym
|
577
|
-
when :DateTime
|
578
|
-
Date.parse value
|
579
|
-
when :Date
|
580
|
-
Date.parse value
|
581
|
-
when :String
|
582
|
-
value.to_s
|
583
|
-
when :Integer
|
584
|
-
value.to_i
|
585
|
-
when :Float
|
586
|
-
value.to_f
|
587
|
-
when :BOOLEAN
|
588
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
589
|
-
true
|
590
|
-
else
|
591
|
-
false
|
592
|
-
end
|
593
|
-
when :Object
|
594
|
-
# generic object (usually a Hash), return directly
|
595
|
-
value
|
596
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
597
|
-
inner_type = Regexp.last_match[:inner_type]
|
598
|
-
value.map { |v| _deserialize(inner_type, v) }
|
599
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
600
|
-
k_type = Regexp.last_match[:k_type]
|
601
|
-
v_type = Regexp.last_match[:v_type]
|
602
|
-
{}.tap do |hash|
|
603
|
-
value.each do |k, v|
|
604
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
605
|
-
end
|
606
|
-
end
|
607
|
-
else
|
608
|
-
# model
|
609
|
-
temp_model = GroupDocsConversionCloud.const_get(type).new
|
610
|
-
temp_model.build_from_hash(value)
|
611
|
-
end
|
612
|
-
end
|
613
|
-
|
614
|
-
# Returns the string representation of the object
|
615
|
-
# @return [String] String presentation of the object
|
616
|
-
def to_s
|
617
|
-
to_hash.to_s
|
618
|
-
end
|
619
|
-
|
620
|
-
# to_body is an alias to to_hash (backward compatibility)
|
621
|
-
# @return [Hash] Returns the object in the form of hash
|
622
|
-
def to_body
|
623
|
-
to_hash
|
624
|
-
end
|
625
|
-
|
626
|
-
# Returns the object in the form of hash
|
627
|
-
# @return [Hash] Returns the object in the form of hash
|
628
|
-
def to_hash
|
629
|
-
hash = {}
|
630
|
-
self.class.attribute_map.each_pair do |attr, param|
|
631
|
-
value = self.send(attr)
|
632
|
-
next if value.nil?
|
633
|
-
hash[param] = _to_hash(value)
|
634
|
-
end
|
635
|
-
hash
|
636
|
-
end
|
637
|
-
|
638
|
-
# Outputs non-array value in the form of hash
|
639
|
-
# For object, use to_hash. Otherwise, just return the value
|
640
|
-
# @param [Object] value Any valid value
|
641
|
-
# @return [Hash] Returns the value in the form of hash
|
642
|
-
def _to_hash(value)
|
643
|
-
if value.is_a?(Array)
|
644
|
-
value.compact.map { |v| _to_hash(v) }
|
645
|
-
elsif value.is_a?(Hash)
|
646
|
-
{}.tap do |hash|
|
647
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
648
|
-
end
|
649
|
-
elsif value.respond_to? :to_hash
|
650
|
-
value.to_hash
|
651
|
-
else
|
652
|
-
value
|
653
|
-
end
|
654
|
-
end
|
655
|
-
|
656
|
-
end
|
657
|
-
|
658
|
-
end
|