---
title: "Extract text from a PDF"
method: POST
path: "/api/pdf-tools/extract-text"
tags: ["PDF Tools"]
---

# Extract text from a PDF

`POST /api/pdf-tools/extract-text`

## Request

- Base URL: `https://api.dokmatiq.com`
- URL: `https://api.dokmatiq.com/api/pdf-tools/extract-text`
- Auth: API key in header `X-API-Key`

Extract all text content from a Base64-encoded PDF. Use /extract for page extraction into a new PDF.

## Request body

- object

## Response `200`

Extracted text

---

[API](https://skmtc.dev/dokmatiq/apis/docgen-api.md) · [All operations](https://skmtc.dev/dokmatiq/apis/docgen-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dokmatiq/apis/docgen-api/revisions/3fa1a922764d?raw)
