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

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

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



## Xóa Mã hóa khỏi Bản trình bày PPTX 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 PPTX. 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 PPTX mà không bị hạn chế.

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

```py

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)
```

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

```py

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)

```

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

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

Tải PPTX 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 PPTX

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