# PDFDocument.text

```ts
get text(): TextApi
```

Read and search the document's text. Both members need the `extract` feature. See [`TextApi`](https://kernstra.com/docs/web-sdk/api/doc-text).

- Kind: getter
- Since: 1.0.0

Returns `TextApi`

```ts
const hits = await doc.text.search('Invoice', { matchCase: true });
```

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