save_format property
XlsxSaveOptions.save_format property
Specifies the format in which the document will be saved if this save options object is used. Can only be SaveFormat.XLSX.
@property
def save_format(self) -> aspose.words.SaveFormat:
...
@save_format.setter
def save_format(self, value: aspose.words.SaveFormat):
...
Examples
Shows how to compress XLSX document.
doc = aw.Document(file_name=MY_DIR + 'Shape with linked chart.docx')
xlsx_save_options = aw.saving.XlsxSaveOptions()
xlsx_save_options.compression_level = aw.saving.CompressionLevel.MAXIMUM
xlsx_save_options.save_format = aw.SaveFormat.XLSX
doc.save(file_name=ARTIFACTS_DIR + 'XlsxSaveOptions.CompressXlsx.xlsx', save_options=xlsx_save_options)
See Also
- module aspose.words.saving
- class XlsxSaveOptions