PPT PPTX ODP POT ppsx
Aspose.Slides  for Python via .NET
PPT

تحرير خصائص PPT باستخدام Python

أنشئ تطبيقات Python الخاصة بك لتعديل الخصائص المضمنة والمخصصة في ملفات العروض التقديمية باستخدام واجهات برمجة التطبيقات من جانب الخادم.

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

باستخدام Aspose.Slides for Python via .NET ، يمكن للمطورين الوصول إلى قيم الخصائص المضمنة بالإضافة إلى الخصائص المخصصة وتعديلها. يمكن للمطورين استخدام خاصية DocumentProperties المكشوفة بواسطة كائن Presentation للوصول إلى خصائص المستند الخاصة بملف العرض التقديمي.

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


import aspose.slides as slides

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

إضافة خصائص مخصصة إلى PPT - Python


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.ppt", slides.export.SaveFormat.PPT)

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

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

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

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

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

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

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

باستخدام Python ، يمكنك أيضًا معالجة البيانات الوصفية للعديد من التنسيقات الأخرى بما في ذلك.