Overview
PresentationPart is a enum in Aspose.Slides for Python.
Manages the ppt/presentation.xml part.
Values
| Value | Description |
|---|
PART_NAME | Represents the path ‘ppt/presentation.xml’ inside the package |
Properties
| Name | Type | Access | Description |
|---|
master_references | list[MasterReference] | Read | Holds a list of MasterReference objects for the presentation |
element_tree | Optional[ET._Element] | Read | Provides the XML element tree of the presentation.xml or None |
slide_references | list[SlideReference] | Read | Contains a list of SlideReference objects representing slides |
slide_count | int | Read | Returns the total number of slide references in the presentation |
Methods
| Signature | Description |
|---|
__init__(package: OpcPackage) | Initialize the presentation part manager. |
get_slide_ref_by_id(slide_id: int) → Optional[SlideReference] | Get a slide reference by its slide ID. |
get_slide_ref_by_rel_id(rel_id: str) → Optional[SlideReference] | Get a slide reference by its relationship ID. |
add_master_reference(rel_id: str, master_id: Optional[int]) → MasterReference | Add a new master slide reference to the presentation. |
add_slide_reference(rel_id: str, slide_id: Optional[int], index: int) → SlideReference | Add a new slide reference to the presentation. |
remove_slide_reference(slide_id: int) → bool | Remove a slide reference by its slide ID. |
get_slide_size() → tuple[int, int] | Get the slide size in EMUs (English Metric Units). |
get_notes_size() → tuple[int, int] | Get the notes slide size in EMUs. |
set_notes_size(cx: int, cy: int) | Set the notes slide size in EMUs. |
get_first_slide_number() → int | Get the first slide number for numbering. |
set_first_slide_number(number: int) | Set the first slide number for numbering. |
save() | Save the presentation.xml back to the package. |