# Xem hoặc chỉnh sửa siêu dữ liệu tệp PPSM bằng C++

> mã nguồn C++ để chỉnh sửa hoặc xem siêu dữ liệu định dạng PPSM.

Source: https://products.aspose.com/slides/vi/cpp/metadata/ppsm/
Updated: 2023-04-25



## Sửa đổi Thuộc tính PPSM qua C++

Khi sử dụng Aspose.Slides for C++, nhà phát triển có thể truy cập và sửa đổi giá trị của thuộc tính tích hợp cũng như thuộc tính tùy chỉnh. Nhà phát triển có thể sử dụng thuộc tính [DocumentProperties](https://reference.aspose.com/slides/cpp/aspose.slides/documentproperties/) do đối tượng Bản trình bày hiển thị để truy cập các thuộc tính tài liệu của tệp bản trình bày.

### Sửa đổi Thuộc tính tích hợp PPSM - C++

```cpp

// Instantiate the Presentation class that represents the Presentation
System::SharedPtr<Presentation> presentation = System::MakeObject<Presentation>(u"presentation.ppsm");

// Create a reference to IDocumentProperties object associated with Presentation
System::SharedPtr<IDocumentProperties> documentProperties = presentation->get_DocumentProperties();

// Set the builtin properties
documentProperties->set_Author(u"New Author");
documentProperties->set_Title(u"New Title");

// Save your presentation to a file
presentation->Save(u"DocumentProperties_out.ppsm", SaveFormat::Ppsm);
```

### Thêm thuộc tính tùy chỉnh vào PPSM - C++

```cpp

// Instantiate the Presentation class
auto presentation = System::MakeObject<Presentation>();

// Getting Document Properties
auto documentProperties = presentation->get_DocumentProperties();

// Adding Custom properties
documentProperties->idx_set(u"New Custom", ObjectExt::Box<int32_t>(12));
documentProperties->idx_set(u"My Name", ObjectExt::Box<String>(u"Aspose Metadata Editor"));
documentProperties->idx_set(u"Custom", ObjectExt::Box<int32_t>(124));

// Getting property name at particular index
String getPropertyName = documentProperties->GetCustomPropertyName(2);

// Removing selected property
documentProperties->RemoveCustomProperty(getPropertyName);

// Saving presentation
presentation->Save(u"CustomDocumentProperties_out.ppsm", SaveFormat::Ppsm);
```

## Cách trích xuất siêu dữ liệu của PPSM qua C++

Đây là các bước để Trích xuất siêu dữ liệu từ tệp PPSM.

Khởi tạo lớp Trình bày với đường dẫn đến tệp PPSM

Nhận đối tượng DocumentProperties được liên kết với Bản trình bày

Lặp lại các mục trong đối tượng DocumentProperties

Truy cập và sửa đổi thuộc tính tùy chỉnh

## Các định dạng siêu dữ liệu được hỗ trợ khác
