# PdfSecurityOptions Interface

> PdfSecurityOptions interface in the TX Sheet Control TypeScript API for Node.js: AES-256, standard security handler revision 6.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > PdfSecurityOptions Interface
- **404 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/llms-full.txt

---

AES-256, standard security handler revision 6. Settings apply to this export only and never persist in a workbook.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [encryptMetadata](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/encryptmetadata-property/llms-full.txt) | Encrypt XMP metadata as well as document content; defaults to true. |
| [ownerPassword](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/ownerpassword-property/llms-full.txt) | Nonempty password granting unrestricted owner access. Omission generates a random, unrecoverable owner secret. |
| [permissions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/permissions-property/llms-full.txt) | Reader permissions for user access, including opening with the empty user password. |
| [userPassword](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/userpassword-property/llms-full.txt) | Password required to open the PDF; omitted or empty permits opening without a prompt. |

### 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-server';

const pdfSecuritySettings: PdfSecurityOptions = { userPassword: 'Invoice' };
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Exporting Worksheets to PDF](https://docs.textcontrol.com/tx-sheet-control/pdf/export/llms-full.txt)

---

## In This Section

- [PdfSecurityOptions.encryptMetadata Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/encryptmetadata-property/llms-full.txt): PdfSecurityOptions.encryptMetadata property in the TX Sheet Control TypeScript API for Node.js: Encrypt XMP metadata as well as document content.
- [PdfSecurityOptions.ownerPassword Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/ownerpassword-property/llms-full.txt): PdfSecurityOptions.ownerPassword property in the TX Sheet Control TypeScript API for Node.js: Nonempty password granting unrestricted owner access.
- [PdfSecurityOptions.permissions Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/permissions-property/llms-full.txt): PdfSecurityOptions.permissions property in the Node.js TypeScript API: Reader permissions for user access, including opening with the empty user password.
- [PdfSecurityOptions.userPassword Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pdfsecurityoptions/userpassword-property/llms-full.txt): PdfSecurityOptions.userPassword property in the TX Sheet Control TypeScript API for Node.js: Password required to open the PDF.

---

## Nearby

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