Edit POTX Metadata using C++
Use Aspose.Slides for C++ to view and update built-in and custom properties in presentation files.
Modify POTX Properties via C++
Aspose.Slides for C++ lets you read and update metadata in POTX 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 POTX Built-in Properties - C++
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++
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 View or Edit POTX Metadata using C++
Follow these steps to view or edit POTX metadata.
- Load the POTX file with the
Presentationclass. - Get the
DocumentPropertiesobject withget_DocumentProperties. - Read or update built-in properties such as
AuthorandTitle. - Add, read, or remove custom properties with
idx_set,GetCustomPropertyName, andRemoveCustomProperty.
Built with Aspose.Slides
View and Edit POTX Metadata Online
The free Aspose.Slides Metadata app is built with Aspose.Slides for C++, the same API as the code above. Open it and see what the API can do with your own POTX files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides reads and writes properties before you write code.
- View and edit built-in and custom properties of your POTX file.
- Save and download the updated file.
Other Supported Metadata Formats
Using C++, you can also manage metadata in the following formats.