groupdocs_conversion_cloud 25.6 → 25.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/cf2_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +230 -61
- data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/dwfx_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/dwt_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +142 -77
- data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +142 -77
- data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +142 -77
- data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +142 -77
- data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +142 -77
- data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +142 -77
- data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/pdf_load_options.rb +110 -28
- data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +25 -15
- data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +142 -77
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +25 -15
- 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/models/xls2003_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +233 -64
- data/lib/groupdocs_conversion_cloud/version.rb +1 -1
- metadata +2 -2
@@ -34,32 +34,68 @@ 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 custom document properties. Default is false.
|
38
|
+
attr_accessor :clear_custom_document_properties
|
39
39
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
40
|
+
# Clear built-in document properties. Default is false.
|
41
|
+
attr_accessor :clear_built_in_document_properties
|
42
42
|
|
43
|
-
#
|
44
|
-
attr_accessor :
|
43
|
+
# Split a worksheet into pages by rows. Default is 0, no pagination.
|
44
|
+
attr_accessor :rows_per_page
|
45
45
|
|
46
|
-
#
|
47
|
-
attr_accessor :
|
46
|
+
# Split a worksheet into pages by columns. Default is 0, no pagination.
|
47
|
+
attr_accessor :columns_per_page
|
48
48
|
|
49
|
-
#
|
50
|
-
attr_accessor :
|
49
|
+
# Autofits all rows when converting
|
50
|
+
attr_accessor :auto_fit_rows
|
51
51
|
|
52
|
-
#
|
53
|
-
attr_accessor :
|
52
|
+
# If AllColumnsInOnePagePerSheet is true, all column content of one sheet will output to only one page in result. The width of paper size of pagesetup will be invalid, and the other settings of pagesetup will still take effect.
|
53
|
+
attr_accessor :all_columns_in_one_page_per_sheet
|
54
54
|
|
55
|
-
#
|
56
|
-
attr_accessor :
|
55
|
+
# System culture info at the time file is loaded
|
56
|
+
attr_accessor :culture_info
|
57
|
+
|
58
|
+
# Whether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K, if this property is true, you will get an Exception. If this property is false, we will accept your input string value as the cell's value so that later you can output the complete string value for other file formats such as CSV. However, if you have set such kind of value that is invalid for excel file format, you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file.
|
59
|
+
attr_accessor :check_excel_restriction
|
57
60
|
|
58
61
|
# Set password to unprotect protected document
|
59
62
|
attr_accessor :password
|
60
63
|
|
64
|
+
# Skips empty rows and columns when converting. Default is True.
|
65
|
+
attr_accessor :skip_empty_rows_and_columns
|
66
|
+
|
67
|
+
# Convert specific range when converting to other than cells format. Example: \"D1:F8\"
|
68
|
+
attr_accessor :convert_range
|
69
|
+
|
70
|
+
# If True and converting to Pdf the conversion is optimized for better file size than print quality.
|
71
|
+
attr_accessor :optimize_pdf_size
|
72
|
+
|
73
|
+
# If OnePagePerSheet is true the content of the sheet will be converted to one page in the PDF document. Default value is true.
|
74
|
+
attr_accessor :one_page_per_sheet
|
75
|
+
|
76
|
+
# Show hidden sheets when converting Excel files
|
77
|
+
attr_accessor :show_hidden_sheets
|
78
|
+
|
79
|
+
# Show grid lines when converting Excel files
|
80
|
+
attr_accessor :show_grid_lines
|
81
|
+
|
82
|
+
# Substitute specific fonts when converting Cells document.
|
83
|
+
attr_accessor :font_substitutes
|
84
|
+
|
85
|
+
# Default font for Cells document. The following font will be used if a font is missing.
|
86
|
+
attr_accessor :default_font
|
87
|
+
|
88
|
+
# List of sheet indexes to convert. The indexes must be zero-based
|
89
|
+
attr_accessor :sheet_indexes
|
90
|
+
|
91
|
+
# List of sheet names to convert
|
92
|
+
attr_accessor :sheets
|
93
|
+
|
61
94
|
# Represents the way comments are printed with the sheet. Default is PrintNoComments.
|
62
95
|
attr_accessor :print_comments
|
96
|
+
|
97
|
+
# Reset font folders before loading document
|
98
|
+
attr_accessor :reset_font_folders
|
63
99
|
class EnumAttributeValidator
|
64
100
|
attr_reader :datatype
|
65
101
|
attr_reader :allowable_values
|
@@ -86,15 +122,27 @@ module GroupDocsConversionCloud
|
|
86
122
|
def self.attribute_map
|
87
123
|
{
|
88
124
|
:'format' => :'Format',
|
89
|
-
:'
|
90
|
-
:'
|
91
|
-
:'
|
92
|
-
:'
|
93
|
-
:'
|
94
|
-
:'
|
95
|
-
:'
|
125
|
+
:'clear_custom_document_properties' => :'ClearCustomDocumentProperties',
|
126
|
+
:'clear_built_in_document_properties' => :'ClearBuiltInDocumentProperties',
|
127
|
+
:'rows_per_page' => :'RowsPerPage',
|
128
|
+
:'columns_per_page' => :'ColumnsPerPage',
|
129
|
+
:'auto_fit_rows' => :'AutoFitRows',
|
130
|
+
:'all_columns_in_one_page_per_sheet' => :'AllColumnsInOnePagePerSheet',
|
131
|
+
:'culture_info' => :'CultureInfo',
|
132
|
+
:'check_excel_restriction' => :'CheckExcelRestriction',
|
96
133
|
:'password' => :'Password',
|
97
|
-
:'
|
134
|
+
:'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
|
135
|
+
:'convert_range' => :'ConvertRange',
|
136
|
+
:'optimize_pdf_size' => :'OptimizePdfSize',
|
137
|
+
:'one_page_per_sheet' => :'OnePagePerSheet',
|
138
|
+
:'show_hidden_sheets' => :'ShowHiddenSheets',
|
139
|
+
:'show_grid_lines' => :'ShowGridLines',
|
140
|
+
:'font_substitutes' => :'FontSubstitutes',
|
141
|
+
:'default_font' => :'DefaultFont',
|
142
|
+
:'sheet_indexes' => :'SheetIndexes',
|
143
|
+
:'sheets' => :'Sheets',
|
144
|
+
:'print_comments' => :'PrintComments',
|
145
|
+
:'reset_font_folders' => :'ResetFontFolders'
|
98
146
|
}
|
99
147
|
end
|
100
148
|
|
@@ -102,15 +150,27 @@ module GroupDocsConversionCloud
|
|
102
150
|
def self.swagger_types
|
103
151
|
{
|
104
152
|
:'format' => :'String',
|
105
|
-
:'
|
106
|
-
:'
|
107
|
-
:'
|
108
|
-
:'
|
109
|
-
:'
|
110
|
-
:'
|
111
|
-
:'
|
153
|
+
:'clear_custom_document_properties' => :'BOOLEAN',
|
154
|
+
:'clear_built_in_document_properties' => :'BOOLEAN',
|
155
|
+
:'rows_per_page' => :'Integer',
|
156
|
+
:'columns_per_page' => :'Integer',
|
157
|
+
:'auto_fit_rows' => :'BOOLEAN',
|
158
|
+
:'all_columns_in_one_page_per_sheet' => :'BOOLEAN',
|
159
|
+
:'culture_info' => :'String',
|
160
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
112
161
|
:'password' => :'String',
|
113
|
-
:'
|
162
|
+
:'skip_empty_rows_and_columns' => :'BOOLEAN',
|
163
|
+
:'convert_range' => :'String',
|
164
|
+
:'optimize_pdf_size' => :'BOOLEAN',
|
165
|
+
:'one_page_per_sheet' => :'BOOLEAN',
|
166
|
+
:'show_hidden_sheets' => :'BOOLEAN',
|
167
|
+
:'show_grid_lines' => :'BOOLEAN',
|
168
|
+
:'font_substitutes' => :'Hash<String, String>',
|
169
|
+
:'default_font' => :'String',
|
170
|
+
:'sheet_indexes' => :'Array<Integer>',
|
171
|
+
:'sheets' => :'Array<String>',
|
172
|
+
:'print_comments' => :'String',
|
173
|
+
:'reset_font_folders' => :'BOOLEAN'
|
114
174
|
}
|
115
175
|
end
|
116
176
|
|
@@ -126,83 +186,180 @@ module GroupDocsConversionCloud
|
|
126
186
|
self.format = attributes[:'Format']
|
127
187
|
end
|
128
188
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
189
|
+
if attributes.key?(:'ClearCustomDocumentProperties')
|
190
|
+
self.clear_custom_document_properties = attributes[:'ClearCustomDocumentProperties']
|
131
191
|
end
|
132
192
|
|
133
|
-
if attributes.key?(:'
|
134
|
-
|
135
|
-
self.font_substitutes = value
|
136
|
-
end
|
193
|
+
if attributes.key?(:'ClearBuiltInDocumentProperties')
|
194
|
+
self.clear_built_in_document_properties = attributes[:'ClearBuiltInDocumentProperties']
|
137
195
|
end
|
138
196
|
|
139
|
-
if attributes.key?(:'
|
140
|
-
self.
|
197
|
+
if attributes.key?(:'RowsPerPage')
|
198
|
+
self.rows_per_page = attributes[:'RowsPerPage']
|
141
199
|
end
|
142
200
|
|
143
|
-
if attributes.key?(:'
|
144
|
-
self.
|
201
|
+
if attributes.key?(:'ColumnsPerPage')
|
202
|
+
self.columns_per_page = attributes[:'ColumnsPerPage']
|
145
203
|
end
|
146
204
|
|
147
|
-
if attributes.key?(:'
|
148
|
-
self.
|
205
|
+
if attributes.key?(:'AutoFitRows')
|
206
|
+
self.auto_fit_rows = attributes[:'AutoFitRows']
|
149
207
|
end
|
150
208
|
|
151
|
-
if attributes.key?(:'
|
152
|
-
self.
|
209
|
+
if attributes.key?(:'AllColumnsInOnePagePerSheet')
|
210
|
+
self.all_columns_in_one_page_per_sheet = attributes[:'AllColumnsInOnePagePerSheet']
|
153
211
|
end
|
154
212
|
|
155
|
-
if attributes.key?(:'
|
156
|
-
self.
|
213
|
+
if attributes.key?(:'CultureInfo')
|
214
|
+
self.culture_info = attributes[:'CultureInfo']
|
215
|
+
end
|
216
|
+
|
217
|
+
if attributes.key?(:'CheckExcelRestriction')
|
218
|
+
self.check_excel_restriction = attributes[:'CheckExcelRestriction']
|
157
219
|
end
|
158
220
|
|
159
221
|
if attributes.key?(:'Password')
|
160
222
|
self.password = attributes[:'Password']
|
161
223
|
end
|
162
224
|
|
225
|
+
if attributes.key?(:'SkipEmptyRowsAndColumns')
|
226
|
+
self.skip_empty_rows_and_columns = attributes[:'SkipEmptyRowsAndColumns']
|
227
|
+
end
|
228
|
+
|
229
|
+
if attributes.key?(:'ConvertRange')
|
230
|
+
self.convert_range = attributes[:'ConvertRange']
|
231
|
+
end
|
232
|
+
|
233
|
+
if attributes.key?(:'OptimizePdfSize')
|
234
|
+
self.optimize_pdf_size = attributes[:'OptimizePdfSize']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.key?(:'OnePagePerSheet')
|
238
|
+
self.one_page_per_sheet = attributes[:'OnePagePerSheet']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.key?(:'ShowHiddenSheets')
|
242
|
+
self.show_hidden_sheets = attributes[:'ShowHiddenSheets']
|
243
|
+
end
|
244
|
+
|
245
|
+
if attributes.key?(:'ShowGridLines')
|
246
|
+
self.show_grid_lines = attributes[:'ShowGridLines']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.key?(:'FontSubstitutes')
|
250
|
+
if (value = attributes[:'FontSubstitutes']).is_a?(Hash)
|
251
|
+
self.font_substitutes = value
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
if attributes.key?(:'DefaultFont')
|
256
|
+
self.default_font = attributes[:'DefaultFont']
|
257
|
+
end
|
258
|
+
|
259
|
+
if attributes.key?(:'SheetIndexes')
|
260
|
+
if (value = attributes[:'SheetIndexes']).is_a?(Array)
|
261
|
+
self.sheet_indexes = value
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
if attributes.key?(:'Sheets')
|
266
|
+
if (value = attributes[:'Sheets']).is_a?(Array)
|
267
|
+
self.sheets = value
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
163
271
|
if attributes.key?(:'PrintComments')
|
164
272
|
self.print_comments = attributes[:'PrintComments']
|
165
273
|
end
|
166
274
|
|
275
|
+
if attributes.key?(:'ResetFontFolders')
|
276
|
+
self.reset_font_folders = attributes[:'ResetFontFolders']
|
277
|
+
end
|
278
|
+
|
167
279
|
end
|
168
280
|
|
169
281
|
# Show invalid properties with the reasons. Usually used together with valid?
|
170
282
|
# @return Array for valid properies with the reasons
|
171
283
|
def list_invalid_properties
|
172
284
|
invalid_properties = []
|
173
|
-
if @
|
174
|
-
invalid_properties.push("invalid value for '
|
285
|
+
if @clear_custom_document_properties.nil?
|
286
|
+
invalid_properties.push("invalid value for 'clear_custom_document_properties', clear_custom_document_properties cannot be nil.")
|
175
287
|
end
|
176
288
|
|
177
|
-
if @
|
178
|
-
invalid_properties.push("invalid value for '
|
289
|
+
if @clear_built_in_document_properties.nil?
|
290
|
+
invalid_properties.push("invalid value for 'clear_built_in_document_properties', clear_built_in_document_properties cannot be nil.")
|
179
291
|
end
|
180
292
|
|
181
|
-
if @
|
182
|
-
invalid_properties.push("invalid value for '
|
293
|
+
if @rows_per_page.nil?
|
294
|
+
invalid_properties.push("invalid value for 'rows_per_page', rows_per_page cannot be nil.")
|
295
|
+
end
|
296
|
+
|
297
|
+
if @columns_per_page.nil?
|
298
|
+
invalid_properties.push("invalid value for 'columns_per_page', columns_per_page cannot be nil.")
|
299
|
+
end
|
300
|
+
|
301
|
+
if @auto_fit_rows.nil?
|
302
|
+
invalid_properties.push("invalid value for 'auto_fit_rows', auto_fit_rows cannot be nil.")
|
303
|
+
end
|
304
|
+
|
305
|
+
if @all_columns_in_one_page_per_sheet.nil?
|
306
|
+
invalid_properties.push("invalid value for 'all_columns_in_one_page_per_sheet', all_columns_in_one_page_per_sheet cannot be nil.")
|
307
|
+
end
|
308
|
+
|
309
|
+
if @check_excel_restriction.nil?
|
310
|
+
invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.")
|
183
311
|
end
|
184
312
|
|
185
313
|
if @skip_empty_rows_and_columns.nil?
|
186
314
|
invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
|
187
315
|
end
|
188
316
|
|
317
|
+
if @optimize_pdf_size.nil?
|
318
|
+
invalid_properties.push("invalid value for 'optimize_pdf_size', optimize_pdf_size cannot be nil.")
|
319
|
+
end
|
320
|
+
|
321
|
+
if @one_page_per_sheet.nil?
|
322
|
+
invalid_properties.push("invalid value for 'one_page_per_sheet', one_page_per_sheet cannot be nil.")
|
323
|
+
end
|
324
|
+
|
325
|
+
if @show_hidden_sheets.nil?
|
326
|
+
invalid_properties.push("invalid value for 'show_hidden_sheets', show_hidden_sheets cannot be nil.")
|
327
|
+
end
|
328
|
+
|
329
|
+
if @show_grid_lines.nil?
|
330
|
+
invalid_properties.push("invalid value for 'show_grid_lines', show_grid_lines cannot be nil.")
|
331
|
+
end
|
332
|
+
|
189
333
|
if @print_comments.nil?
|
190
334
|
invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
|
191
335
|
end
|
192
336
|
|
337
|
+
if @reset_font_folders.nil?
|
338
|
+
invalid_properties.push("invalid value for 'reset_font_folders', reset_font_folders cannot be nil.")
|
339
|
+
end
|
340
|
+
|
193
341
|
return invalid_properties
|
194
342
|
end
|
195
343
|
|
196
344
|
# Check to see if the all the properties in the model are valid
|
197
345
|
# @return true if the model is valid
|
198
346
|
def valid?
|
199
|
-
return false if @
|
200
|
-
return false if @
|
201
|
-
return false if @
|
347
|
+
return false if @clear_custom_document_properties.nil?
|
348
|
+
return false if @clear_built_in_document_properties.nil?
|
349
|
+
return false if @rows_per_page.nil?
|
350
|
+
return false if @columns_per_page.nil?
|
351
|
+
return false if @auto_fit_rows.nil?
|
352
|
+
return false if @all_columns_in_one_page_per_sheet.nil?
|
353
|
+
return false if @check_excel_restriction.nil?
|
202
354
|
return false if @skip_empty_rows_and_columns.nil?
|
355
|
+
return false if @optimize_pdf_size.nil?
|
356
|
+
return false if @one_page_per_sheet.nil?
|
357
|
+
return false if @show_hidden_sheets.nil?
|
358
|
+
return false if @show_grid_lines.nil?
|
203
359
|
return false if @print_comments.nil?
|
204
360
|
print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
205
361
|
return false unless print_comments_validator.valid?(@print_comments)
|
362
|
+
return false if @reset_font_folders.nil?
|
206
363
|
return true
|
207
364
|
end
|
208
365
|
|
@@ -226,15 +383,27 @@ module GroupDocsConversionCloud
|
|
226
383
|
return true if self.equal?(other)
|
227
384
|
self.class == other.class &&
|
228
385
|
format == other.format &&
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
386
|
+
clear_custom_document_properties == other.clear_custom_document_properties &&
|
387
|
+
clear_built_in_document_properties == other.clear_built_in_document_properties &&
|
388
|
+
rows_per_page == other.rows_per_page &&
|
389
|
+
columns_per_page == other.columns_per_page &&
|
390
|
+
auto_fit_rows == other.auto_fit_rows &&
|
391
|
+
all_columns_in_one_page_per_sheet == other.all_columns_in_one_page_per_sheet &&
|
392
|
+
culture_info == other.culture_info &&
|
393
|
+
check_excel_restriction == other.check_excel_restriction &&
|
236
394
|
password == other.password &&
|
237
|
-
|
395
|
+
skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
|
396
|
+
convert_range == other.convert_range &&
|
397
|
+
optimize_pdf_size == other.optimize_pdf_size &&
|
398
|
+
one_page_per_sheet == other.one_page_per_sheet &&
|
399
|
+
show_hidden_sheets == other.show_hidden_sheets &&
|
400
|
+
show_grid_lines == other.show_grid_lines &&
|
401
|
+
font_substitutes == other.font_substitutes &&
|
402
|
+
default_font == other.default_font &&
|
403
|
+
sheet_indexes == other.sheet_indexes &&
|
404
|
+
sheets == other.sheets &&
|
405
|
+
print_comments == other.print_comments &&
|
406
|
+
reset_font_folders == other.reset_font_folders
|
238
407
|
end
|
239
408
|
|
240
409
|
# @see the `==` method
|
@@ -246,7 +415,7 @@ module GroupDocsConversionCloud
|
|
246
415
|
# Calculates hash code according to all attributes.
|
247
416
|
# @return [Fixnum] Hash code
|
248
417
|
def hash
|
249
|
-
[format,
|
418
|
+
[format, clear_custom_document_properties, clear_built_in_document_properties, rows_per_page, columns_per_page, auto_fit_rows, all_columns_in_one_page_per_sheet, culture_info, check_excel_restriction, password, skip_empty_rows_and_columns, convert_range, optimize_pdf_size, one_page_per_sheet, show_hidden_sheets, show_grid_lines, font_substitutes, default_font, sheet_indexes, sheets, print_comments, reset_font_folders].hash
|
250
419
|
end
|
251
420
|
|
252
421
|
# Downcases first letter.
|
@@ -37,14 +37,25 @@ module GroupDocsConversionCloud
|
|
37
37
|
# Enable or disable generation of page numbering in converted document. Default: false
|
38
38
|
attr_accessor :page_numbering
|
39
39
|
|
40
|
+
# The base path/url for the html
|
41
|
+
attr_accessor :base_path
|
42
|
+
|
40
43
|
# Get or sets the encoding to be used when loading the web document. If the property is null the encoding will be determined from document character set attribute
|
41
44
|
attr_accessor :encoding
|
42
45
|
|
46
|
+
# If true all external resource will not be loading
|
47
|
+
attr_accessor :skip_external_resources
|
48
|
+
|
43
49
|
# Use pdf for the conversion. Default: false
|
44
50
|
attr_accessor :use_pdf
|
45
51
|
|
46
52
|
# Controls how HTML content is rendered. Default: AbsolutePositioning
|
47
53
|
attr_accessor :rendering_mode
|
54
|
+
attr_accessor :zoom
|
55
|
+
|
56
|
+
# Specifies the page layout options when loading web documents
|
57
|
+
attr_accessor :page_layout
|
58
|
+
attr_accessor :custom_css_style
|
48
59
|
class EnumAttributeValidator
|
49
60
|
attr_reader :datatype
|
50
61
|
attr_reader :allowable_values
|
@@ -72,9 +83,14 @@ module GroupDocsConversionCloud
|
|
72
83
|
{
|
73
84
|
:'format' => :'Format',
|
74
85
|
:'page_numbering' => :'PageNumbering',
|
86
|
+
:'base_path' => :'BasePath',
|
75
87
|
:'encoding' => :'Encoding',
|
88
|
+
:'skip_external_resources' => :'SkipExternalResources',
|
76
89
|
:'use_pdf' => :'UsePdf',
|
77
|
-
:'rendering_mode' => :'RenderingMode'
|
90
|
+
:'rendering_mode' => :'RenderingMode',
|
91
|
+
:'zoom' => :'Zoom',
|
92
|
+
:'page_layout' => :'PageLayout',
|
93
|
+
:'custom_css_style' => :'CustomCssStyle'
|
78
94
|
}
|
79
95
|
end
|
80
96
|
|
@@ -83,9 +99,14 @@ module GroupDocsConversionCloud
|
|
83
99
|
{
|
84
100
|
:'format' => :'String',
|
85
101
|
:'page_numbering' => :'BOOLEAN',
|
102
|
+
:'base_path' => :'String',
|
86
103
|
:'encoding' => :'String',
|
104
|
+
:'skip_external_resources' => :'BOOLEAN',
|
87
105
|
:'use_pdf' => :'BOOLEAN',
|
88
|
-
:'rendering_mode' => :'String'
|
106
|
+
:'rendering_mode' => :'String',
|
107
|
+
:'zoom' => :'Integer',
|
108
|
+
:'page_layout' => :'String',
|
109
|
+
:'custom_css_style' => :'String'
|
89
110
|
}
|
90
111
|
end
|
91
112
|
|
@@ -105,10 +126,18 @@ module GroupDocsConversionCloud
|
|
105
126
|
self.page_numbering = attributes[:'PageNumbering']
|
106
127
|
end
|
107
128
|
|
129
|
+
if attributes.key?(:'BasePath')
|
130
|
+
self.base_path = attributes[:'BasePath']
|
131
|
+
end
|
132
|
+
|
108
133
|
if attributes.key?(:'Encoding')
|
109
134
|
self.encoding = attributes[:'Encoding']
|
110
135
|
end
|
111
136
|
|
137
|
+
if attributes.key?(:'SkipExternalResources')
|
138
|
+
self.skip_external_resources = attributes[:'SkipExternalResources']
|
139
|
+
end
|
140
|
+
|
112
141
|
if attributes.key?(:'UsePdf')
|
113
142
|
self.use_pdf = attributes[:'UsePdf']
|
114
143
|
end
|
@@ -117,6 +146,18 @@ module GroupDocsConversionCloud
|
|
117
146
|
self.rendering_mode = attributes[:'RenderingMode']
|
118
147
|
end
|
119
148
|
|
149
|
+
if attributes.key?(:'Zoom')
|
150
|
+
self.zoom = attributes[:'Zoom']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'PageLayout')
|
154
|
+
self.page_layout = attributes[:'PageLayout']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'CustomCssStyle')
|
158
|
+
self.custom_css_style = attributes[:'CustomCssStyle']
|
159
|
+
end
|
160
|
+
|
120
161
|
end
|
121
162
|
|
122
163
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -127,6 +168,10 @@ module GroupDocsConversionCloud
|
|
127
168
|
invalid_properties.push("invalid value for 'page_numbering', page_numbering cannot be nil.")
|
128
169
|
end
|
129
170
|
|
171
|
+
if @skip_external_resources.nil?
|
172
|
+
invalid_properties.push("invalid value for 'skip_external_resources', skip_external_resources cannot be nil.")
|
173
|
+
end
|
174
|
+
|
130
175
|
if @use_pdf.nil?
|
131
176
|
invalid_properties.push("invalid value for 'use_pdf', use_pdf cannot be nil.")
|
132
177
|
end
|
@@ -135,6 +180,14 @@ module GroupDocsConversionCloud
|
|
135
180
|
invalid_properties.push("invalid value for 'rendering_mode', rendering_mode cannot be nil.")
|
136
181
|
end
|
137
182
|
|
183
|
+
if @zoom.nil?
|
184
|
+
invalid_properties.push("invalid value for 'zoom', zoom cannot be nil.")
|
185
|
+
end
|
186
|
+
|
187
|
+
if @page_layout.nil?
|
188
|
+
invalid_properties.push("invalid value for 'page_layout', page_layout cannot be nil.")
|
189
|
+
end
|
190
|
+
|
138
191
|
return invalid_properties
|
139
192
|
end
|
140
193
|
|
@@ -142,10 +195,15 @@ module GroupDocsConversionCloud
|
|
142
195
|
# @return true if the model is valid
|
143
196
|
def valid?
|
144
197
|
return false if @page_numbering.nil?
|
198
|
+
return false if @skip_external_resources.nil?
|
145
199
|
return false if @use_pdf.nil?
|
146
200
|
return false if @rendering_mode.nil?
|
147
201
|
rendering_mode_validator = EnumAttributeValidator.new('String', ["Flow", "AbsolutePositioning"])
|
148
202
|
return false unless rendering_mode_validator.valid?(@rendering_mode)
|
203
|
+
return false if @zoom.nil?
|
204
|
+
return false if @page_layout.nil?
|
205
|
+
page_layout_validator = EnumAttributeValidator.new('String', ["None", "ScaleToPageWidth", "ScaleToPageHeight"])
|
206
|
+
return false unless page_layout_validator.valid?(@page_layout)
|
149
207
|
return true
|
150
208
|
end
|
151
209
|
|
@@ -163,6 +221,20 @@ module GroupDocsConversionCloud
|
|
163
221
|
end
|
164
222
|
end
|
165
223
|
|
224
|
+
# Custom attribute writer method checking allowed values (enum).
|
225
|
+
# @param [Object] page_layout Object to be assigned
|
226
|
+
def page_layout=(page_layout)
|
227
|
+
validator = EnumAttributeValidator.new('String', ["None", "ScaleToPageWidth", "ScaleToPageHeight"])
|
228
|
+
if page_layout.to_i == 0
|
229
|
+
unless validator.valid?(page_layout)
|
230
|
+
raise ArgumentError, "invalid value for 'page_layout', must be one of #{validator.allowable_values}."
|
231
|
+
end
|
232
|
+
@page_layout = page_layout
|
233
|
+
else
|
234
|
+
@page_layout = validator.allowable_values[page_layout.to_i]
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
166
238
|
# Checks equality by comparing each attribute.
|
167
239
|
# @param [Object] Object to be compared
|
168
240
|
def ==(other)
|
@@ -170,9 +242,14 @@ module GroupDocsConversionCloud
|
|
170
242
|
self.class == other.class &&
|
171
243
|
format == other.format &&
|
172
244
|
page_numbering == other.page_numbering &&
|
245
|
+
base_path == other.base_path &&
|
173
246
|
encoding == other.encoding &&
|
247
|
+
skip_external_resources == other.skip_external_resources &&
|
174
248
|
use_pdf == other.use_pdf &&
|
175
|
-
rendering_mode == other.rendering_mode
|
249
|
+
rendering_mode == other.rendering_mode &&
|
250
|
+
zoom == other.zoom &&
|
251
|
+
page_layout == other.page_layout &&
|
252
|
+
custom_css_style == other.custom_css_style
|
176
253
|
end
|
177
254
|
|
178
255
|
# @see the `==` method
|
@@ -184,7 +261,7 @@ module GroupDocsConversionCloud
|
|
184
261
|
# Calculates hash code according to all attributes.
|
185
262
|
# @return [Fixnum] Hash code
|
186
263
|
def hash
|
187
|
-
[format, page_numbering, encoding, use_pdf, rendering_mode].hash
|
264
|
+
[format, page_numbering, base_path, encoding, skip_external_resources, use_pdf, rendering_mode, zoom, page_layout, custom_css_style].hash
|
188
265
|
end
|
189
266
|
|
190
267
|
# Downcases first letter.
|