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

Szerkessze a PPSX tulajdonságokat a Python használatával

Készítse el saját Python alkalmazásait a prezentációs fájlok beépített és egyéni tulajdonságainak kiszolgálóoldali API-k segítségével történő módosításához.

A PPSX tulajdonságok módosítása a Python segítségével

A Aspose.Slides for Python via .NET használatával a fejlesztők hozzáférhetnek és módosíthatják a beépített tulajdonságok, valamint az egyéni tulajdonságok értékeit. A fejlesztők a Presentation objektum által közzétett DocumentProperties tulajdonságot használhatják a prezentációs fájl dokumentum tulajdonságainak eléréséhez.

A PPSX beépített tulajdonságainak módosítása – Python


import aspose.slides as slides

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

Egyéni tulajdonságok hozzáadása a következőhöz: PPSX – 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.ppsx", slides.export.SaveFormat.PPSX)

A PPSX metaadatainak kinyerése a Python segítségével

Ezek a lépések a metaadatok kibontásához a PPSX fájlokból.

  1. Példányosítsa a Presentation osztályt a PPSX fájl elérési útjával

  2. A bemutatóhoz társított DocumentProperties objektum lekérése

  3. Hurok át a DocumentProperties objektum elemei között

  4. Egyéni tulajdonságok elérése és módosítása

Egyéb támogatott metaadat-formátumok

A Python használatával számos más formátum metaadatait is kezelheti, beleértve a.