# عرض أو تحرير PPTM البيانات الوصفية للملفات باستخدام Python

> Python شفرة المصدر لتعديل أو عرض البيانات الوصفية للتنسيق PPTM.

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



## تعديل خصائص PPTM عبر Python

باستخدام Aspose.Slides for Python via .NET ، يمكن للمطورين الوصول إلى قيم الخصائص المضمنة بالإضافة إلى الخصائص المخصصة وتعديلها. يمكن للمطورين استخدام خاصية [DocumentProperties](https://reference.aspose.com/slides/python-net/aspose.slides/documentproperties/) المكشوفة بواسطة كائن Presentation للوصول إلى خصائص المستند الخاصة بملف العرض التقديمي.

### تعديل PPTM الخصائص المضمنة - Python

```py

import aspose.slides as slides

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

### إضافة خصائص مخصصة إلى PPTM - 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.pptm", slides.export.SaveFormat.PPTM)
```

## كيفية استخراج البيانات الوصفية لـ PPTM عبر Python

هذه هي خطوات استخراج البيانات الوصفية من ملفات PPTM.

إنشاء فئة العرض التقديمي بمسار ملف PPTM

احصل على كائن DocumentProperties المرتبط بالعرض التقديمي

حلقة فوق العناصر الموجودة في كائن DocumentProperties

الوصول إلى الخصائص المخصصة وتعديلها

## تنسيقات البيانات الوصفية المدعومة الأخرى
