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

# Fill Pdf

`POST /api/pdf/fill`

## 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/fill`
- Auth: none declared

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.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)
