Presentation constructor
Contents
[
Hide
]init
This constructor creates new presentation from scratch. Created presentation has one empty slide.
def __init__(self):
...
init
This constructor creates new presentation from scratch. Created presentation has one empty slide.
def __init__(self, load_options):
...
| Parameter | Type | Description |
|---|---|---|
| load_options | LoadOptions | Additional load options. |
init
This constructor is the primary mechanism for reading an existing Presentation.
def __init__(self, stream):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase | Input stream. |
init
This constructor gets a source file path from which the contents of the Presentation are read.
def __init__(self, file):
...
| Parameter | Type | Description |
|---|---|---|
| file | str | Input file. |
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentException)) | Thrown when input file has zero length |
init
This constructor is the primary mechanism for reading an existing Presentation.
def __init__(self, stream, load_options):
...
| Parameter | Type | Description |
|---|---|---|
| stream | io.RawIOBase | Input stream. |
| load_options | LoadOptions | Additional load options. |
init
This constructor gets a source file path from which the contents of the Presentation are read.
def __init__(self, file, load_options):
...
| Parameter | Type | Description |
|---|---|---|
| file | str | Input file. |
| load_options | LoadOptions | Additional load options. |
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentException)) | Thrown when input file has zero length |
See Also
- class
LoadOptions - class
Presentation - module
aspose.slides - library
Aspose.Slides