Edit PPT in C++

Use Aspose.Slides for C++ to edit PPT presentations in C++ applications.

Edit PPT using Aspose.Slides

Aspose.Slides for C++ is a C++ API for working with PowerPoint presentations. You can load a PPT file into a Presentation, add text to a slide, and save the result as PPT.

Edit PPT in C++

Using Aspose.Slides for C++ , you can edit a PPT presentation by loading it with the Presentation class, adding a text shape, and saving the result with SaveFormat::Ppt.

C++ code for editing PPT

auto presentation = MakeObject<Presentation>(u"presentation.ppt");

auto slide = presentation->get_Slide(0);
auto textBox = slide->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 10, 10, 100, 50);
textBox->get_TextFrame()->set_Text(u"New text");

presentation->Save(u"presentation.ppt", SaveFormat::Ppt);
presentation->Dispose();

How to edit PPT in C++

  1. Install Aspose.Slides for C++. See Installation .

  2. Add the library as a reference in your project.

  3. Load the PPT presentation with the Presentation class.

  4. Access the slide you want to edit.

  5. Add a text shape with AddAutoShape and set_Text.

  6. Save the edited presentation with SaveFormat::Ppt.

Edit other files

You can also edit files in other formats.