PPT PPTX ODP POT PPSX
Aspose.Slides for Python via .NET
ODP

View and Edit ODP Metadata with Python

Build Python applications that read and modify built-in and custom presentation properties with Aspose.Slides.

View and Modify ODP 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 ODP presentations. Access an IDocumentProperties object through Presentation.document_properties, modify it, and save the presentation in ODP format.

Update Built-in ODP Properties - Python

with slides.Presentation("presentation.odp") 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.odp", slides.export.SaveFormat.ODP)

Add and Remove Custom ODP Properties - Python

with slides.Presentation("presentation.odp") 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.odp", slides.export.SaveFormat.ODP)

How to Edit ODP Metadata with Python

Follow these steps to edit metadata in an ODP file.

  1. Open the ODP file with Presentation.

  2. Access its IDocumentProperties object through Presentation.document_properties.

  3. Update built-in properties or use set_custom_property_value and remove_custom_property for custom properties.

  4. Save the presentation with Presentation.save and SaveFormat.ODP.

Other Supported Metadata Formats

Use Python to manipulate metadata in other supported presentation formats.