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
@@ -34,46 +34,64 @@ module GroupDocsConversionCloud
|
|
34
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
35
|
attr_accessor :format
|
36
36
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
37
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
38
|
+
attr_accessor :preserve_original_date
|
39
39
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
40
|
+
# The mapping between email message field and field text representation
|
41
|
+
attr_accessor :field_labels
|
42
42
|
|
43
|
-
#
|
44
|
-
attr_accessor :
|
43
|
+
# Gets or sets the Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the localtime and UTC.
|
44
|
+
attr_accessor :time_zone_offset
|
45
45
|
|
46
|
-
# Option to display or hide
|
47
|
-
attr_accessor :
|
46
|
+
# Option to display or hide sent date/time in the header. Default: true.
|
47
|
+
attr_accessor :display_sent
|
48
|
+
|
49
|
+
# Option to display or hide subject in the header. Default: true.
|
50
|
+
attr_accessor :display_subject
|
51
|
+
|
52
|
+
# Option to display or hide attachments in the header. Default: true.
|
53
|
+
attr_accessor :display_attachments
|
54
|
+
attr_accessor :display_email_addresses
|
48
55
|
|
49
56
|
# Option to display or hide \"Bcc\" email address. Default: false
|
50
57
|
attr_accessor :display_bcc_email_address
|
51
58
|
|
52
|
-
#
|
53
|
-
attr_accessor :
|
59
|
+
# Option to display or hide \"Cc\" email address. Default: false
|
60
|
+
attr_accessor :display_cc_email_address
|
54
61
|
|
55
|
-
# Option to
|
56
|
-
attr_accessor :
|
62
|
+
# Option to display or hide \"to\" email address. Default: true
|
63
|
+
attr_accessor :display_to_email_address
|
57
64
|
|
58
|
-
#
|
59
|
-
attr_accessor :
|
65
|
+
# Option to display or hide \"from\" email address. Default: true
|
66
|
+
attr_accessor :display_from_email_address
|
60
67
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
68
|
+
# Option to display or hide the email header. Default: true
|
69
|
+
attr_accessor :display_header
|
70
|
+
|
71
|
+
# Default font for Email document. The following font will be used if a font is missing.
|
72
|
+
attr_accessor :default_font
|
73
|
+
|
74
|
+
# List of font substitutes.
|
75
|
+
attr_accessor :font_substitutes
|
63
76
|
|
64
77
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
78
|
def self.attribute_map
|
66
79
|
{
|
67
80
|
:'format' => :'Format',
|
68
|
-
:'
|
69
|
-
:'display_from_email_address' => :'DisplayFromEmailAddress',
|
70
|
-
:'display_to_email_address' => :'DisplayToEmailAddress',
|
71
|
-
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
72
|
-
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
73
|
-
:'time_zone_offset' => :'TimeZoneOffset',
|
74
|
-
:'convert_attachments' => :'ConvertAttachments',
|
81
|
+
:'preserve_original_date' => :'PreserveOriginalDate',
|
75
82
|
:'field_labels' => :'FieldLabels',
|
76
|
-
:'
|
83
|
+
:'time_zone_offset' => :'TimeZoneOffset',
|
84
|
+
:'display_sent' => :'DisplaySent',
|
85
|
+
:'display_subject' => :'DisplaySubject',
|
86
|
+
:'display_attachments' => :'DisplayAttachments',
|
87
|
+
:'display_email_addresses' => :'DisplayEmailAddresses',
|
88
|
+
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
89
|
+
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
90
|
+
:'display_to_email_address' => :'DisplayToEmailAddress',
|
91
|
+
:'display_from_email_address' => :'DisplayFromEmailAddress',
|
92
|
+
:'display_header' => :'DisplayHeader',
|
93
|
+
:'default_font' => :'DefaultFont',
|
94
|
+
:'font_substitutes' => :'FontSubstitutes'
|
77
95
|
}
|
78
96
|
end
|
79
97
|
|
@@ -81,15 +99,20 @@ module GroupDocsConversionCloud
|
|
81
99
|
def self.swagger_types
|
82
100
|
{
|
83
101
|
:'format' => :'String',
|
84
|
-
:'
|
85
|
-
:'display_from_email_address' => :'BOOLEAN',
|
86
|
-
:'display_to_email_address' => :'BOOLEAN',
|
87
|
-
:'display_cc_email_address' => :'BOOLEAN',
|
88
|
-
:'display_bcc_email_address' => :'BOOLEAN',
|
89
|
-
:'time_zone_offset' => :'String',
|
90
|
-
:'convert_attachments' => :'BOOLEAN',
|
102
|
+
:'preserve_original_date' => :'BOOLEAN',
|
91
103
|
:'field_labels' => :'Array<FieldLabel>',
|
92
|
-
:'
|
104
|
+
:'time_zone_offset' => :'String',
|
105
|
+
:'display_sent' => :'BOOLEAN',
|
106
|
+
:'display_subject' => :'BOOLEAN',
|
107
|
+
:'display_attachments' => :'BOOLEAN',
|
108
|
+
:'display_email_addresses' => :'BOOLEAN',
|
109
|
+
:'display_bcc_email_address' => :'BOOLEAN',
|
110
|
+
:'display_cc_email_address' => :'BOOLEAN',
|
111
|
+
:'display_to_email_address' => :'BOOLEAN',
|
112
|
+
:'display_from_email_address' => :'BOOLEAN',
|
113
|
+
:'display_header' => :'BOOLEAN',
|
114
|
+
:'default_font' => :'String',
|
115
|
+
:'font_substitutes' => :'Hash<String, String>'
|
93
116
|
}
|
94
117
|
end
|
95
118
|
|
@@ -105,42 +128,64 @@ module GroupDocsConversionCloud
|
|
105
128
|
self.format = attributes[:'Format']
|
106
129
|
end
|
107
130
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
self.
|
131
|
+
if attributes.key?(:'PreserveOriginalDate')
|
132
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
110
133
|
end
|
111
134
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
|
135
|
+
if attributes.key?(:'FieldLabels')
|
136
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
137
|
+
self.field_labels = value
|
138
|
+
end
|
114
139
|
end
|
115
140
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
141
|
+
if attributes.key?(:'TimeZoneOffset')
|
142
|
+
self.time_zone_offset = attributes[:'TimeZoneOffset']
|
118
143
|
end
|
119
144
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
145
|
+
if attributes.key?(:'DisplaySent')
|
146
|
+
self.display_sent = attributes[:'DisplaySent']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.key?(:'DisplaySubject')
|
150
|
+
self.display_subject = attributes[:'DisplaySubject']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'DisplayAttachments')
|
154
|
+
self.display_attachments = attributes[:'DisplayAttachments']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'DisplayEmailAddresses')
|
158
|
+
self.display_email_addresses = attributes[:'DisplayEmailAddresses']
|
122
159
|
end
|
123
160
|
|
124
161
|
if attributes.key?(:'DisplayBccEmailAddress')
|
125
162
|
self.display_bcc_email_address = attributes[:'DisplayBccEmailAddress']
|
126
163
|
end
|
127
164
|
|
128
|
-
if attributes.key?(:'
|
129
|
-
self.
|
165
|
+
if attributes.key?(:'DisplayCcEmailAddress')
|
166
|
+
self.display_cc_email_address = attributes[:'DisplayCcEmailAddress']
|
130
167
|
end
|
131
168
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
169
|
+
if attributes.key?(:'DisplayToEmailAddress')
|
170
|
+
self.display_to_email_address = attributes[:'DisplayToEmailAddress']
|
134
171
|
end
|
135
172
|
|
136
|
-
if attributes.key?(:'
|
137
|
-
|
138
|
-
self.field_labels = value
|
139
|
-
end
|
173
|
+
if attributes.key?(:'DisplayFromEmailAddress')
|
174
|
+
self.display_from_email_address = attributes[:'DisplayFromEmailAddress']
|
140
175
|
end
|
141
176
|
|
142
|
-
if attributes.key?(:'
|
143
|
-
self.
|
177
|
+
if attributes.key?(:'DisplayHeader')
|
178
|
+
self.display_header = attributes[:'DisplayHeader']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'DefaultFont')
|
182
|
+
self.default_font = attributes[:'DefaultFont']
|
183
|
+
end
|
184
|
+
|
185
|
+
if attributes.key?(:'FontSubstitutes')
|
186
|
+
if (value = attributes[:'FontSubstitutes']).is_a?(Hash)
|
187
|
+
self.font_substitutes = value
|
188
|
+
end
|
144
189
|
end
|
145
190
|
|
146
191
|
end
|
@@ -149,32 +194,44 @@ module GroupDocsConversionCloud
|
|
149
194
|
# @return Array for valid properies with the reasons
|
150
195
|
def list_invalid_properties
|
151
196
|
invalid_properties = []
|
152
|
-
if @
|
153
|
-
invalid_properties.push("invalid value for '
|
197
|
+
if @preserve_original_date.nil?
|
198
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
154
199
|
end
|
155
200
|
|
156
|
-
if @
|
157
|
-
invalid_properties.push("invalid value for '
|
201
|
+
if @display_sent.nil?
|
202
|
+
invalid_properties.push("invalid value for 'display_sent', display_sent cannot be nil.")
|
158
203
|
end
|
159
204
|
|
160
|
-
if @
|
161
|
-
invalid_properties.push("invalid value for '
|
205
|
+
if @display_subject.nil?
|
206
|
+
invalid_properties.push("invalid value for 'display_subject', display_subject cannot be nil.")
|
162
207
|
end
|
163
208
|
|
164
|
-
if @
|
165
|
-
invalid_properties.push("invalid value for '
|
209
|
+
if @display_attachments.nil?
|
210
|
+
invalid_properties.push("invalid value for 'display_attachments', display_attachments cannot be nil.")
|
211
|
+
end
|
212
|
+
|
213
|
+
if @display_email_addresses.nil?
|
214
|
+
invalid_properties.push("invalid value for 'display_email_addresses', display_email_addresses cannot be nil.")
|
166
215
|
end
|
167
216
|
|
168
217
|
if @display_bcc_email_address.nil?
|
169
218
|
invalid_properties.push("invalid value for 'display_bcc_email_address', display_bcc_email_address cannot be nil.")
|
170
219
|
end
|
171
220
|
|
172
|
-
if @
|
173
|
-
invalid_properties.push("invalid value for '
|
221
|
+
if @display_cc_email_address.nil?
|
222
|
+
invalid_properties.push("invalid value for 'display_cc_email_address', display_cc_email_address cannot be nil.")
|
174
223
|
end
|
175
224
|
|
176
|
-
if @
|
177
|
-
invalid_properties.push("invalid value for '
|
225
|
+
if @display_to_email_address.nil?
|
226
|
+
invalid_properties.push("invalid value for 'display_to_email_address', display_to_email_address cannot be nil.")
|
227
|
+
end
|
228
|
+
|
229
|
+
if @display_from_email_address.nil?
|
230
|
+
invalid_properties.push("invalid value for 'display_from_email_address', display_from_email_address cannot be nil.")
|
231
|
+
end
|
232
|
+
|
233
|
+
if @display_header.nil?
|
234
|
+
invalid_properties.push("invalid value for 'display_header', display_header cannot be nil.")
|
178
235
|
end
|
179
236
|
|
180
237
|
return invalid_properties
|
@@ -183,13 +240,16 @@ module GroupDocsConversionCloud
|
|
183
240
|
# Check to see if the all the properties in the model are valid
|
184
241
|
# @return true if the model is valid
|
185
242
|
def valid?
|
186
|
-
return false if @display_header.nil?
|
187
|
-
return false if @display_from_email_address.nil?
|
188
|
-
return false if @display_to_email_address.nil?
|
189
|
-
return false if @display_cc_email_address.nil?
|
190
|
-
return false if @display_bcc_email_address.nil?
|
191
|
-
return false if @convert_attachments.nil?
|
192
243
|
return false if @preserve_original_date.nil?
|
244
|
+
return false if @display_sent.nil?
|
245
|
+
return false if @display_subject.nil?
|
246
|
+
return false if @display_attachments.nil?
|
247
|
+
return false if @display_email_addresses.nil?
|
248
|
+
return false if @display_bcc_email_address.nil?
|
249
|
+
return false if @display_cc_email_address.nil?
|
250
|
+
return false if @display_to_email_address.nil?
|
251
|
+
return false if @display_from_email_address.nil?
|
252
|
+
return false if @display_header.nil?
|
193
253
|
return true
|
194
254
|
end
|
195
255
|
|
@@ -199,15 +259,20 @@ module GroupDocsConversionCloud
|
|
199
259
|
return true if self.equal?(other)
|
200
260
|
self.class == other.class &&
|
201
261
|
format == other.format &&
|
202
|
-
|
203
|
-
display_from_email_address == other.display_from_email_address &&
|
204
|
-
display_to_email_address == other.display_to_email_address &&
|
205
|
-
display_cc_email_address == other.display_cc_email_address &&
|
206
|
-
display_bcc_email_address == other.display_bcc_email_address &&
|
207
|
-
time_zone_offset == other.time_zone_offset &&
|
208
|
-
convert_attachments == other.convert_attachments &&
|
262
|
+
preserve_original_date == other.preserve_original_date &&
|
209
263
|
field_labels == other.field_labels &&
|
210
|
-
|
264
|
+
time_zone_offset == other.time_zone_offset &&
|
265
|
+
display_sent == other.display_sent &&
|
266
|
+
display_subject == other.display_subject &&
|
267
|
+
display_attachments == other.display_attachments &&
|
268
|
+
display_email_addresses == other.display_email_addresses &&
|
269
|
+
display_bcc_email_address == other.display_bcc_email_address &&
|
270
|
+
display_cc_email_address == other.display_cc_email_address &&
|
271
|
+
display_to_email_address == other.display_to_email_address &&
|
272
|
+
display_from_email_address == other.display_from_email_address &&
|
273
|
+
display_header == other.display_header &&
|
274
|
+
default_font == other.default_font &&
|
275
|
+
font_substitutes == other.font_substitutes
|
211
276
|
end
|
212
277
|
|
213
278
|
# @see the `==` method
|
@@ -219,7 +284,7 @@ module GroupDocsConversionCloud
|
|
219
284
|
# Calculates hash code according to all attributes.
|
220
285
|
# @return [Fixnum] Hash code
|
221
286
|
def hash
|
222
|
-
[format,
|
287
|
+
[format, preserve_original_date, field_labels, time_zone_offset, display_sent, display_subject, display_attachments, display_email_addresses, display_bcc_email_address, display_cc_email_address, display_to_email_address, display_from_email_address, display_header, default_font, font_substitutes].hash
|
223
288
|
end
|
224
289
|
|
225
290
|
# Downcases first letter.
|
@@ -34,26 +34,50 @@ module GroupDocsConversionCloud
|
|
34
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
35
|
attr_accessor :format
|
36
36
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
37
|
+
# Clear built-in document properties
|
38
|
+
attr_accessor :clear_built_in_document_properties
|
39
39
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
40
|
+
# Clear custom document properties
|
41
|
+
attr_accessor :clear_custom_document_properties
|
42
42
|
|
43
|
-
#
|
44
|
-
attr_accessor :
|
43
|
+
# Enable or disable generation of page numbering in converted document. Default: false
|
44
|
+
attr_accessor :page_numbering
|
45
45
|
|
46
46
|
# Flatten all the fields of the PDF form
|
47
47
|
attr_accessor :flatten_all_fields
|
48
48
|
|
49
|
+
# Hide annotations in Pdf documents
|
50
|
+
attr_accessor :hide_pdf_annotations
|
51
|
+
|
52
|
+
# Default font for Pdf document. The following font will be used if a font is missing.
|
53
|
+
attr_accessor :default_font
|
54
|
+
|
55
|
+
# Set password to unprotect protected document
|
56
|
+
attr_accessor :password
|
57
|
+
|
58
|
+
# Remove javascript
|
59
|
+
attr_accessor :remove_javascript
|
60
|
+
|
61
|
+
# Remove embedded files
|
62
|
+
attr_accessor :remove_embedded_files
|
63
|
+
|
64
|
+
# Substitute specific fonts when converting Words document.
|
65
|
+
attr_accessor :font_substitutes
|
66
|
+
|
49
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
68
|
def self.attribute_map
|
51
69
|
{
|
52
70
|
:'format' => :'Format',
|
53
|
-
:'
|
54
|
-
:'
|
71
|
+
:'clear_built_in_document_properties' => :'ClearBuiltInDocumentProperties',
|
72
|
+
:'clear_custom_document_properties' => :'ClearCustomDocumentProperties',
|
73
|
+
:'page_numbering' => :'PageNumbering',
|
74
|
+
:'flatten_all_fields' => :'FlattenAllFields',
|
55
75
|
:'hide_pdf_annotations' => :'HidePdfAnnotations',
|
56
|
-
:'
|
76
|
+
:'default_font' => :'DefaultFont',
|
77
|
+
:'password' => :'Password',
|
78
|
+
:'remove_javascript' => :'RemoveJavascript',
|
79
|
+
:'remove_embedded_files' => :'RemoveEmbeddedFiles',
|
80
|
+
:'font_substitutes' => :'FontSubstitutes'
|
57
81
|
}
|
58
82
|
end
|
59
83
|
|
@@ -61,10 +85,16 @@ module GroupDocsConversionCloud
|
|
61
85
|
def self.swagger_types
|
62
86
|
{
|
63
87
|
:'format' => :'String',
|
64
|
-
:'
|
65
|
-
:'
|
88
|
+
:'clear_built_in_document_properties' => :'BOOLEAN',
|
89
|
+
:'clear_custom_document_properties' => :'BOOLEAN',
|
90
|
+
:'page_numbering' => :'BOOLEAN',
|
91
|
+
:'flatten_all_fields' => :'BOOLEAN',
|
66
92
|
:'hide_pdf_annotations' => :'BOOLEAN',
|
67
|
-
:'
|
93
|
+
:'default_font' => :'String',
|
94
|
+
:'password' => :'String',
|
95
|
+
:'remove_javascript' => :'BOOLEAN',
|
96
|
+
:'remove_embedded_files' => :'BOOLEAN',
|
97
|
+
:'font_substitutes' => :'Hash<String, String>'
|
68
98
|
}
|
69
99
|
end
|
70
100
|
|
@@ -80,49 +110,95 @@ module GroupDocsConversionCloud
|
|
80
110
|
self.format = attributes[:'Format']
|
81
111
|
end
|
82
112
|
|
83
|
-
if attributes.key?(:'
|
84
|
-
self.
|
113
|
+
if attributes.key?(:'ClearBuiltInDocumentProperties')
|
114
|
+
self.clear_built_in_document_properties = attributes[:'ClearBuiltInDocumentProperties']
|
85
115
|
end
|
86
116
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
117
|
+
if attributes.key?(:'ClearCustomDocumentProperties')
|
118
|
+
self.clear_custom_document_properties = attributes[:'ClearCustomDocumentProperties']
|
89
119
|
end
|
90
120
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
121
|
+
if attributes.key?(:'PageNumbering')
|
122
|
+
self.page_numbering = attributes[:'PageNumbering']
|
93
123
|
end
|
94
124
|
|
95
125
|
if attributes.key?(:'FlattenAllFields')
|
96
126
|
self.flatten_all_fields = attributes[:'FlattenAllFields']
|
97
127
|
end
|
98
128
|
|
129
|
+
if attributes.key?(:'HidePdfAnnotations')
|
130
|
+
self.hide_pdf_annotations = attributes[:'HidePdfAnnotations']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'DefaultFont')
|
134
|
+
self.default_font = attributes[:'DefaultFont']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'Password')
|
138
|
+
self.password = attributes[:'Password']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.key?(:'RemoveJavascript')
|
142
|
+
self.remove_javascript = attributes[:'RemoveJavascript']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.key?(:'RemoveEmbeddedFiles')
|
146
|
+
self.remove_embedded_files = attributes[:'RemoveEmbeddedFiles']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.key?(:'FontSubstitutes')
|
150
|
+
if (value = attributes[:'FontSubstitutes']).is_a?(Hash)
|
151
|
+
self.font_substitutes = value
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
99
155
|
end
|
100
156
|
|
101
157
|
# Show invalid properties with the reasons. Usually used together with valid?
|
102
158
|
# @return Array for valid properies with the reasons
|
103
159
|
def list_invalid_properties
|
104
160
|
invalid_properties = []
|
105
|
-
if @
|
106
|
-
invalid_properties.push("invalid value for '
|
161
|
+
if @clear_built_in_document_properties.nil?
|
162
|
+
invalid_properties.push("invalid value for 'clear_built_in_document_properties', clear_built_in_document_properties cannot be nil.")
|
107
163
|
end
|
108
164
|
|
109
|
-
if @
|
110
|
-
invalid_properties.push("invalid value for '
|
165
|
+
if @clear_custom_document_properties.nil?
|
166
|
+
invalid_properties.push("invalid value for 'clear_custom_document_properties', clear_custom_document_properties cannot be nil.")
|
167
|
+
end
|
168
|
+
|
169
|
+
if @page_numbering.nil?
|
170
|
+
invalid_properties.push("invalid value for 'page_numbering', page_numbering cannot be nil.")
|
111
171
|
end
|
112
172
|
|
113
173
|
if @flatten_all_fields.nil?
|
114
174
|
invalid_properties.push("invalid value for 'flatten_all_fields', flatten_all_fields cannot be nil.")
|
115
175
|
end
|
116
176
|
|
177
|
+
if @hide_pdf_annotations.nil?
|
178
|
+
invalid_properties.push("invalid value for 'hide_pdf_annotations', hide_pdf_annotations cannot be nil.")
|
179
|
+
end
|
180
|
+
|
181
|
+
if @remove_javascript.nil?
|
182
|
+
invalid_properties.push("invalid value for 'remove_javascript', remove_javascript cannot be nil.")
|
183
|
+
end
|
184
|
+
|
185
|
+
if @remove_embedded_files.nil?
|
186
|
+
invalid_properties.push("invalid value for 'remove_embedded_files', remove_embedded_files cannot be nil.")
|
187
|
+
end
|
188
|
+
|
117
189
|
return invalid_properties
|
118
190
|
end
|
119
191
|
|
120
192
|
# Check to see if the all the properties in the model are valid
|
121
193
|
# @return true if the model is valid
|
122
194
|
def valid?
|
123
|
-
return false if @
|
124
|
-
return false if @
|
195
|
+
return false if @clear_built_in_document_properties.nil?
|
196
|
+
return false if @clear_custom_document_properties.nil?
|
197
|
+
return false if @page_numbering.nil?
|
125
198
|
return false if @flatten_all_fields.nil?
|
199
|
+
return false if @hide_pdf_annotations.nil?
|
200
|
+
return false if @remove_javascript.nil?
|
201
|
+
return false if @remove_embedded_files.nil?
|
126
202
|
return true
|
127
203
|
end
|
128
204
|
|
@@ -132,10 +208,16 @@ module GroupDocsConversionCloud
|
|
132
208
|
return true if self.equal?(other)
|
133
209
|
self.class == other.class &&
|
134
210
|
format == other.format &&
|
135
|
-
|
136
|
-
|
211
|
+
clear_built_in_document_properties == other.clear_built_in_document_properties &&
|
212
|
+
clear_custom_document_properties == other.clear_custom_document_properties &&
|
213
|
+
page_numbering == other.page_numbering &&
|
214
|
+
flatten_all_fields == other.flatten_all_fields &&
|
137
215
|
hide_pdf_annotations == other.hide_pdf_annotations &&
|
138
|
-
|
216
|
+
default_font == other.default_font &&
|
217
|
+
password == other.password &&
|
218
|
+
remove_javascript == other.remove_javascript &&
|
219
|
+
remove_embedded_files == other.remove_embedded_files &&
|
220
|
+
font_substitutes == other.font_substitutes
|
139
221
|
end
|
140
222
|
|
141
223
|
# @see the `==` method
|
@@ -147,7 +229,7 @@ module GroupDocsConversionCloud
|
|
147
229
|
# Calculates hash code according to all attributes.
|
148
230
|
# @return [Fixnum] Hash code
|
149
231
|
def hash
|
150
|
-
[format,
|
232
|
+
[format, clear_built_in_document_properties, clear_custom_document_properties, page_numbering, flatten_all_fields, hide_pdf_annotations, default_font, password, remove_javascript, remove_embedded_files, font_substitutes].hash
|
151
233
|
end
|
152
234
|
|
153
235
|
# Downcases first letter.
|