---
title: "Convert an HTML document to PDF (A4/Letter, landscape) with Korean font support. Returns file_base64"
method: POST
path: "/api/html-to-pdf"
tags: ["PDF"]
---

# Convert an HTML document to PDF (A4/Letter, landscape) with Korean font support. Returns file_base64

`POST /api/html-to-pdf`

## Request

- Base URL: `https://toolsthatdontupload.com`
- URL: `https://toolsthatdontupload.com/api/html-to-pdf`
- Auth: one of:
  - none
  - API key in header `X-API-Key`

## Request body

- object
  - `html` string, required: HTML document (max 2 MB). Scripts are removed; external URLs are not loaded.
  - `format` 'A4' | 'A3' | 'A5' | 'Letter' | 'Legal'
  - `landscape` boolean
  - `filename` string

## Response `200`

PDF file (application/pdf)

## Other responses

- `400`: Invalid input (problem+json)
- `429`: Anonymous daily limit reached (file tier: 20/day per IP)

---

[API](https://skmtc.dev/toolsthatdontupload/apis/tools-that-don-t-upload-api.md) · [All operations](https://skmtc.dev/toolsthatdontupload/apis/tools-that-don-t-upload-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolsthatdontupload/apis/tools-that-don-t-upload-api/revisions/fc4cea318919?raw)
