# Zobrazení nebo úprava metadat souborů PPTX pomocí Python

> Zdrojový kód Python pro úpravu nebo zobrazení metadat formátu PPTX.

Source: https://products.aspose.com/slides/cs/python-net/metadata/pptx/
Updated: 2023-04-25



## Upravit vlastnosti PPTX prostřednictvím Python

Pomocí Aspose.Slides for Python via .NET mohou vývojáři přistupovat k hodnotám vestavěných i vlastních vlastností a upravovat je. Vývojáři mohou použít vlastnost [DocumentProperties](https://reference.aspose.com/slides/python-net/aspose.slides/documentproperties/) vystavenou objektem Presentation pro přístup k vlastnostem dokumentu souboru prezentace.

### Upravit PPTX vestavěné vlastnosti – Python

```py

import aspose.slides as slides

# Instantiate the Presentation class that represents the Presentation
with slides.Presentation(path + "ModifyBuiltinProperties.pptx") as presentation:
    # Create a reference to object associated with Presentation
    documentProperties = presentation.document_properties

    # Set the builtin properties
    documentProperties.author = "Aspose.Slides for Python"
    documentProperties.title = "Modifying Presentation Properties"
    documentProperties.subject = "Aspose Subject"
    documentProperties.comments = "Aspose Description"
    documentProperties.manager = "Aspose Manager"

    # save your presentation to a file
    presentation.save("DocumentProperties_out.pptx", slides.export.SaveFormat.PPTX)
```

### Přidat uživatelské vlastnosti do PPTX – Python

```py

import aspose.slides as slides

# Instantiate the Presentation class
with slides.Presentation() as presentation:
    # Getting Document Properties
    documentProperties = presentation.document_properties

    # Adding Custom properties
    documentProperties.set_custom_property_value("New Custom", 12)
    documentProperties.set_custom_property_value("My Nam", "Aspose Metadata Editor")
    documentProperties.set_custom_property_value("Custom", 124)

    # Getting property name at particular index
    getPropertyName = documentProperties.get_custom_property_name(2)

    # Removing selected property
    documentProperties.remove_custom_property(getPropertyName)

    # Saving presentation
    presentation.save("CustomDocumentProperties_out.pptx", slides.export.SaveFormat.PPTX)
```

## Jak extrahovat metadata PPTX přes Python

Toto jsou kroky k extrahování metadat ze souborů PPTX.

Vytvořte instanci třídy Presentation s cestou k souboru PPTX

Získat objekt DocumentProperties spojený s Presentation

Opakujte položky v objektu DocumentProperties

Přístup a úpravy uživatelských vlastností

## Další podporované formáty metadat
