groupdocs-conversion-cloud 25.5__py3-none-any.whl → 25.8__py3-none-any.whl
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.
- groupdocs_conversion_cloud/api_client.py +2 -2
- groupdocs_conversion_cloud/configuration.py +2 -2
- groupdocs_conversion_cloud/models/cad_load_options.py +63 -34
- groupdocs_conversion_cloud/models/email_load_options.py +294 -145
- groupdocs_conversion_cloud/models/pdf_load_options.py +238 -56
- groupdocs_conversion_cloud/models/presentation_load_options.py +6 -6
- groupdocs_conversion_cloud/models/spreadsheet_load_options.py +492 -126
- groupdocs_conversion_cloud/models/web_load_options.py +158 -3
- groupdocs_conversion_cloud/models/word_processing_load_options.py +662 -65
- groupdocs_conversion_cloud-25.8.dist-info/METADATA +132 -0
- {groupdocs_conversion_cloud-25.5.dist-info → groupdocs_conversion_cloud-25.8.dist-info}/RECORD +14 -14
- {groupdocs_conversion_cloud-25.5.dist-info → groupdocs_conversion_cloud-25.8.dist-info}/WHEEL +1 -1
- groupdocs_conversion_cloud-25.5.dist-info/METADATA +0 -94
- {groupdocs_conversion_cloud-25.5.dist-info → groupdocs_conversion_cloud-25.8.dist-info}/licenses/LICENSE +0 -0
- {groupdocs_conversion_cloud-25.5.dist-info → groupdocs_conversion_cloud-25.8.dist-info}/top_level.txt +0 -0
@@ -45,60 +45,120 @@ class SpreadsheetLoadOptions(LoadOptions):
|
|
45
45
|
and the value is json key in definition.
|
46
46
|
"""
|
47
47
|
swagger_types = {
|
48
|
-
'
|
49
|
-
'
|
50
|
-
'
|
51
|
-
'
|
52
|
-
'
|
53
|
-
'
|
54
|
-
'
|
48
|
+
'clear_custom_document_properties': 'bool',
|
49
|
+
'clear_built_in_document_properties': 'bool',
|
50
|
+
'rows_per_page': 'int',
|
51
|
+
'columns_per_page': 'int',
|
52
|
+
'auto_fit_rows': 'bool',
|
53
|
+
'all_columns_in_one_page_per_sheet': 'bool',
|
54
|
+
'culture_info': 'str',
|
55
|
+
'check_excel_restriction': 'bool',
|
55
56
|
'password': 'str',
|
56
|
-
'
|
57
|
+
'skip_empty_rows_and_columns': 'bool',
|
58
|
+
'convert_range': 'str',
|
59
|
+
'optimize_pdf_size': 'bool',
|
60
|
+
'one_page_per_sheet': 'bool',
|
61
|
+
'show_hidden_sheets': 'bool',
|
62
|
+
'show_grid_lines': 'bool',
|
63
|
+
'font_substitutes': 'dict(str, str)',
|
64
|
+
'default_font': 'str',
|
65
|
+
'sheet_indexes': 'list[int]',
|
66
|
+
'sheets': 'list[str]',
|
67
|
+
'print_comments': 'str',
|
68
|
+
'reset_font_folders': 'bool'
|
57
69
|
}
|
58
70
|
|
59
71
|
attribute_map = {
|
60
|
-
'
|
61
|
-
'
|
62
|
-
'
|
63
|
-
'
|
64
|
-
'
|
65
|
-
'
|
66
|
-
'
|
72
|
+
'clear_custom_document_properties': 'ClearCustomDocumentProperties',
|
73
|
+
'clear_built_in_document_properties': 'ClearBuiltInDocumentProperties',
|
74
|
+
'rows_per_page': 'RowsPerPage',
|
75
|
+
'columns_per_page': 'ColumnsPerPage',
|
76
|
+
'auto_fit_rows': 'AutoFitRows',
|
77
|
+
'all_columns_in_one_page_per_sheet': 'AllColumnsInOnePagePerSheet',
|
78
|
+
'culture_info': 'CultureInfo',
|
79
|
+
'check_excel_restriction': 'CheckExcelRestriction',
|
67
80
|
'password': 'Password',
|
68
|
-
'
|
81
|
+
'skip_empty_rows_and_columns': 'SkipEmptyRowsAndColumns',
|
82
|
+
'convert_range': 'ConvertRange',
|
83
|
+
'optimize_pdf_size': 'OptimizePdfSize',
|
84
|
+
'one_page_per_sheet': 'OnePagePerSheet',
|
85
|
+
'show_hidden_sheets': 'ShowHiddenSheets',
|
86
|
+
'show_grid_lines': 'ShowGridLines',
|
87
|
+
'font_substitutes': 'FontSubstitutes',
|
88
|
+
'default_font': 'DefaultFont',
|
89
|
+
'sheet_indexes': 'SheetIndexes',
|
90
|
+
'sheets': 'Sheets',
|
91
|
+
'print_comments': 'PrintComments',
|
92
|
+
'reset_font_folders': 'ResetFontFolders'
|
69
93
|
}
|
70
94
|
|
71
|
-
def __init__(self,
|
95
|
+
def __init__(self, clear_custom_document_properties=None, clear_built_in_document_properties=None, rows_per_page=None, columns_per_page=None, auto_fit_rows=None, all_columns_in_one_page_per_sheet=None, culture_info=None, check_excel_restriction=None, password=None, skip_empty_rows_and_columns=None, convert_range=None, optimize_pdf_size=None, one_page_per_sheet=None, show_hidden_sheets=None, show_grid_lines=None, font_substitutes=None, default_font=None, sheet_indexes=None, sheets=None, print_comments=None, reset_font_folders=None, **kwargs): # noqa: E501
|
72
96
|
"""Initializes new instance of SpreadsheetLoadOptions""" # noqa: E501
|
73
97
|
|
74
|
-
self.
|
75
|
-
self.
|
76
|
-
self.
|
77
|
-
self.
|
78
|
-
self.
|
79
|
-
self.
|
80
|
-
self.
|
98
|
+
self._clear_custom_document_properties = None
|
99
|
+
self._clear_built_in_document_properties = None
|
100
|
+
self._rows_per_page = None
|
101
|
+
self._columns_per_page = None
|
102
|
+
self._auto_fit_rows = None
|
103
|
+
self._all_columns_in_one_page_per_sheet = None
|
104
|
+
self._culture_info = None
|
105
|
+
self._check_excel_restriction = None
|
81
106
|
self._password = None
|
107
|
+
self._skip_empty_rows_and_columns = None
|
108
|
+
self._convert_range = None
|
109
|
+
self._optimize_pdf_size = None
|
110
|
+
self._one_page_per_sheet = None
|
111
|
+
self._show_hidden_sheets = None
|
112
|
+
self._show_grid_lines = None
|
113
|
+
self._font_substitutes = None
|
114
|
+
self._default_font = None
|
115
|
+
self._sheet_indexes = None
|
116
|
+
self._sheets = None
|
82
117
|
self._print_comments = None
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
118
|
+
self._reset_font_folders = None
|
119
|
+
|
120
|
+
if clear_custom_document_properties is not None:
|
121
|
+
self.clear_custom_document_properties = clear_custom_document_properties
|
122
|
+
if clear_built_in_document_properties is not None:
|
123
|
+
self.clear_built_in_document_properties = clear_built_in_document_properties
|
124
|
+
if rows_per_page is not None:
|
125
|
+
self.rows_per_page = rows_per_page
|
126
|
+
if columns_per_page is not None:
|
127
|
+
self.columns_per_page = columns_per_page
|
128
|
+
if auto_fit_rows is not None:
|
129
|
+
self.auto_fit_rows = auto_fit_rows
|
130
|
+
if all_columns_in_one_page_per_sheet is not None:
|
131
|
+
self.all_columns_in_one_page_per_sheet = all_columns_in_one_page_per_sheet
|
132
|
+
if culture_info is not None:
|
133
|
+
self.culture_info = culture_info
|
134
|
+
if check_excel_restriction is not None:
|
135
|
+
self.check_excel_restriction = check_excel_restriction
|
98
136
|
if password is not None:
|
99
137
|
self.password = password
|
138
|
+
if skip_empty_rows_and_columns is not None:
|
139
|
+
self.skip_empty_rows_and_columns = skip_empty_rows_and_columns
|
140
|
+
if convert_range is not None:
|
141
|
+
self.convert_range = convert_range
|
142
|
+
if optimize_pdf_size is not None:
|
143
|
+
self.optimize_pdf_size = optimize_pdf_size
|
144
|
+
if one_page_per_sheet is not None:
|
145
|
+
self.one_page_per_sheet = one_page_per_sheet
|
146
|
+
if show_hidden_sheets is not None:
|
147
|
+
self.show_hidden_sheets = show_hidden_sheets
|
148
|
+
if show_grid_lines is not None:
|
149
|
+
self.show_grid_lines = show_grid_lines
|
150
|
+
if font_substitutes is not None:
|
151
|
+
self.font_substitutes = font_substitutes
|
152
|
+
if default_font is not None:
|
153
|
+
self.default_font = default_font
|
154
|
+
if sheet_indexes is not None:
|
155
|
+
self.sheet_indexes = sheet_indexes
|
156
|
+
if sheets is not None:
|
157
|
+
self.sheets = sheets
|
100
158
|
if print_comments is not None:
|
101
159
|
self.print_comments = print_comments
|
160
|
+
if reset_font_folders is not None:
|
161
|
+
self.reset_font_folders = reset_font_folders
|
102
162
|
|
103
163
|
base = super(SpreadsheetLoadOptions, self)
|
104
164
|
base.__init__(**kwargs)
|
@@ -107,154 +167,234 @@ class SpreadsheetLoadOptions(LoadOptions):
|
|
107
167
|
self.attribute_map.update(base.attribute_map)
|
108
168
|
|
109
169
|
@property
|
110
|
-
def
|
170
|
+
def clear_custom_document_properties(self):
|
111
171
|
"""
|
112
|
-
Gets the
|
172
|
+
Gets the clear_custom_document_properties. # noqa: E501
|
113
173
|
|
114
|
-
|
174
|
+
Clear custom document properties. Default is false. # noqa: E501
|
115
175
|
|
116
|
-
:return: The
|
117
|
-
:rtype:
|
176
|
+
:return: The clear_custom_document_properties. # noqa: E501
|
177
|
+
:rtype: bool
|
118
178
|
"""
|
119
|
-
return self.
|
179
|
+
return self._clear_custom_document_properties
|
120
180
|
|
121
|
-
@
|
122
|
-
def
|
181
|
+
@clear_custom_document_properties.setter
|
182
|
+
def clear_custom_document_properties(self, clear_custom_document_properties):
|
123
183
|
"""
|
124
|
-
Sets the
|
184
|
+
Sets the clear_custom_document_properties.
|
125
185
|
|
126
|
-
|
186
|
+
Clear custom document properties. Default is false. # noqa: E501
|
127
187
|
|
128
|
-
:param
|
129
|
-
:type:
|
188
|
+
:param clear_custom_document_properties: The clear_custom_document_properties. # noqa: E501
|
189
|
+
:type: bool
|
130
190
|
"""
|
131
|
-
|
191
|
+
if clear_custom_document_properties is None:
|
192
|
+
raise ValueError("Invalid value for `clear_custom_document_properties`, must not be `None`") # noqa: E501
|
193
|
+
self._clear_custom_document_properties = clear_custom_document_properties
|
132
194
|
|
133
195
|
@property
|
134
|
-
def
|
196
|
+
def clear_built_in_document_properties(self):
|
135
197
|
"""
|
136
|
-
Gets the
|
198
|
+
Gets the clear_built_in_document_properties. # noqa: E501
|
137
199
|
|
138
|
-
|
200
|
+
Clear built-in document properties. Default is false. # noqa: E501
|
139
201
|
|
140
|
-
:return: The
|
141
|
-
:rtype:
|
202
|
+
:return: The clear_built_in_document_properties. # noqa: E501
|
203
|
+
:rtype: bool
|
142
204
|
"""
|
143
|
-
return self.
|
205
|
+
return self._clear_built_in_document_properties
|
144
206
|
|
145
|
-
@
|
146
|
-
def
|
207
|
+
@clear_built_in_document_properties.setter
|
208
|
+
def clear_built_in_document_properties(self, clear_built_in_document_properties):
|
147
209
|
"""
|
148
|
-
Sets the
|
210
|
+
Sets the clear_built_in_document_properties.
|
149
211
|
|
150
|
-
|
212
|
+
Clear built-in document properties. Default is false. # noqa: E501
|
151
213
|
|
152
|
-
:param
|
153
|
-
:type:
|
214
|
+
:param clear_built_in_document_properties: The clear_built_in_document_properties. # noqa: E501
|
215
|
+
:type: bool
|
154
216
|
"""
|
155
|
-
|
217
|
+
if clear_built_in_document_properties is None:
|
218
|
+
raise ValueError("Invalid value for `clear_built_in_document_properties`, must not be `None`") # noqa: E501
|
219
|
+
self._clear_built_in_document_properties = clear_built_in_document_properties
|
156
220
|
|
157
221
|
@property
|
158
|
-
def
|
222
|
+
def rows_per_page(self):
|
159
223
|
"""
|
160
|
-
Gets the
|
224
|
+
Gets the rows_per_page. # noqa: E501
|
161
225
|
|
162
|
-
|
226
|
+
Split a worksheet into pages by rows. Default is 0, no pagination. # noqa: E501
|
163
227
|
|
164
|
-
:return: The
|
228
|
+
:return: The rows_per_page. # noqa: E501
|
229
|
+
:rtype: int
|
230
|
+
"""
|
231
|
+
return self._rows_per_page
|
232
|
+
|
233
|
+
@rows_per_page.setter
|
234
|
+
def rows_per_page(self, rows_per_page):
|
235
|
+
"""
|
236
|
+
Sets the rows_per_page.
|
237
|
+
|
238
|
+
Split a worksheet into pages by rows. Default is 0, no pagination. # noqa: E501
|
239
|
+
|
240
|
+
:param rows_per_page: The rows_per_page. # noqa: E501
|
241
|
+
:type: int
|
242
|
+
"""
|
243
|
+
if rows_per_page is None:
|
244
|
+
raise ValueError("Invalid value for `rows_per_page`, must not be `None`") # noqa: E501
|
245
|
+
self._rows_per_page = rows_per_page
|
246
|
+
|
247
|
+
@property
|
248
|
+
def columns_per_page(self):
|
249
|
+
"""
|
250
|
+
Gets the columns_per_page. # noqa: E501
|
251
|
+
|
252
|
+
Split a worksheet into pages by columns. Default is 0, no pagination. # noqa: E501
|
253
|
+
|
254
|
+
:return: The columns_per_page. # noqa: E501
|
255
|
+
:rtype: int
|
256
|
+
"""
|
257
|
+
return self._columns_per_page
|
258
|
+
|
259
|
+
@columns_per_page.setter
|
260
|
+
def columns_per_page(self, columns_per_page):
|
261
|
+
"""
|
262
|
+
Sets the columns_per_page.
|
263
|
+
|
264
|
+
Split a worksheet into pages by columns. Default is 0, no pagination. # noqa: E501
|
265
|
+
|
266
|
+
:param columns_per_page: The columns_per_page. # noqa: E501
|
267
|
+
:type: int
|
268
|
+
"""
|
269
|
+
if columns_per_page is None:
|
270
|
+
raise ValueError("Invalid value for `columns_per_page`, must not be `None`") # noqa: E501
|
271
|
+
self._columns_per_page = columns_per_page
|
272
|
+
|
273
|
+
@property
|
274
|
+
def auto_fit_rows(self):
|
275
|
+
"""
|
276
|
+
Gets the auto_fit_rows. # noqa: E501
|
277
|
+
|
278
|
+
Autofits all rows when converting # noqa: E501
|
279
|
+
|
280
|
+
:return: The auto_fit_rows. # noqa: E501
|
165
281
|
:rtype: bool
|
166
282
|
"""
|
167
|
-
return self.
|
283
|
+
return self._auto_fit_rows
|
168
284
|
|
169
|
-
@
|
170
|
-
def
|
285
|
+
@auto_fit_rows.setter
|
286
|
+
def auto_fit_rows(self, auto_fit_rows):
|
171
287
|
"""
|
172
|
-
Sets the
|
288
|
+
Sets the auto_fit_rows.
|
173
289
|
|
174
|
-
|
290
|
+
Autofits all rows when converting # noqa: E501
|
175
291
|
|
176
|
-
:param
|
292
|
+
:param auto_fit_rows: The auto_fit_rows. # noqa: E501
|
177
293
|
:type: bool
|
178
294
|
"""
|
179
|
-
if
|
180
|
-
raise ValueError("Invalid value for `
|
181
|
-
self.
|
295
|
+
if auto_fit_rows is None:
|
296
|
+
raise ValueError("Invalid value for `auto_fit_rows`, must not be `None`") # noqa: E501
|
297
|
+
self._auto_fit_rows = auto_fit_rows
|
182
298
|
|
183
299
|
@property
|
184
|
-
def
|
300
|
+
def all_columns_in_one_page_per_sheet(self):
|
185
301
|
"""
|
186
|
-
Gets the
|
302
|
+
Gets the all_columns_in_one_page_per_sheet. # noqa: E501
|
187
303
|
|
188
|
-
|
304
|
+
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. # noqa: E501
|
189
305
|
|
190
|
-
:return: The
|
306
|
+
:return: The all_columns_in_one_page_per_sheet. # noqa: E501
|
191
307
|
:rtype: bool
|
192
308
|
"""
|
193
|
-
return self.
|
309
|
+
return self._all_columns_in_one_page_per_sheet
|
194
310
|
|
195
|
-
@
|
196
|
-
def
|
311
|
+
@all_columns_in_one_page_per_sheet.setter
|
312
|
+
def all_columns_in_one_page_per_sheet(self, all_columns_in_one_page_per_sheet):
|
197
313
|
"""
|
198
|
-
Sets the
|
314
|
+
Sets the all_columns_in_one_page_per_sheet.
|
199
315
|
|
200
|
-
|
316
|
+
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. # noqa: E501
|
201
317
|
|
202
|
-
:param
|
318
|
+
:param all_columns_in_one_page_per_sheet: The all_columns_in_one_page_per_sheet. # noqa: E501
|
203
319
|
:type: bool
|
204
320
|
"""
|
205
|
-
if
|
206
|
-
raise ValueError("Invalid value for `
|
207
|
-
self.
|
321
|
+
if all_columns_in_one_page_per_sheet is None:
|
322
|
+
raise ValueError("Invalid value for `all_columns_in_one_page_per_sheet`, must not be `None`") # noqa: E501
|
323
|
+
self._all_columns_in_one_page_per_sheet = all_columns_in_one_page_per_sheet
|
208
324
|
|
209
325
|
@property
|
210
|
-
def
|
326
|
+
def culture_info(self):
|
211
327
|
"""
|
212
|
-
Gets the
|
328
|
+
Gets the culture_info. # noqa: E501
|
213
329
|
|
214
|
-
|
330
|
+
System culture info at the time file is loaded # noqa: E501
|
215
331
|
|
216
|
-
:return: The
|
332
|
+
:return: The culture_info. # noqa: E501
|
333
|
+
:rtype: str
|
334
|
+
"""
|
335
|
+
return self._culture_info
|
336
|
+
|
337
|
+
@culture_info.setter
|
338
|
+
def culture_info(self, culture_info):
|
339
|
+
"""
|
340
|
+
Sets the culture_info.
|
341
|
+
|
342
|
+
System culture info at the time file is loaded # noqa: E501
|
343
|
+
|
344
|
+
:param culture_info: The culture_info. # noqa: E501
|
345
|
+
:type: str
|
346
|
+
"""
|
347
|
+
self._culture_info = culture_info
|
348
|
+
|
349
|
+
@property
|
350
|
+
def check_excel_restriction(self):
|
351
|
+
"""
|
352
|
+
Gets the check_excel_restriction. # noqa: E501
|
353
|
+
|
354
|
+
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. # noqa: E501
|
355
|
+
|
356
|
+
:return: The check_excel_restriction. # noqa: E501
|
217
357
|
:rtype: bool
|
218
358
|
"""
|
219
|
-
return self.
|
359
|
+
return self._check_excel_restriction
|
220
360
|
|
221
|
-
@
|
222
|
-
def
|
361
|
+
@check_excel_restriction.setter
|
362
|
+
def check_excel_restriction(self, check_excel_restriction):
|
223
363
|
"""
|
224
|
-
Sets the
|
364
|
+
Sets the check_excel_restriction.
|
225
365
|
|
226
|
-
|
366
|
+
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. # noqa: E501
|
227
367
|
|
228
|
-
:param
|
368
|
+
:param check_excel_restriction: The check_excel_restriction. # noqa: E501
|
229
369
|
:type: bool
|
230
370
|
"""
|
231
|
-
if
|
232
|
-
raise ValueError("Invalid value for `
|
233
|
-
self.
|
371
|
+
if check_excel_restriction is None:
|
372
|
+
raise ValueError("Invalid value for `check_excel_restriction`, must not be `None`") # noqa: E501
|
373
|
+
self._check_excel_restriction = check_excel_restriction
|
234
374
|
|
235
375
|
@property
|
236
|
-
def
|
376
|
+
def password(self):
|
237
377
|
"""
|
238
|
-
Gets the
|
378
|
+
Gets the password. # noqa: E501
|
239
379
|
|
240
|
-
|
380
|
+
Set password to unprotect protected document # noqa: E501
|
241
381
|
|
242
|
-
:return: The
|
382
|
+
:return: The password. # noqa: E501
|
243
383
|
:rtype: str
|
244
384
|
"""
|
245
|
-
return self.
|
385
|
+
return self._password
|
246
386
|
|
247
|
-
@
|
248
|
-
def
|
387
|
+
@password.setter
|
388
|
+
def password(self, password):
|
249
389
|
"""
|
250
|
-
Sets the
|
390
|
+
Sets the password.
|
251
391
|
|
252
|
-
|
392
|
+
Set password to unprotect protected document # noqa: E501
|
253
393
|
|
254
|
-
:param
|
394
|
+
:param password: The password. # noqa: E501
|
255
395
|
:type: str
|
256
396
|
"""
|
257
|
-
self.
|
397
|
+
self._password = password
|
258
398
|
|
259
399
|
@property
|
260
400
|
def skip_empty_rows_and_columns(self):
|
@@ -283,28 +423,228 @@ class SpreadsheetLoadOptions(LoadOptions):
|
|
283
423
|
self._skip_empty_rows_and_columns = skip_empty_rows_and_columns
|
284
424
|
|
285
425
|
@property
|
286
|
-
def
|
426
|
+
def convert_range(self):
|
287
427
|
"""
|
288
|
-
Gets the
|
428
|
+
Gets the convert_range. # noqa: E501
|
289
429
|
|
290
|
-
|
430
|
+
Convert specific range when converting to other than cells format. Example: \"D1:F8\" # noqa: E501
|
291
431
|
|
292
|
-
:return: The
|
432
|
+
:return: The convert_range. # noqa: E501
|
293
433
|
:rtype: str
|
294
434
|
"""
|
295
|
-
return self.
|
435
|
+
return self._convert_range
|
296
436
|
|
297
|
-
@
|
298
|
-
def
|
437
|
+
@convert_range.setter
|
438
|
+
def convert_range(self, convert_range):
|
299
439
|
"""
|
300
|
-
Sets the
|
440
|
+
Sets the convert_range.
|
301
441
|
|
302
|
-
|
442
|
+
Convert specific range when converting to other than cells format. Example: \"D1:F8\" # noqa: E501
|
303
443
|
|
304
|
-
:param
|
444
|
+
:param convert_range: The convert_range. # noqa: E501
|
305
445
|
:type: str
|
306
446
|
"""
|
307
|
-
self.
|
447
|
+
self._convert_range = convert_range
|
448
|
+
|
449
|
+
@property
|
450
|
+
def optimize_pdf_size(self):
|
451
|
+
"""
|
452
|
+
Gets the optimize_pdf_size. # noqa: E501
|
453
|
+
|
454
|
+
If True and converting to Pdf the conversion is optimized for better file size than print quality. # noqa: E501
|
455
|
+
|
456
|
+
:return: The optimize_pdf_size. # noqa: E501
|
457
|
+
:rtype: bool
|
458
|
+
"""
|
459
|
+
return self._optimize_pdf_size
|
460
|
+
|
461
|
+
@optimize_pdf_size.setter
|
462
|
+
def optimize_pdf_size(self, optimize_pdf_size):
|
463
|
+
"""
|
464
|
+
Sets the optimize_pdf_size.
|
465
|
+
|
466
|
+
If True and converting to Pdf the conversion is optimized for better file size than print quality. # noqa: E501
|
467
|
+
|
468
|
+
:param optimize_pdf_size: The optimize_pdf_size. # noqa: E501
|
469
|
+
:type: bool
|
470
|
+
"""
|
471
|
+
if optimize_pdf_size is None:
|
472
|
+
raise ValueError("Invalid value for `optimize_pdf_size`, must not be `None`") # noqa: E501
|
473
|
+
self._optimize_pdf_size = optimize_pdf_size
|
474
|
+
|
475
|
+
@property
|
476
|
+
def one_page_per_sheet(self):
|
477
|
+
"""
|
478
|
+
Gets the one_page_per_sheet. # noqa: E501
|
479
|
+
|
480
|
+
If OnePagePerSheet is true the content of the sheet will be converted to one page in the PDF document. Default value is true. # noqa: E501
|
481
|
+
|
482
|
+
:return: The one_page_per_sheet. # noqa: E501
|
483
|
+
:rtype: bool
|
484
|
+
"""
|
485
|
+
return self._one_page_per_sheet
|
486
|
+
|
487
|
+
@one_page_per_sheet.setter
|
488
|
+
def one_page_per_sheet(self, one_page_per_sheet):
|
489
|
+
"""
|
490
|
+
Sets the one_page_per_sheet.
|
491
|
+
|
492
|
+
If OnePagePerSheet is true the content of the sheet will be converted to one page in the PDF document. Default value is true. # noqa: E501
|
493
|
+
|
494
|
+
:param one_page_per_sheet: The one_page_per_sheet. # noqa: E501
|
495
|
+
:type: bool
|
496
|
+
"""
|
497
|
+
if one_page_per_sheet is None:
|
498
|
+
raise ValueError("Invalid value for `one_page_per_sheet`, must not be `None`") # noqa: E501
|
499
|
+
self._one_page_per_sheet = one_page_per_sheet
|
500
|
+
|
501
|
+
@property
|
502
|
+
def show_hidden_sheets(self):
|
503
|
+
"""
|
504
|
+
Gets the show_hidden_sheets. # noqa: E501
|
505
|
+
|
506
|
+
Show hidden sheets when converting Excel files # noqa: E501
|
507
|
+
|
508
|
+
:return: The show_hidden_sheets. # noqa: E501
|
509
|
+
:rtype: bool
|
510
|
+
"""
|
511
|
+
return self._show_hidden_sheets
|
512
|
+
|
513
|
+
@show_hidden_sheets.setter
|
514
|
+
def show_hidden_sheets(self, show_hidden_sheets):
|
515
|
+
"""
|
516
|
+
Sets the show_hidden_sheets.
|
517
|
+
|
518
|
+
Show hidden sheets when converting Excel files # noqa: E501
|
519
|
+
|
520
|
+
:param show_hidden_sheets: The show_hidden_sheets. # noqa: E501
|
521
|
+
:type: bool
|
522
|
+
"""
|
523
|
+
if show_hidden_sheets is None:
|
524
|
+
raise ValueError("Invalid value for `show_hidden_sheets`, must not be `None`") # noqa: E501
|
525
|
+
self._show_hidden_sheets = show_hidden_sheets
|
526
|
+
|
527
|
+
@property
|
528
|
+
def show_grid_lines(self):
|
529
|
+
"""
|
530
|
+
Gets the show_grid_lines. # noqa: E501
|
531
|
+
|
532
|
+
Show grid lines when converting Excel files # noqa: E501
|
533
|
+
|
534
|
+
:return: The show_grid_lines. # noqa: E501
|
535
|
+
:rtype: bool
|
536
|
+
"""
|
537
|
+
return self._show_grid_lines
|
538
|
+
|
539
|
+
@show_grid_lines.setter
|
540
|
+
def show_grid_lines(self, show_grid_lines):
|
541
|
+
"""
|
542
|
+
Sets the show_grid_lines.
|
543
|
+
|
544
|
+
Show grid lines when converting Excel files # noqa: E501
|
545
|
+
|
546
|
+
:param show_grid_lines: The show_grid_lines. # noqa: E501
|
547
|
+
:type: bool
|
548
|
+
"""
|
549
|
+
if show_grid_lines is None:
|
550
|
+
raise ValueError("Invalid value for `show_grid_lines`, must not be `None`") # noqa: E501
|
551
|
+
self._show_grid_lines = show_grid_lines
|
552
|
+
|
553
|
+
@property
|
554
|
+
def font_substitutes(self):
|
555
|
+
"""
|
556
|
+
Gets the font_substitutes. # noqa: E501
|
557
|
+
|
558
|
+
Substitute specific fonts when converting Cells document. # noqa: E501
|
559
|
+
|
560
|
+
:return: The font_substitutes. # noqa: E501
|
561
|
+
:rtype: dict(str, str)
|
562
|
+
"""
|
563
|
+
return self._font_substitutes
|
564
|
+
|
565
|
+
@font_substitutes.setter
|
566
|
+
def font_substitutes(self, font_substitutes):
|
567
|
+
"""
|
568
|
+
Sets the font_substitutes.
|
569
|
+
|
570
|
+
Substitute specific fonts when converting Cells document. # noqa: E501
|
571
|
+
|
572
|
+
:param font_substitutes: The font_substitutes. # noqa: E501
|
573
|
+
:type: dict(str, str)
|
574
|
+
"""
|
575
|
+
self._font_substitutes = font_substitutes
|
576
|
+
|
577
|
+
@property
|
578
|
+
def default_font(self):
|
579
|
+
"""
|
580
|
+
Gets the default_font. # noqa: E501
|
581
|
+
|
582
|
+
Default font for Cells document. The following font will be used if a font is missing. # noqa: E501
|
583
|
+
|
584
|
+
:return: The default_font. # noqa: E501
|
585
|
+
:rtype: str
|
586
|
+
"""
|
587
|
+
return self._default_font
|
588
|
+
|
589
|
+
@default_font.setter
|
590
|
+
def default_font(self, default_font):
|
591
|
+
"""
|
592
|
+
Sets the default_font.
|
593
|
+
|
594
|
+
Default font for Cells document. The following font will be used if a font is missing. # noqa: E501
|
595
|
+
|
596
|
+
:param default_font: The default_font. # noqa: E501
|
597
|
+
:type: str
|
598
|
+
"""
|
599
|
+
self._default_font = default_font
|
600
|
+
|
601
|
+
@property
|
602
|
+
def sheet_indexes(self):
|
603
|
+
"""
|
604
|
+
Gets the sheet_indexes. # noqa: E501
|
605
|
+
|
606
|
+
List of sheet indexes to convert. The indexes must be zero-based # noqa: E501
|
607
|
+
|
608
|
+
:return: The sheet_indexes. # noqa: E501
|
609
|
+
:rtype: list[int]
|
610
|
+
"""
|
611
|
+
return self._sheet_indexes
|
612
|
+
|
613
|
+
@sheet_indexes.setter
|
614
|
+
def sheet_indexes(self, sheet_indexes):
|
615
|
+
"""
|
616
|
+
Sets the sheet_indexes.
|
617
|
+
|
618
|
+
List of sheet indexes to convert. The indexes must be zero-based # noqa: E501
|
619
|
+
|
620
|
+
:param sheet_indexes: The sheet_indexes. # noqa: E501
|
621
|
+
:type: list[int]
|
622
|
+
"""
|
623
|
+
self._sheet_indexes = sheet_indexes
|
624
|
+
|
625
|
+
@property
|
626
|
+
def sheets(self):
|
627
|
+
"""
|
628
|
+
Gets the sheets. # noqa: E501
|
629
|
+
|
630
|
+
List of sheet names to convert # noqa: E501
|
631
|
+
|
632
|
+
:return: The sheets. # noqa: E501
|
633
|
+
:rtype: list[str]
|
634
|
+
"""
|
635
|
+
return self._sheets
|
636
|
+
|
637
|
+
@sheets.setter
|
638
|
+
def sheets(self, sheets):
|
639
|
+
"""
|
640
|
+
Sets the sheets.
|
641
|
+
|
642
|
+
List of sheet names to convert # noqa: E501
|
643
|
+
|
644
|
+
:param sheets: The sheets. # noqa: E501
|
645
|
+
:type: list[str]
|
646
|
+
"""
|
647
|
+
self._sheets = sheets
|
308
648
|
|
309
649
|
@property
|
310
650
|
def print_comments(self):
|
@@ -339,6 +679,32 @@ class SpreadsheetLoadOptions(LoadOptions):
|
|
339
679
|
self._print_comments = print_comments
|
340
680
|
else:
|
341
681
|
self._print_comments = allowed_values[int(print_comments) if six.PY3 else long(print_comments)]
|
682
|
+
|
683
|
+
@property
|
684
|
+
def reset_font_folders(self):
|
685
|
+
"""
|
686
|
+
Gets the reset_font_folders. # noqa: E501
|
687
|
+
|
688
|
+
Reset font folders before loading document # noqa: E501
|
689
|
+
|
690
|
+
:return: The reset_font_folders. # noqa: E501
|
691
|
+
:rtype: bool
|
692
|
+
"""
|
693
|
+
return self._reset_font_folders
|
694
|
+
|
695
|
+
@reset_font_folders.setter
|
696
|
+
def reset_font_folders(self, reset_font_folders):
|
697
|
+
"""
|
698
|
+
Sets the reset_font_folders.
|
699
|
+
|
700
|
+
Reset font folders before loading document # noqa: E501
|
701
|
+
|
702
|
+
:param reset_font_folders: The reset_font_folders. # noqa: E501
|
703
|
+
:type: bool
|
704
|
+
"""
|
705
|
+
if reset_font_folders is None:
|
706
|
+
raise ValueError("Invalid value for `reset_font_folders`, must not be `None`") # noqa: E501
|
707
|
+
self._reset_font_folders = reset_font_folders
|
342
708
|
|
343
709
|
def to_dict(self):
|
344
710
|
"""Returns the model properties as a dict"""
|