# PdfSecurityOptions.ownerPassword Property

> PdfSecurityOptions.ownerPassword property in the TX Sheet Control TypeScript API for the browser: Nonempty password granting unrestricted owner access.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > PdfSecurityOptions > PdfSecurityOptions.ownerPassword Property
- **357 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfsecurityoptions/ownerpassword-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfsecurityoptions/ownerpassword-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfsecurityoptions/ownerpassword-property/llms-full.txt

---

Nonempty password granting unrestricted owner access. Omission generates a random, unrecoverable owner secret.

Owner: [PdfSecurityOptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfsecurityoptions/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```typescript
ownerPassword?: string | undefined
```

Read through the owning object: `owner.ownerPassword`. Follow the declared mutability and owning object lifetime.

### Examples

Configure PdfSecurityOptions for an invoice or sales-report workflow. Supply font and document resources from the application where the example accepts them as inputs.

```typescript
import type { PdfSecurityOptions } from '@txtextcontrol/tx-sheet-control';

const pdfSecuritySettings: PdfSecurityOptions = { userPassword: 'Invoice', ownerPassword: 'Invoice' };
console.log(pdfSecuritySettings['ownerPassword']);
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [PdfSecurityOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfsecurityoptions/llms-full.txt)
- [Exporting Worksheets to PDF](https://docs.textcontrol.com/tx-sheet-control/pdf/export/llms-full.txt)

---

## Nearby

- **Previous:** [PdfSecurityOptions.encryptMetadata Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfsecurityoptions/encryptmetadata-property/llms-full.txt)
- **Next:** [PdfSecurityOptions.permissions Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/pdfsecurityoptions/permissions-property/llms-full.txt)
