---
title: "Fill Pdf"
method: POST
path: "/api/pdf/fill"
tags: ["PDF Form Processing"]
---

# Fill Pdf

`POST /api/pdf/fill`

Fill a PDF form with provided values.

Args:
    request: Contains base64-encoded PDF and field values

Returns:
    FillPDFResponse with base64-encoded filled PDF

## Request body

- FillPDFRequest — Request model for PDF filling
  - `pdf_content` string, required
  - `field_values` object, required
  - `flatten` boolean

## Response `200`

Successful Response

- FillPDFResponse — Response model for PDF filling
  - `success` boolean, required
  - `pdf` string, required
  - `fields_filled` integer, required
  - `filename` string, required
  - `error` string, nullable

## 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/b6c76b02a94a/schema)
