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

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

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

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

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

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


import aspose.slides as slides

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

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

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

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

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

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

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

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

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

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