PPT
PPTX
ODP
POT
ppsx
PPTX
C++을(를) 사용하여 PPTX 속성 편집
서버 측 API를 사용하여 프리젠테이션 파일의 기본 제공 속성과 사용자 정의 속성을 수정하려면 자신만의 C++ 앱을 빌드하세요.
C++을 통해 PPTX 속성 수정
개발자는 Aspose.Slides for C++을(를) 사용하여 기본 제공 속성 및 사용자 지정 속성의 값에 액세스하고 수정할 수 있습니다. 개발자는 프레젠테이션 파일의 문서 속성에 액세스하기 위해 Presentation 개체에 의해 노출된 DocumentProperties 속성을 사용할 수 있습니다.
PPTX 내장 속성 수정 - C++
// Instantiate the Presentation class that represents the Presentation
System::SharedPtr<Presentation> presentation = System::MakeObject<Presentation>(u"presentation.pptx");
// 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.pptx", SaveFormat::Pptx);
PPTX에 맞춤 속성 추가 - C++
// 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.pptx", SaveFormat::Pptx);
C++을 통해 PPTX의 메타데이터를 추출하는 방법
다음은 PPTX 파일에서 메타데이터를 추출하는 단계입니다.
- PPTX 파일에 대한 경로를 사용하여 프레젠테이션 클래스를 인스턴스화합니다. 
- 프레젠테이션과 연결된 DocumentProperties 개체 가져오기 
- DocumentProperties 개체의 항목을 반복합니다. 
- 사용자 지정 속성 액세스 및 수정