PPT PPTX ODP POT ppsx
Aspose.Slides  for Java
FODP

Edit FODP properties using Java

Build your own Java apps to modify Built-in and Custom properties in presentation files using server-side APIs.

Modify FODP Properties via Java

Using Aspose.Slides for Java, developers can access and modify the values of built-in properties as well as custom properties. Developers can use DocumentProperties property exposed by Presentation object to access the document properties of the presentation file.

Modify FODP Built-in Properties - Java


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

Add Custom Properties to FODP - Java


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

How to Extract Metadata of FODP via Java

These are the steps to Extract Metadata from FODP files.

  1. Instantiate the Presentation class with path to FODP file

  2. Get DocumentProperties object associated with Presentation

  3. Loop over the items in DocumentProperties object

  4. Access and modify custom properties

Other Supported Metadata Formats

Using Java, You can also manipulate metadata of many other formats including.