ContentTypesManager

ContentTypesManager

Overview

ContentTypesManager is a enum in Aspose.Slides for Python.

Manages the [Content_Types].xml file in an OPC package.

Values

ValueDescription
PART_NAMERepresents the name of the content types XML part ‘[Content_Types].xml’

Methods

SignatureDescription
__init__(package: OpcPackage)Initialize the content types manager.
add_override(part_name: str, content_type: str)Add a content type override for a specific part.
remove_override(part_name: str)boolRemove a content type override for a specific part.
get_content_type(part_name: str)Optional[str]Get the content type for a specific part.
save()Save the content types back to the package.