PresentationPackage class
Leave feedback
On this page
Represents a native metadata package in a presentation.
Learn more:
- Working with metadata in Presentations (https://docs.groupdocs.com/display/metadatanet/Working+with+metadata+in+Presentations)
The PresentationPackage type exposes the following members:
| Method | Description |
|---|---|
| set | Adds or replaces the metadata property with the specified name. |
| set | Adds or replaces the metadata property with the specified name. |
| set | Adds or replaces the metadata property with the specified name. |
| set | Adds or replaces the metadata property with the specified name. |
| set | Adds or replaces the metadata property with the specified name. |
| set_file | |
| set_string | |
| add_properties | Adds known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. (inherited from MetadataPackage) |
| add_properties_func | (inherited from MetadataPackage) |
| clear | Removes all writable metadata properties from the package. (inherited from DocumentPackage) |
| clear_built_in_properties | Removes all built-in metadata properties. (inherited from DocumentPackage) |
| clear_custom_properties | Removes all custom metadata properties. (inherited from DocumentPackage) |
| contains | Returns True if the package contains a metadata property with the specified name; otherwise, False. (inherited from MetadataPackage) |
| contains_file | (inherited from MetadataPackage) |
| contains_string | (inherited from MetadataPackage) |
| find_properties | Finds metadata properties that satisfy the specified predicate, searching recursively through all nested packages. (inherited from MetadataPackage) |
| find_properties_func | (inherited from MetadataPackage) |
| get | (inherited from MetadataPackage) |
| get_enumerator | Returns an enumerator that iterates through the collection. (inherited from MetadataPackage) |
| get_file | (inherited from MetadataPackage) |
| get_string | (inherited from MetadataPackage) |
| remove | Removes a writable metadata property by the specified name. (inherited from DocumentPackage) |
| remove_file | (inherited from DocumentPackage) |
| remove_properties | Removes metadata properties satisfying the specified predicate. (inherited from MetadataPackage) |
| remove_properties_func | (inherited from MetadataPackage) |
| remove_string | (inherited from DocumentPackage) |
| sanitize | Removes writable metadata properties from the package, recursively affecting all nested packages. (inherited from MetadataPackage) |
| set_properties | Sets known metadata properties satisfying the specified predicate. (inherited from MetadataPackage) |
| set_properties_func | (inherited from MetadataPackage) |
| update_properties | Updates known metadata properties that satisfy the specified predicate, recursively affecting all nested packages. (inherited from MetadataPackage) |
| update_properties_func | (inherited from MetadataPackage) |
| Property | Description |
|---|---|
| application_template | The application template. |
| author | The document’s author. |
| category | The category of the presentation package. |
| comments | The comments. |
| company | The company. |
| content_status | The content status. |
| content_type | The content type of the presentation package. |
| created_time | The document created date. |
| hyperlink_base | The hyperlink base. |
| keywords | The keywords. |
| last_printed_date | The last printed date. |
| last_saved_by | The name of the last author (the last saved by). |
| last_saved_time | The date and time when the presentation was last modified (the last saved time). |
| manager | The manager. |
| name_of_application | The name of the application that created the document. |
| presentation_format | The presentation format. |
| revision_number | The revision number. |
| shared_doc | The presentation is shared between multiple people. Can be updated in a PPTX document only. |
| subject | The subject. |
| title | The title of the document. |
| total_editing_time | The total editing time of the document. |
| version | The application version. |
| count | The number of metadata properties. (inherited from MetadataPackage) |
| keys | The collection of metadata property names. (inherited from MetadataPackage) |
| know_property_descriptors | The collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine. (inherited from MetadataPackage) |
| metadata_type | The metadata type of the package. (inherited from MetadataPackage) |
| property_descriptors | The collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine. (inherited from MetadataPackage) |
from datetime import datetime
from groupdocs.metadata import Metadata, PresentationRootPackage, Constants
with Metadata(Constants.InputPptx) as metadata:
root = metadata.get_root_package(PresentationRootPackage)
root.DocumentProperties.Author = "test author"
root.DocumentProperties.CreatedTime = datetime.now()
root.DocumentProperties.Company = "GroupDocs"
root.DocumentProperties.Category = "test category"
root.DocumentProperties.Keywords = "metadata, built-in, update"
metadata.save(Constants.OutputPptx)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.