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

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

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



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

Sử dụng Aspose.Slides for Java, 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 Java

```java

LoadOptions loadOptions = new LoadOptions();
loadOptions.setPassword("123123");
Presentation presentation = new Presentation("pres.odp", loadOptions);
try {
    presentation.getProtectionManager().removeEncryption();
    presentation.save("encryption-removed.odp", SaveFormat.Odp);
} finally {
    if (presentation != null) presentation.dispose();
}
```

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

```java

Presentation presentation = new Presentation("pres.odp");
try {
    presentation.getProtectionManager().removeWriteProtection();
    presentation.save("write-protection-removed.odp", SaveFormat.Odp);
} finally {
    if (presentation != null) presentation.dispose();
}
```

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

Đâ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
