save method
save
Saves all slides of a presentation to a set of files representing XAML markup.
def save(self, options):
...
Parameter | Type | Description |
---|
options | IXamlOptions | The XAML format options. |
Saves all slides of a presentation to a file with the specified format.
def save(self, fname, format):
...
Parameter | Type | Description |
---|
fname | str | Path to the created file. |
format | SaveFormat | Format of the exported data. |
Saves all slides of a presentation to a stream in the specified format.
def save(self, stream, format):
...
Parameter | Type | Description |
---|
stream | io.RawIOBase | Output stream. |
format | SaveFormat | Format of the exported data. |
def save(self, fname, format, options):
...
Saves all slides of a presentation to a stream in the specified format and with additional options.
def save(self, stream, format, options):
...
Parameter | Type | Description |
---|
stream | io.RawIOBase | Output stream. |
format | SaveFormat | Format of the exported data. |
options | ISaveOptions | Additional format options. |
Exceptions
Exception | Description |
---|
RuntimeError(Proxy error(NotSupportedException)) | If you try to save encrypted file in none Office 2007-2010 format |
Saves specified slides of a presentation to a file with the specified format with page number keeping.
def save(self, fname, slides, format):
...
Parameter | Type | Description |
---|
fname | str | Path to the created file. |
slides | List[int] | Array with slide positions, starting from 1. |
format | SaveFormat | Format of the exported data. |
Exceptions
Exception | Description |
---|
RuntimeError(Proxy error(ArgumentNullException)) | When stream or slides parameter is None. |
RuntimeError(Proxy error(ArgumentOutOfRangeException)) | When slides parameter contains wrong page numbers. |
RuntimeError(Proxy error(InvalidOperationException)) | When an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP. |
Saves specified slides of a presentation to a stream in the specified format with page number keeping.
def save(self, stream, slides, format):
...
Parameter | Type | Description |
---|
stream | io.RawIOBase | Output stream. |
slides | List[int] | Array with slide positions, starting from 1. |
format | SaveFormat | Format of the exported data. |
Saves specified slides of a presentation to a file with the specified format with page number keeping.
def save(self, fname, slides, format, options):
...
Parameter | Type | Description |
---|
fname | str | Path to the created file. |
slides | List[int] | Array with slide positions, starting from 1. |
format | SaveFormat | Format of the exported data. |
options | ISaveOptions | Additional format options. |
Saves specified slides of a presentation to a stream in the specified format with page number keeping.
def save(self, stream, slides, format, options):
...
Parameter | Type | Description |
---|
stream | io.RawIOBase | Output stream. |
slides | List[int] | Array with slide positions, starting from 1. |
format | SaveFormat | Format of the exported data. |
options | ISaveOptions | Additional format options. |
Exceptions
Exception | Description |
---|
RuntimeError(Proxy error(ArgumentNullException)) | When stream or slides parameter is None. |
RuntimeError(Proxy error(ArgumentOutOfRangeException)) | When slides parameter contains wrong page numbers. |
RuntimeError(Proxy error(InvalidOperationException)) | When an unsupported SaveFormat is used, e.g. PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, ODP. |
See Also