---
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`

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 }] }

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/qomplement/apis/fastapi.md) · [All operations](https://skmtc.net/qomplement/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qomplement/fastapi/revisions/718de1c0d866/schema)
