ContentTypesManager
Overview
ContentTypesManager is a enum in Aspose.Slides for Python.
Manages the [Content_Types].xml file in an OPC package.
Values
| Value | Description |
|---|---|
PART_NAME | Represents the name of the content types XML part ‘[Content_Types].xml’ |
Methods
| Signature | Description |
|---|---|
__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) → bool | Remove 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. |