ContentTypesManager
General
ContentTypesManager és un enum a Aspose.Slides per Python.
Gestiona el fitxer [Content_Types].xml en un paquet OPC.
Valors
| Value | Description |
|---|---|
PART_NAME | Represents the name of the content types XML part ‘[Content_Types].xml’ |
Mètodes
| 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. |