---
title: "Draw a page as a picture"
method: POST
path: "/v1/pdf/render"
tags: ["PDF tools"]
---

# Draw a page as a picture

`POST /v1/pdf/render`

## Request

- Base URL: `https://api.dharun.dev`
- URL: `https://api.dharun.dev/v1/pdf/render`
- Auth: none declared

Returns one page as PNG or JPEG, for previews and thumbnails. Options go in the query string, or as form fields when the file is sent as multipart/form-data.

## Query parameters

- `page` integer
- `width` integer
- `format` 'png' | 'jpeg'

## Response `200`

Success

## Other responses

- `400`: Error
- `404`: Error
- `413`: Error
- `429`: Error

---

[API](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data.md) · [All operations](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/llms.txt) · [OpenAPI document](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/revisions/ecd8b0ec7863?raw)
