# Visualizza o modifica i metadati dei file PPTX utilizzando Python

> Python codice sorgente per modificare o visualizzare i metadati del formato PPTX.

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



## Modifica le proprietà PPTX tramite Python

Utilizzando Aspose.Slides for Python via .NET, gli sviluppatori possono accedere e modificare i valori delle proprietà integrate e delle proprietà personalizzate. Gli sviluppatori possono utilizzare la proprietà [DocumentProperties](https://reference.aspose.com/slides/python-net/aspose.slides/documentproperties/) esposta dall'oggetto Presentation per accedere alle proprietà del documento del file di presentazione.

### Modifica proprietà integrate PPTX - 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)
```

### Aggiungi proprietà personalizzate a 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)
```

## Come estrarre i metadati di PPTX tramite Python

Questi sono i passaggi per estrarre i metadati dai file PPTX.

Crea un'istanza della classe Presentation con il percorso del file PPTX

Ottenere l'oggetto DocumentProperties associato alla presentazione

Passa sugli elementi nell'oggetto DocumentProperties

Accedi e modifica le proprietà personalizzate

## Altri formati di metadati supportati
