SlidePart

Overview

SlidePart is a class in Aspose.Slides for Python.

Manages an individual slide XML part (ppt/slides/slideN.xml).

Properties

NameTypeAccessDescription
part_namestrReadReturns the internal OPC part name (path) of the slide
namestrReadReturns the slide’s display name or title
hiddenboolReadIndicates whether the slide is marked as hidden
layout_rel_idOptional[str]ReadReturns the relationship ID linking the slide to its layout part, if any
layout_part_nameOptional[str]ReadReturns the part name of the layout associated with the slide, if set

Methods

SignatureDescription
__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)SlidePartCreate 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.