Python으로 PPTX 메타데이터 보기 및 편집

Aspose.Slides로 프레젠테이션의 기본 제공 속성과 사용자 지정 속성을 읽고 수정하는 Python 앱을 구축하세요.

Python으로 PPTX 메타데이터 보기 및 수정

Aspose.Slides for Python via .NET 을 사용하면 PPTX 프레젠테이션의 기본 제공 메타데이터를 읽고 업데이트하며, 사용자 지정 문서 속성을 추가, 업데이트 또는 제거할 수 있습니다. Presentation.document_properties로 IDocumentProperties 객체에 액세스하여 수정한 다음 프레젠테이션을 PPTX 형식으로 저장하세요.

PPTX 기본 제공 속성 업데이트 - Python

with slides.Presentation("presentation.pptx") as presentation:
    document_properties = presentation.document_properties
    document_properties.author = "Aspose.Slides for Python"
    document_properties.title = "Quarterly Review"
    document_properties.subject = "Presentation Metadata"
    document_properties.comments = "Built-in properties updated with Aspose.Slides."
    document_properties.manager = "Project Manager"

    presentation.save("presentation_with_updated_metadata.pptx", slides.export.SaveFormat.PPTX)

PPTX 사용자 지정 속성 추가 및 제거 - Python

with slides.Presentation("presentation.pptx") as presentation:
    document_properties = presentation.document_properties
    document_properties.set_custom_property_value("Department", "Engineering")
    document_properties.set_custom_property_value("Review Count", 3)
    document_properties.set_custom_property_value("Obsolete Status", "Draft")
    document_properties.remove_custom_property("Obsolete Status")

    presentation.save("presentation_with_custom_metadata.pptx", slides.export.SaveFormat.PPTX)

Python으로 PPTX 메타데이터를 편집하는 방법

다음 단계에 따라 PPTX 파일의 메타데이터를 편집하세요.

  1. Presentation으로 PPTX 파일을 엽니다.
  2. Presentation.document_properties로 IDocumentProperties 객체에 액세스합니다.
  3. 기본 제공 속성을 업데이트하거나 사용자 지정 속성에는 set_custom_property_value와 remove_custom_property를 사용합니다.
  4. Presentation.save와 SaveFormat.PPTX로 프레젠테이션을 저장합니다.

Aspose.Slides로 구축

온라인에서 PPTX 메타데이터 보기 및 편집

무료 Aspose.Slides Metadata 앱은 위 코드와 동일한 API인 Aspose.Slides for Python via .NET로 구축되었습니다. 앱을 열고 내 PPTX 파일로 API가 무엇을 할 수 있는지 확인해 보세요.

  • 브라우저에서 실행되며 설치가 필요 없습니다.
  • 코드를 작성하기 전에 Aspose.Slides가 속성을 어떻게 읽고 쓰는지 확인하세요.
  • PPTX 파일의 기본 제공 속성과 사용자 지정 속성을 보고 편집하세요.
  • 업데이트된 파일을 저장하고 다운로드하세요.

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

Python으로 지원되는 다른 프레젠테이션 형식의 메타데이터도 관리할 수 있습니다.