SlidePart
Overview
SlidePart is a class in Aspose.Slides for Python.
Manages an individual slide XML part (ppt/slides/slideN.xml).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
part_name | str | Read | Returns the internal OPC part name (path) of the slide |
name | str | Read | Returns the slide’s display name or title |
hidden | bool | Read | Indicates whether the slide is marked as hidden |
layout_rel_id | Optional[str] | Read | Returns the relationship ID linking the slide to its layout part, if any |
layout_part_name | Optional[str] | Read | Returns the part name of the layout associated with the slide, if set |
Methods
| Signature | Description |
|---|---|
__init__(package: OpcPackage, part_name: str) | Initialize a slide part from an existing part in the package. |
save() | Save the slide XML back to the package. |
create_empty(package: OpcPackage, part_name: str, layout_part_name: str) → SlidePart | Create a new empty slide in the package. |
delete(package: OpcPackage, part_name: str) | Delete a slide and its associated files from the package. |
clone_from(source_package: OpcPackage, source_part_name: str, dest_package: OpcPackage, dest_part_name: str, dest_layout_part_name: Optional[str]) → 'SlidePart' | Clone a slide from a source package to a destination package. |