---
search:
  tags:
    - Documents
    - POST
seo:
  description: >-
    Re-encodes embedded images to JPEG via the convert-worker PDF engines
    (qpdf/pdfcpu —… Reference for the POST /documents/pdf/compress endpoint in
    the Seal API.
sidebar:
  label: Compress a draft PDF in place
  badge: POST
title: Compress a draft PDF in place
type: openapi-operation
---
Re-encodes embedded images to JPEG via the convert-worker PDF engines (qpdf/pdfcpu — not Seal AI). Text, vectors, fonts, and structure are untouched; the engine never enlarges the file. Fields are unaffected. Honours the org `egress.allow_convert` gate since bytes leave the API worker for the conversion container.

`POST /documents/pdf/compress`
