# Buka Kunci File Presentasi PPTX menggunakan Java

> kode sumber Java untuk menghapus perlindungan dari Presentasi PPTX.

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



## Menghapus Enkripsi dari Presentasi PPTX melalui Java

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

### Menonaktifkan Perlindungan Kata Sandi dari PPTX menggunakan Java

```java

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

### Menghapus Write Protection dari Presentasi PPTX menggunakan Java

```java

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

## Cara Menghapus Kata Sandi Dari PPTX melalui Java

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

Muat PPTX dengan contoh Presentasi

Hapus Write Protection menggunakan kelas ProtectionManager

Simpan hasil dalam format PPTX

## Format lain yang Didukung
