---
title: "Extract text from a PDF (file_base64) line by line with positions and cells, keeping the visual layout"
method: POST
path: "/api/pdf-text-layout"
tags: ["PDF"]
---

# Extract text from a PDF (file_base64) line by line with positions and cells, keeping the visual layout

`POST /api/pdf-text-layout`

## Request

- Base URL: `https://toolsthatdontupload.com`
- URL: `https://toolsthatdontupload.com/api/pdf-text-layout`
- Auth: one of:
  - none
  - API key in header `X-API-Key`

## Request body

- object
  - `file_base64` string, required: PDF, base64-encoded (max 10 MB)
  - `max_pages` integer

## Response `200`

Success (JSON)

## Other responses

- `400`: Invalid input (problem+json)
- `429`: Anonymous daily limit reached (file tier: 20/day per IP)

---

[API](https://skmtc.dev/toolsthatdontupload/apis/tools-that-don-t-upload-api.md) · [All operations](https://skmtc.dev/toolsthatdontupload/apis/tools-that-don-t-upload-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolsthatdontupload/apis/tools-that-don-t-upload-api/revisions/fc4cea318919?raw)
