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

Python kullanarak PPS özelliklerini düzenleyin

Sunucu tarafı API’lerini kullanarak sunum dosyalarındaki Yerleşik ve Özel özellikleri değiştirmek için kendi Python uygulamalarınızı oluşturun.

Python aracılığıyla PPS Özelliklerini değiştirin

Geliştiriciler, Aspose.Slides for Python via .NET ürününü kullanarak, özel özelliklerin yanı sıra yerleşik özelliklerin değerlerine erişebilir ve bunları değiştirebilir. Geliştiriciler, sunum dosyasının belge özelliklerine erişmek için Presentation nesnesi tarafından sunulan DocumentProperties özelliğini kullanabilir.

PPS Yerleşik Özelliklerini Değiştirin - 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 ürününe Özel Özellikler ekleyin


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)

Python Aracılığıyla PPS Meta Verilerini Çıkarma

Bunlar, PPS dosyalarından Meta Verileri Çıkarma adımlarıdır.

  1. PPS dosyasının yolu ile Presentation sınıfını örneklendirin

  2. Presentation ile ilişkili DocumentProperties nesnesini alın

  3. DocumentProperties nesnesindeki öğeler üzerinde döngü yapın

  4. Özel özelliklere erişin ve değiştirin

Diğer Desteklenen Meta Veri Biçimleri

Python kullanarak, aşağıdakiler de dahil olmak üzere diğer birçok biçimin meta verilerini de değiştirebilirsiniz.