# Mở khóa tệp bản trình bày PPT bằng Python

> mã nguồn Python để xóa bảo vệ khỏi Bản trình bày PPT.

Source: https://products.aspose.com/slides/vi/python-net/unlock/ppt/
Updated: 2023-06-07



## Xóa Mã hóa khỏi Bản trình bày PPT qua Python

Sử dụng Aspose.Slides for Python via .NET, bạn có thể xóa mã hóa hoặc bảo vệ bằng mật khẩu trên bản trình bày PPT. Bằng cách này, người dùng có thể truy cập hoặc sửa đổi bản trình bày PPT mà không bị hạn chế.

### Vô hiệu hóa bảo vệ bằng mật khẩu từ PPT bằng Python

```py

import aspose.slides as slides

loadOptions = slides.LoadOptions()
loadOptions.password = "123123"
with slides.Presentation("encrypted-pres.ppt", loadOptions) as pres:
    pres.protection_manager.remove_encryption()
    pres.save("encryption-removed.ppt", slides.export.SaveFormat.PPT)
```

### Xóa tính năng chống ghi khỏi bản trình bày PPT bằng Python

```py

import aspose.slides as slides

with slides.Presentation("write-protected-pres.ppt") as pres:
    pres.protection_manager.remove_write_protection()
    pres.save("write-protection-removed.ppt", slides.export.SaveFormat.PPT)

```

## Cách xóa mật khẩu khỏi PPT qua Python

Đây là các bước để xóa bảo vệ khỏi các tệp PPT.

Tải PPT với phiên bản Trình bày

Xóa Bảo vệ ghi bằng lớp ProtectionManager

Lưu kết quả ở định dạng PPT

## Các định dạng được hỗ trợ khác
