# PDFDocument.security

```ts
get security(): SecurityApi
```

Encryption and permissions. `protect()` and `removeProtection()` need the `export` feature. See [`SecurityApi`](https://kernstra.com/docs/web-sdk/api/doc-security).

- Kind: getter
- Since: 1.0.0

Returns `SecurityApi`

```ts
if (doc.security.isEncrypted) console.log(doc.security.permissions);
```

Part of [PDFDocument](https://kernstra.com/docs/web-sdk/api/pdfdocument) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/pdfdocument/security
