PPT
PPTX
ODP
POT
ppsx
POTX
Java kullanarak POTX özelliklerini düzenleyin
Sunucu tarafı API’lerini kullanarak sunum dosyalarındaki Yerleşik ve Özel özellikleri değiştirmek için kendi Java uygulamalarınızı oluşturun.
Java aracılığıyla POTX Özelliklerini değiştirin
Geliştiriciler, Aspose.Slides for Java ü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.
POTX Yerleşik Özelliklerini Değiştirin - Java
Presentation pres = new Presentation("Presentation.potx");
try {
    // Create a reference to IDocumentProperties object associated with Presentation
    IDocumentProperties dp = pres.getDocumentProperties();
    
    // Set the built-in properties
    dp.setAuthor("Aspose.Slides for Java");
    dp.setTitle("Modifying Presentation Properties");
    dp.setSubject("Aspose Subject");
    dp.setComments("Aspose Description");
    dp.setManager("Aspose Manager");
    
    // Save your presentation to a file
    pres.save("DocProps.potx", SaveFormat.Potx);
} finally {
    if (pres != null) pres.dispose();
}
POTX - Java ürününe Özel Özellikler ekleyin
Presentation pres = new Presentation();
try {
    // Getting Document Properties
    IDocumentProperties dProps = pres.getDocumentProperties();
    
    // Adding Custom properties
    dProps.set_Item("New Custom", 12);
    dProps.set_Item("My Name", "Aspose Metadata Editor");
    dProps.set_Item("Custom", 124);
    
    // Getting property name at particular index
    String getPropertyName = dProps.getCustomPropertyName(2);
    
    // Removing selected property
    dProps.removeCustomProperty(getPropertyName);
    
    // Saving presentation
    pres.save("CustomDemo.potx", SaveFormat.Potx);
} finally {
    if (pres != null) pres.dispose();
}
Java Aracılığıyla POTX Meta Verilerini Çıkarma
Bunlar, POTX dosyalarından Meta Verileri Çıkarma adımlarıdır.
POTX 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