# Lihat atau Edit Metadata File PPSM menggunakan Python

> kode sumber Python untuk mengedit atau melihat metadata format PPSM.

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



## Ubah Properti PPSM melalui Python

Dengan menggunakan Aspose.Slides for Python via .NET, developer dapat mengakses dan mengubah nilai properti bawaan serta properti kustom. Pengembang dapat menggunakan properti [DocumentProperties](https://reference.aspose.com/slides/python-net/aspose.slides/documentproperties/) yang diekspos oleh objek Presentasi untuk mengakses properti dokumen dari file presentasi.

### Modifikasi PPSM Properti Bawaan - Python

```py

import aspose.slides as slides

# Instantiate the Presentation class that represents the Presentation
with slides.Presentation(path + "ModifyBuiltinProperties.ppsm") 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.ppsm", slides.export.SaveFormat.PPSM)
```

### Tambahkan Properti Kustom ke PPSM - 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.ppsm", slides.export.SaveFormat.PPSM)
```

## Cara Mengekstrak Metadata PPSM melalui Python

Ini adalah langkah-langkah untuk Mengekstrak Metadata dari file PPSM.

Buat instance kelas Presentasi dengan jalur ke file PPSM

Dapatkan objek DocumentProperties yang terkait dengan Presentasi

Ulangi item dalam objek DocumentProperties

Akses dan ubah properti khusus

## Format Metadata Lain yang Didukung
