---
title: "Render Pdf"
method: POST
path: "/pdf-generator/render"
tags: ["PDF Generator"]
---

# Render Pdf

`POST /pdf-generator/render`

Pass a html template, optionally a header and footer template, and pdf options to retrieve a rendered PDF.

## Request body

- RenderPDFRequest
  - `template_html` string, required
  - `header_template` string, nullable
  - `footer_template` string, nullable
  - `pdf` PDFOptions
    - `format` 'a0' | 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'a6'
    - `orientation` 'landscape' | 'portrait'
    - `scale` number
    - `margin` Margin
      - `top` string, nullable
      - `bottom` string, nullable
      - `left` string, nullable
      - `right` string, nullable
  - `presigned_upload` PresignedUploadRequest
    - `url` string, uri, required
    - `method` 'PUT' | 'POST'

## Response `200`

Retrieve the rendered PDF.

- unknown

## Other responses

- `408` — Timeout while rendering the PDF
- `426` — Free tier quota exceeded for the month
- `4XX` — Client Error
- `5XX` — Server Error

---

[API](https://skmtc.net/doqs/apis/doqs-dev-pdf-filling-api.md) · [All operations](https://skmtc.net/doqs/apis/doqs-dev-pdf-filling-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/doqs/doqs-dev-pdf-filling-api/revisions/bb4541a9e80e/schema)
