Lihat dan Edit Metadata PPTM dengan Python

Bangun aplikasi Python yang membaca dan mengubah properti bawaan dan kustom presentasi dengan Aspose.Slides.

Lihat dan Ubah Metadata PPTM dengan Python

Aspose.Slides for Python via .NET memungkinkan Anda membaca dan memperbarui metadata bawaan, serta menambahkan, memperbarui, atau menghapus properti dokumen kustom dalam presentasi PPTM. Akses objek IDocumentProperties melalui Presentation.document_properties, ubah, lalu simpan presentasi dalam format PPTM.

Perbarui Properti Bawaan PPTM – Python

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

Tambah dan Hapus Properti Kustom PPTM – Python

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

Cara Mengedit Metadata PPTM dengan Python

Ikuti langkah-langkah berikut untuk mengedit metadata dalam file PPTM.

  1. Buka file PPTM dengan Presentation.
  2. Akses objek IDocumentProperties melalui Presentation.document_properties.
  3. Perbarui properti bawaan atau gunakan set_custom_property_value dan remove_custom_property untuk properti kustom.
  4. Simpan presentasi dengan Presentation.save dan SaveFormat.PPTM.

Dibuat dengan Aspose.Slides

Lihat dan Edit Metadata PPTM Secara Online

Aplikasi Aspose.Slides Metadata gratis dibuat dengan Aspose.Slides for Python via .NET, API yang sama dengan kode di atas. Buka aplikasinya dan lihat apa yang dapat dilakukan API dengan file PPTM Anda sendiri.

  • Berjalan di browser Anda, tanpa perlu menginstal apa pun.
  • Lihat cara Aspose.Slides membaca dan menulis properti sebelum menulis kode.
  • Lihat dan edit properti bawaan dan kustom file PPTM Anda.
  • Simpan dan unduh file yang diperbarui.

Format Metadata Lain yang Didukung

Dengan Python, Anda juga dapat mengelola metadata format presentasi lain yang didukung.