عرض بيانات تعريف PPT وتحريرها باستخدام Python

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

عرض بيانات تعريف PPT وتعديلها باستخدام Python

يتيح لك Aspose.Slides for Python via .NET قراءة بيانات التعريف المضمنة وتحديثها، وإضافة خصائص المستند المخصصة أو تحديثها أو إزالتها في عروض PPT التقديمية. صِل إلى كائن IDocumentProperties عبر Presentation.document_properties، وعدّله، ثم احفظ العرض التقديمي بتنسيق PPT.

تحديث الخصائص المضمنة في PPT – Python

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

إضافة الخصائص المخصصة في PPT وإزالتها – Python

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

كيفية تحرير بيانات تعريف PPT باستخدام Python

اتبع هذه الخطوات لتحرير بيانات تعريف ملف PPT.

  1. افتح ملف PPT باستخدام Presentation.
  2. صِل إلى كائن IDocumentProperties عبر Presentation.document_properties.
  3. حدّث الخصائص المضمنة أو استخدم set_custom_property_value وremove_custom_property للخصائص المخصصة.
  4. احفظ العرض التقديمي باستخدام Presentation.save وSaveFormat.PPT.

مبني باستخدام Aspose.Slides

عرض بيانات تعريف PPT وتحريرها عبر الإنترنت

تطبيق Aspose.Slides Metadata المجاني مبني باستخدام Aspose.Slides for Python via .NET، وهي نفس واجهة برمجة التطبيقات المستخدمة في الكود أعلاه. افتحه واكتشف ما يمكن لواجهة برمجة التطبيقات فعله بملفات PPT الخاصة بك.

  • يعمل في متصفحك، دون الحاجة إلى تثبيت أي شيء.
  • شاهد كيف يقرأ Aspose.Slides الخصائص ويكتبها قبل كتابة الكود.
  • اعرض الخصائص المضمنة والمخصصة لملف PPT وحرّرها.
  • احفظ الملف المحدّث ونزّله.

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

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