PresentationPart

PresentationPart

Overview

PresentationPart is a enum in Aspose.Slides for Python.

Manages the ppt/presentation.xml part.

Values

ValueDescription
PART_NAMERepresents the path ‘ppt/presentation.xml’ inside the package

Properties

NameTypeAccessDescription
master_referenceslist[MasterReference]ReadHolds a list of MasterReference objects for the presentation
element_treeOptional[ET._Element]ReadProvides the XML element tree of the presentation.xml or None
slide_referenceslist[SlideReference]ReadContains a list of SlideReference objects representing slides
slide_countintReadReturns the total number of slide references in the presentation

Methods

SignatureDescription
__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])MasterReferenceAdd a new master slide reference to the presentation.
add_slide_reference(rel_id: str, slide_id: Optional[int], index: int)SlideReferenceAdd a new slide reference to the presentation.
remove_slide_reference(slide_id: int)boolRemove 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()intGet 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.