# View or Edit POTX Metadata using C++

> View and edit POTX metadata in C++. Use Aspose.Slides for C++ to update built-in and custom presentation properties.

Source: https://products.aspose.com/slides/cpp/metadata/potx/
Updated: 2026-07-09



## Modify POTX Properties via C++

Aspose.Slides for C++ lets you read and update metadata in POTX files without Microsoft PowerPoint. Use the [`DocumentProperties`](https://reference.aspose.com/slides/cpp/aspose.slides/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 POTX Built-in Properties - C++

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

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

presentation->Save(u"updated-presentation.potx", SaveFormat::Potx);
presentation->Dispose();
```

### Add Custom Properties to POTX - C++

```cpp
auto presentation = MakeObject<Presentation>(u"presentation.potx");
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.potx", SaveFormat::Potx);
presentation->Dispose();
```

## How to Extract Metadata of POTX via C++

These are the steps to extract metadata from POTX files.

Load the POTX file with the `Presentation` class.

Get the `DocumentProperties` object with `get_DocumentProperties`.

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

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

## Other Supported Metadata Formats
