Presentation
Overview
Presentation is a class in Aspose.Slides FOSS for Python.
Inherits from: StrictAttributes, IPresentation, IPresentationComponent.
Represents a Microsoft PowerPoint presentation.
This class declares 10 methods for Presentation objects in Python programs.
Available methods include: __enter__, __exit__, __init__, __setattr__, dispose, save.
Public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: as_i_presentation_component, comment_authors, current_date_time, document_properties, first_slide_number, images, and 7 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
current_date_time | Any | Read/Write | Returns or sets date and time which will substitute content of datetime fields. |
slides | ISlideCollection | Read | Returns a list of all slides that are defined in the presentation. |
notes_size | INotesSize | Read | Returns notes slide size object. |
layout_slides | IGlobalLayoutSlideCollection | Read | Returns a list of all layout slides that are defined in the presentation. |
masters | IMasterSlideCollection | Read | Returns a list of all master slides that are defined in the presentation. |
comment_authors | ICommentAuthorCollection | Read | Returns the collection of comment authors. |
document_properties | IDocumentProperties | Read | Returns DocumentProperties object which contains standard and custom document properties. |
images | IImageCollection | Read | Returns the collection of all images in the presentation. |
master_theme | IMasterTheme | Read | Returns master theme of the presentation. |
first_slide_number | int | Read/Write | Represents the first slide number in the presentation |
source_format | SourceFormat | Read | Returns information about from which format presentation was loaded. |
as_i_presentation_component | IPresentationComponent | Read | Gets the as i presentation component. |
presentation | IPresentation | Read | Gets the presentation. |
Methods
| Signature | Description |
|---|---|
__init__() | Initialize a Presentation. |
save() | Save the presentation to a file or stream. |
dispose() | Release all resources used by this Presentation object. |
__enter__() | Enter context manager. |
__exit__(exc_type, exc_val, exc_tb) | Exit context manager and dispose resources. |
__setattr__(name: str, value) | Calls setattr(name, value) on this Presentation instance. |
save(fname, format) | Saves the presentation to a file or stream |
save(fname, format, options) | Calls save(fname, format, options) on this Presentation instance. |
save(fname, slides, format, options) | Calls save(fname, slides, format, options) on this Presentation instance. |
save(options) | Calls save(options) on this Presentation instance. |