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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +25 -15
  3. data/lib/groupdocs_conversion_cloud/models/cf2_load_options.rb +25 -15
  4. data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +230 -61
  5. data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +25 -15
  6. data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +25 -15
  7. data/lib/groupdocs_conversion_cloud/models/dwfx_load_options.rb +25 -15
  8. data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +25 -15
  9. data/lib/groupdocs_conversion_cloud/models/dwt_load_options.rb +25 -15
  10. data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +25 -15
  11. data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +142 -77
  12. data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +142 -77
  13. data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +142 -77
  14. data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +25 -15
  15. data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +25 -15
  16. data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +142 -77
  17. data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +142 -77
  18. data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +233 -64
  19. data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +142 -77
  20. data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +233 -64
  21. data/lib/groupdocs_conversion_cloud/models/pdf_load_options.rb +110 -28
  22. data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +25 -15
  23. data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +142 -77
  24. data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +233 -64
  25. data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +25 -15
  26. data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +233 -64
  27. data/lib/groupdocs_conversion_cloud/models/web_load_options.rb +81 -4
  28. data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +233 -64
  29. data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +233 -64
  30. data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +233 -64
  31. data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +233 -64
  32. data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +233 -64
  33. data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +233 -64
  34. data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +233 -64
  35. data/lib/groupdocs_conversion_cloud/version.rb +1 -1
  36. 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
- # Default font for Cells document. The following font will be used if a font is missing.
38
- attr_accessor :default_font
37
+ # Clear custom document properties. Default is false.
38
+ attr_accessor :clear_custom_document_properties
39
39
 
40
- # Substitute specific fonts when converting Cells document.
41
- attr_accessor :font_substitutes
40
+ # Clear built-in document properties. Default is false.
41
+ attr_accessor :clear_built_in_document_properties
42
42
 
43
- # Show grid lines when converting Excel files
44
- attr_accessor :show_grid_lines
43
+ # Split a worksheet into pages by rows. Default is 0, no pagination.
44
+ attr_accessor :rows_per_page
45
45
 
46
- # Show hidden sheets when converting Excel files
47
- attr_accessor :show_hidden_sheets
46
+ # Split a worksheet into pages by columns. Default is 0, no pagination.
47
+ attr_accessor :columns_per_page
48
48
 
49
- # If OnePagePerSheet is true the content of the sheet will be converted to one page in the PDF document. Default value is true.
50
- attr_accessor :one_page_per_sheet
49
+ # Autofits all rows when converting
50
+ attr_accessor :auto_fit_rows
51
51
 
52
- # Convert specific range when converting to other than cells format. Example: \"D1:F8\"
53
- attr_accessor :convert_range
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
- # Skips empty rows and columns when converting. Default is True.
56
- attr_accessor :skip_empty_rows_and_columns
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
- :'default_font' => :'DefaultFont',
90
- :'font_substitutes' => :'FontSubstitutes',
91
- :'show_grid_lines' => :'ShowGridLines',
92
- :'show_hidden_sheets' => :'ShowHiddenSheets',
93
- :'one_page_per_sheet' => :'OnePagePerSheet',
94
- :'convert_range' => :'ConvertRange',
95
- :'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
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
- :'print_comments' => :'PrintComments'
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
- :'default_font' => :'String',
106
- :'font_substitutes' => :'Hash<String, String>',
107
- :'show_grid_lines' => :'BOOLEAN',
108
- :'show_hidden_sheets' => :'BOOLEAN',
109
- :'one_page_per_sheet' => :'BOOLEAN',
110
- :'convert_range' => :'String',
111
- :'skip_empty_rows_and_columns' => :'BOOLEAN',
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
- :'print_comments' => :'String'
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?(:'DefaultFont')
130
- self.default_font = attributes[:'DefaultFont']
189
+ if attributes.key?(:'ClearCustomDocumentProperties')
190
+ self.clear_custom_document_properties = attributes[:'ClearCustomDocumentProperties']
131
191
  end
132
192
 
133
- if attributes.key?(:'FontSubstitutes')
134
- if (value = attributes[:'FontSubstitutes']).is_a?(Hash)
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?(:'ShowGridLines')
140
- self.show_grid_lines = attributes[:'ShowGridLines']
197
+ if attributes.key?(:'RowsPerPage')
198
+ self.rows_per_page = attributes[:'RowsPerPage']
141
199
  end
142
200
 
143
- if attributes.key?(:'ShowHiddenSheets')
144
- self.show_hidden_sheets = attributes[:'ShowHiddenSheets']
201
+ if attributes.key?(:'ColumnsPerPage')
202
+ self.columns_per_page = attributes[:'ColumnsPerPage']
145
203
  end
146
204
 
147
- if attributes.key?(:'OnePagePerSheet')
148
- self.one_page_per_sheet = attributes[:'OnePagePerSheet']
205
+ if attributes.key?(:'AutoFitRows')
206
+ self.auto_fit_rows = attributes[:'AutoFitRows']
149
207
  end
150
208
 
151
- if attributes.key?(:'ConvertRange')
152
- self.convert_range = attributes[:'ConvertRange']
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?(:'SkipEmptyRowsAndColumns')
156
- self.skip_empty_rows_and_columns = attributes[:'SkipEmptyRowsAndColumns']
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 @show_grid_lines.nil?
174
- invalid_properties.push("invalid value for 'show_grid_lines', show_grid_lines cannot be nil.")
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 @show_hidden_sheets.nil?
178
- invalid_properties.push("invalid value for 'show_hidden_sheets', show_hidden_sheets cannot be nil.")
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 @one_page_per_sheet.nil?
182
- invalid_properties.push("invalid value for 'one_page_per_sheet', one_page_per_sheet cannot be nil.")
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 @show_grid_lines.nil?
200
- return false if @show_hidden_sheets.nil?
201
- return false if @one_page_per_sheet.nil?
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
- default_font == other.default_font &&
230
- font_substitutes == other.font_substitutes &&
231
- show_grid_lines == other.show_grid_lines &&
232
- show_hidden_sheets == other.show_hidden_sheets &&
233
- one_page_per_sheet == other.one_page_per_sheet &&
234
- convert_range == other.convert_range &&
235
- skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
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
- print_comments == other.print_comments
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, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
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.