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

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

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



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

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

```py

import aspose.slides as slides

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

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

```py

import aspose.slides as slides

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

```

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

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

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

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