# PDFDocument.hasPassword

```ts
get hasPassword(): boolean
```

Whether the document was opened with a password.

- Kind: getter
- Since: 1.0.0

Returns `boolean`

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/haspassword
