PPT PPTX ODP POT PPSX
Aspose.Slides  for C++
PPSX

Edit PPSX Metadata using C++

Use Aspose.Slides for C++ to view and update built-in and custom properties in presentation files.

Modify PPSX Properties via C++

Aspose.Slides for C++ lets you read and update metadata in PPSX files without Microsoft PowerPoint. Use the DocumentProperties object exposed by Presentation::get_DocumentProperties to change built-in properties such as Author and Title, or to manage custom properties with idx_set, GetCustomPropertyName, and RemoveCustomProperty.

Modify PPSX Built-in Properties - C++

auto presentation = MakeObject<Presentation>(u"presentation.ppsx");
auto documentProperties = presentation->get_DocumentProperties();

documentProperties->set_Author(u"New Author");
documentProperties->set_Title(u"New Title");

presentation->Save(u"updated-presentation.ppsx", SaveFormat::Ppsx);
presentation->Dispose();

Add Custom Properties to PPSX - C++

auto presentation = MakeObject<Presentation>(u"presentation.ppsx");
auto documentProperties = presentation->get_DocumentProperties();

documentProperties->idx_set(u"Department", ObjectExt::Box<String>(u"Sales"));
documentProperties->idx_set(u"Project", ObjectExt::Box<String>(u"Metadata Update"));
documentProperties->idx_set(u"Revision", ObjectExt::Box<int32_t>(3));

auto customPropertyName = documentProperties->GetCustomPropertyName(2);
documentProperties->RemoveCustomProperty(customPropertyName);

presentation->Save(u"updated-custom-properties.ppsx", SaveFormat::Ppsx);
presentation->Dispose();

How to Extract Metadata of PPSX via C++

These are the steps to extract metadata from PPSX files.

  1. Load the PPSX file with the Presentation class.

  2. Get the DocumentProperties object with get_DocumentProperties.

  3. Read or update built-in properties such as Author and Title.

  4. Add, read, or remove custom properties with idx_set, GetCustomPropertyName, and RemoveCustomProperty.

Other Supported Metadata Formats

You can also view and edit metadata in other presentation formats.