Edit FODP in PHP

Load, modify, and save FODP presentations with Aspose.Slides for PHP via Java.

Edit FODP using Aspose.Slides

Aspose.Slides for PHP via Java can load, modify, and save presentations in FODP format. You can edit slide text, add shapes and images, update formatting, and work with other presentation elements through the API.

The following example loads an FODP presentation, adds a rectangle containing text to its first slide, and saves the modified presentation as a new FODP file.

Edit FODP in PHP

Using Aspose.Slides for PHP via Java , you can add a text shape to an FODP presentation with a few lines of PHP code.

PHP code for editing FODP

$presentation = new Presentation("input.fodp");
try {
    $slide = $presentation->getSlides()->get_Item(0);
    $shape = $slide->getShapes()->addAutoShape(
        ShapeType::Rectangle, 10, 10, 100, 50);
    $shape->getTextFrame()->setText("New text");

    $presentation->save("output.fodp", SaveFormat::Fodp);
} finally {
    $presentation->dispose();
}

How to edit FODP in PHP

  1. Install Aspose.Slides for PHP via Java. See Installation .

  2. Configure Aspose.Slides in your PHP project.

  3. Load the FODP file with the Presentation class.

  4. Access the first slide with get_Item(0).

  5. Add a rectangle with addAutoShape and set its text with setText.

  6. Call save with the output file path and SaveFormat::Fodp.

Edit Other Files

You can also edit presentations in other supported formats.