PPT
PPTX
ODP
POT
ppsx
PPTX
使用 Python 解鎖 PPTX
構建您自己的 Python 應用程序以從 PowerPoint 中刪除密碼並使用服務器端 API 解密演示文稿文件。
通過 Python 從 PPTX 演示文稿中刪除加密
使用 Aspose.Slides for Python via .NET,您可以取消對 PPTX 演示文稿的加密或密碼保護。這樣,用戶就可以不受限制地訪問或修改 PPTX 表示。
使用 Python 從 PPTX 禁用密碼保護
import aspose.slides as slides
loadOptions = slides.LoadOptions()
loadOptions.password = "123123"
with slides.Presentation("encrypted-pres.pptx", loadOptions) as pres:
pres.protection_manager.remove_encryption()
pres.save("encryption-removed.pptx", slides.export.SaveFormat.PPTX)
使用 Python 從 PPTX 演示文稿中刪除寫保護
import aspose.slides as slides
with slides.Presentation("write-protected-pres.pptx") as pres:
pres.protection_manager.remove_write_protection()
pres.save("write-protection-removed.pptx", slides.export.SaveFormat.PPTX)
如何通過 Python 從 PPTX 中刪除密碼
這些是取消 PPTX 文件保護的步驟。
使用 Presentation 實例加載 PPTX
使用 ProtectionManager 類刪除寫保護
以 PPTX 格式保存結果