# ดูหรือแก้ไขข้อมูลเมตาของไฟล์ FODP โดยใช้ Python

> ซอร์สโค้ด Python เพื่อแก้ไขหรือดูข้อมูลเมตาของรูปแบบ FODP

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



## แก้ไขคุณสมบัติ FODP ผ่าน Python

เมื่อใช้ Aspose.Slides for Python via .NET นักพัฒนาสามารถเข้าถึงและแก้ไขค่าของคุณสมบัติในตัวรวมถึงคุณสมบัติที่กำหนดเอง นักพัฒนาสามารถใช้คุณสมบัติ [DocumentProperties](https://reference.aspose.com/slides/python-net/aspose.slides/documentproperties/) ที่เปิดเผยโดยออบเจกต์การนำเสนอเพื่อเข้าถึงคุณสมบัติเอกสารของไฟล์การนำเสนอ

### แก้ไข FODP คุณสมบัติในตัว - Python

```py

import aspose.slides as slides

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

### เพิ่มคุณสมบัติที่กำหนดเองใน FODP - 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.fodp", slides.export.SaveFormat.FODP)
```

## วิธีดึงข้อมูลเมตาของ FODP ผ่าน Python

นี่คือขั้นตอนในการดึงข้อมูลเมตาจากไฟล์ FODP

สร้างอินสแตนซ์ของคลาสงานนำเสนอด้วยพาธไปยังไฟล์ FODP

รับวัตถุ DocumentProperties ที่เกี่ยวข้องกับการนำเสนอ

วนซ้ำรายการในวัตถุ DocumentProperties

เข้าถึงและแก้ไขคุณสมบัติแบบกำหนดเอง

## รูปแบบ Metadata อื่นๆ ที่รองรับ
