View and Edit PPT Metadata with Python
Build Python applications that read and modify built-in and custom presentation properties with Aspose.Slides.
View and Modify PPT Metadata with Python
Aspose.Slides for Python via .NET
lets you read and update built-in metadata and add, update, or remove custom document properties in PPT presentations. Access an
IDocumentProperties
object through Presentation.document_properties, modify it, and save the presentation in PPT format.
Update Built-in PPT Properties - Python
with slides.Presentation("presentation.ppt") as presentation:
document_properties = presentation.document_properties
document_properties.author = "Aspose.Slides for Python"
document_properties.title = "Quarterly Review"
document_properties.subject = "Presentation Metadata"
document_properties.comments = "Built-in properties updated with Aspose.Slides."
document_properties.manager = "Project Manager"
presentation.save("presentation_with_updated_metadata.ppt", slides.export.SaveFormat.PPT)Add and Remove Custom PPT Properties - Python
with slides.Presentation("presentation.ppt") as presentation:
document_properties = presentation.document_properties
document_properties.set_custom_property_value("Department", "Engineering")
document_properties.set_custom_property_value("Review Count", 3)
document_properties.set_custom_property_value("Obsolete Status", "Draft")
document_properties.remove_custom_property("Obsolete Status")
presentation.save("presentation_with_custom_metadata.ppt", slides.export.SaveFormat.PPT)How to Edit PPT Metadata with Python
Follow these steps to edit metadata in a PPT file.
- Open the PPT file with
Presentation. - Access its
IDocumentPropertiesobject throughPresentation.document_properties. - Update built-in properties or use
set_custom_property_valueandremove_custom_propertyfor custom properties. - Save the presentation with
Presentation.saveandSaveFormat.PPT.
Built with Aspose.Slides
View and Edit PPT Metadata Online
The free Aspose.Slides Metadata app is built with Aspose.Slides for Python via .NET, the same API as the code above. Open it and see what the API can do with your own PPT files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides reads and writes properties before you write code.
- View and edit built-in and custom properties of your PPT file.
- Save and download the updated file.
Other Supported Metadata Formats
Use Python to manipulate metadata in other supported presentation formats.