PPT PPTX ODP POT ppsx
Aspose.Slides  for .NET
PPSM

C#을(를) 사용하여 PPSM 속성 편집

서버 측 API를 사용하여 프리젠테이션 파일의 기본 제공 속성과 사용자 정의 속성을 수정하려면 자신만의 .NET 앱을 빌드하세요.

C#을 통해 PPSM 속성 수정

개발자는 Aspose.Slides for .NET을(를) 사용하여 기본 제공 속성 및 사용자 지정 속성의 값에 액세스하고 수정할 수 있습니다. 개발자는 프레젠테이션 파일의 문서 속성에 액세스하기 위해 Presentation 개체에 의해 노출된 DocumentProperties 속성을 사용할 수 있습니다.

PPSM 내장 속성 수정 - C#


// Instantiate the Presentation class that represents the Presentation
Presentation presentation = new Presentation("presentation.ppsm");

// Create a reference to IDocumentProperties object associated with Presentation
IDocumentProperties documentProperties = presentation.DocumentProperties;

// Set the builtin properties
documentProperties.Author = "Aspose.Slides for .NET";
documentProperties.Title = "Modifying Presentation Properties";
documentProperties.Subject = "Aspose Subject";
documentProperties.Comments = "Aspose Description";
documentProperties.Manager = "Aspose Manager";

// Save your presentation to a file
presentation.Save("DocumentProperties_out.ppsm", SaveFormat.Ppsm);

PPSM에 맞춤 속성 추가 - C#


// Instantiate the Presentation class
Presentation presentation = new Presentation();

// Getting Document Properties
IDocumentProperties documentProperties = presentation.DocumentProperties;

// Adding Custom properties
documentProperties["New Custom"] = 12;
documentProperties["My Name"] = "Aspose Metadata Editor";
documentProperties["Custom"] = 124;

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

// Removing selected property
documentProperties.RemoveCustomProperty(getPropertyName);

// Save your presentation to a file
presentation.Save("CustomDocumentProperties_out.ppsm", SaveFormat.Ppsm);

C#을 통해 PPSM의 메타데이터를 추출하는 방법

다음은 PPSM 파일에서 메타데이터를 추출하는 단계입니다.

  1. PPSM 파일에 대한 경로를 사용하여 프레젠테이션 클래스를 인스턴스화합니다.

  2. 프레젠테이션과 연결된 DocumentProperties 개체 가져오기

  3. DocumentProperties 개체의 항목을 반복합니다.

  4. 사용자 지정 속성 액세스 및 수정

기타 지원되는 메타데이터 형식

C#을(를) 사용하여 다음을 비롯한 다양한 형식의 메타데이터를 조작할 수도 있습니다.