save_format property
save_format property
Gets or sets a file format to save an assembled document to. FileFormat.UNSPECIFIED
is the default.
Remarks
When the value of this property is not specified, DocumentAssembler
behaves as follows:
-
When you specify a file path to save an assembled document, the save file format is determined upon file extension from the path.
-
When you specify a stream to save an assembled document, the save file format remains the same as the file format of a loaded template document.
Beware that it is not always possible to save an assembled document to any file format using GroupDocs.Assembly. For example, it is impossible to save a document loaded from a Word Processing file format (such as DOCX) to a Spreadsheet file format (such as XLSX). For more information on possible combinations of load and save file formats supported by GroupDocs.Assembly, please check GroupDocs.Assembly online documentation.
Definition:
@property
def save_format(self):
...
@save_format.setter
def save_format(self, value):
...
See Also
- module
groupdocs.assembly
- class
DocumentAssembler
- class
FileFormat
- class
LoadSaveOptions