# Buka Kunci File Presentasi PPT menggunakan Java

> kode sumber Java untuk menghapus perlindungan dari Presentasi PPT.

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



## Menghapus Enkripsi dari Presentasi PPT melalui Java

Dengan menggunakan Aspose.Slides for Java, Anda dapat menghapus enkripsi atau perlindungan sandi pada presentasi PPT. Dengan cara ini, pengguna dapat mengakses atau memodifikasi presentasi PPT tanpa batasan.

### Menonaktifkan Perlindungan Kata Sandi dari PPT menggunakan Java

```java

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

### Menghapus Write Protection dari Presentasi PPT menggunakan Java

```java

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

## Cara Menghapus Kata Sandi Dari PPT melalui Java

Ini adalah langkah-langkah untuk menghapus perlindungan dari file PPT.

Muat PPT dengan contoh Presentasi

Hapus Write Protection menggunakan kelas ProtectionManager

Simpan hasil dalam format PPT

## Format lain yang Didukung
