---
title: "Extract Schema From Pdf"
method: POST
path: "/api/pdf/extract-schema"
tags: ["PDF Form Processing"]
---

# Extract Schema From Pdf

`POST /api/pdf/extract-schema`

## Request

- Base URL: `https://api.qomplement.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qomplement.com/api/pdf/extract-schema`
- Auth: none declared

Extract an extraction schema from a fillable PDF form's AcroForm fields.
Converts PDF form fields directly to schema format, then optionally
enriches with AI for better descriptions.

Returns the same format as /api/excel/extract-schema:
{ success: bool, fields: [{ name, type, required, description }] }

## Request body `multipart/form-data`

- BodyExtractSchemaFromPdfApiPdfExtractSchemaPost
  - `file` string, binary, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
