# Unlock a password-protected PDF copy

Remove PDF Standard password security with a valid owner password, verify the result is unencrypted, and download a separate unlocked document.

Secure a PDF

[Unlock a PDF in the browser](/browser/unlock-pdf/) [Read the security guide](/docs/pdf/security/)

Unlock summary

**Input**

Protected PDF and owner password

**Output**

Unprotected PDF

**Package**

[OfficeIMO.Pdf on NuGet](https://www.nuget.org/packages/OfficeIMO.Pdf)

**Runs on**

Browser-local WebAssembly or .NET

**Microsoft Office**

Not required

**License**

MIT

A valid owner password is required; OfficeIMO does not bypass or recover unknown credentials.

[Browse all PDF workflows](/pdf/)

Practical steps

## Create an unprotected copy of an encrypted PDF

Authenticate with the owner password, remove Standard security, and verify the separate output.

1. **Select**Choose one Standard-security PDF that you are authorized to unlock.
2. **Authenticate**Enter the owner password required for privileged document changes.
3. **Verify**Create a separate PDF and confirm that the output no longer reports encryption.

Unlocking decrypts an authorized PDF and writes a new document without Standard password security. The browser never overwrites the protected source.

## Unlock from .NET

```csharp
using OfficeIMO.Pdf;

const string ownerPassword = "owner-password";
var readOptions = new PdfLoadOptions { Password = ownerPassword };
PdfDocument source = PdfDocument.Load("statement.protected.pdf", readOptions);

PdfSecurityMutationResult result = source.Security.Decrypt(ownerPassword);
File.WriteAllBytes("statement.unlocked.pdf", result.Pdf);
Console.WriteLine($"Encrypted: {result.IsEncrypted}");
```

The password is required both to open the encrypted content and to authorize removal of security. Keep it out of source, command history, telemetry, and exception messages.

## Authorization boundary

OfficeIMO does not guess, recover, or bypass unknown passwords. If the caller lacks the owner credential or permission to remove protection, the correct result is a blocked workflow rather than a weakened file.

## API used on this page

- [`PdfDocument`](/api/pdf/officeimo-pdf-pdfdocument/)
- [`PdfLoadOptions`](/api/pdf/officeimo-pdf-pdfloadoptions/)
- [`PdfSecurityMutationResult`](/api/pdf/officeimo-pdf-pdfsecuritymutationresult/)

<!-- PowerForge markdown artifact sha256:EAA6DD3876DCF563BAFF60098936D35227069A926C93DE3866F7FE1D2ED028A6 -->
