---
title: "Make a PDF smaller"
method: POST
path: "/v1/pdf/compress"
tags: ["PDF tools"]
---

# Make a PDF smaller

`POST /v1/pdf/compress`

## Request

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

Removes duplicate fonts and images and packs the file's structure. Pictures are not re-compressed, so a scanned PDF shrinks little. The original size is in the X-Original-Bytes header; when nothing was gained, the original comes back.

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