PPT
PPTX
ODP
POT
ppsx
ODP
Python kullanarak ODP ö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 ODP Ö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.
ODP 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.odp") 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.odp", slides.export.SaveFormat.ODP)
ODP - 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.odp", slides.export.SaveFormat.ODP)
Python Aracılığıyla ODP Meta Verilerini Çıkarma
Bunlar, ODP dosyalarından Meta Verileri Çıkarma adımlarıdır.
- ODP dosyasının yolu ile Presentation sınıfını örneklendirin 
- Presentation ile ilişkili DocumentProperties nesnesini alın 
- DocumentProperties nesnesindeki öğeler üzerinde döngü yapın 
- Özel özelliklere erişin ve değiştirin