Python으로 PPTX 프레젠테이션 보호

Aspose.Slides로 프레젠테이션을 암호화하거나 쓰기 보호를 설정하는 Python 애플리케이션을 빌드하세요.

Python으로 PPTX 프레젠테이션 보호

Aspose.Slides for Python via .NET 은 두 가지 보호 방식을 제공합니다. ProtectionManager.encrypt를 호출하면 PPTX 프레젠테이션이 암호화되어 열 때 암호가 필요합니다. 또는 ProtectionManager.set_write_protection을 호출하면 파일을 암호화하지 않고 수정을 억제할 수 있습니다. 사용자는 쓰기 보호된 프레젠테이션을 여전히 열 수 있으며 변경 내용을 다른 파일에 저장할 수 있습니다.

PPTX 프레젠테이션 암호화 – Python

with slides.Presentation("presentation.pptx") as presentation:
    presentation.protection_manager.encrypt("123123")
    presentation.save("encrypted-presentation.pptx", slides.export.SaveFormat.PPTX)

PPTX 프레젠테이션에 쓰기 보호 설정 – Python

with slides.Presentation("presentation.pptx") as presentation:
    presentation.protection_manager.set_write_protection("123123")
    presentation.save("write-protected-presentation.pptx", slides.export.SaveFormat.PPTX)

Python으로 PPTX를 보호하는 방법

다음 단계에 따라 PPTX 파일을 보호하세요.

  1. Presentation으로 PPTX 파일을 엽니다.
  2. 열 때 암호를 요구하려면 ProtectionManager.encrypt를, 변경을 억제하려면 ProtectionManager.set_write_protection을 사용합니다.
  3. SaveFormat.PPTX로 보호된 프레젠테이션을 PPTX로 저장합니다.

Aspose.Slides로 구축

온라인에서 PPTX 파일을 암호로 보호

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

  • 브라우저에서 실행되며 설치가 필요 없습니다.
  • 코드를 작성하기 전에 Aspose.Slides가 프레젠테이션을 보호하는 방식을 확인하세요.
  • PPTX 파일을 열거나 편집할 때 필요한 암호를 설정하세요.
  • 보호된 파일을 다운로드하세요.

보호를 지원하는 기타 형식

Python으로 지원되는 다른 프레젠테이션 형식도 보호할 수 있습니다.