PPT PPTX ODP POT ppsx
Aspose.Slides  for Java
PPS

Java kullanarak PPS ö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 PPS Ö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.

PPS Yerleşik Özelliklerini Değiştirin - Java


Presentation pres = new Presentation("Presentation.pps");
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.pps", SaveFormat.Pps);
} finally {
    if (pres != null) pres.dispose();
}

PPS - 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.pps", SaveFormat.Pps);
} finally {
    if (pres != null) pres.dispose();
}

Java 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

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