> ## Documentation Index
> Fetch the complete documentation index at: https://developers.gonitro.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Compress PDF

> Reduce the file size of a PDF inside a Zap with the Nitro PDF Services app.

Reduces the file size of a PDF while preserving its content and formatting. Compress always
targets the smallest output; to trade size against quality, use **Optimize PDF** and its profile.

## Inputs

| Field | Required | Description |
| - | - | - |
| **PDF File** | Yes | The PDF to compress. A file object or a file URL from an earlier step. |
| **Output Type** | Yes | *Download file* (default) or *Download URL*. |

## Outputs

<Tabs>
  <Tab title="Download file">
    | Field | Description |
    | - | - |
    | **Compressed PDF File** | The compressed PDF, ready for any file-accepting field |
  </Tab>

  <Tab title="Download URL">
    | Field | Description |
    | - | - |
    | **Compressed PDF URL** | Download URL, valid for about 15 minutes |
    | **Content Type** | `application/pdf` |
    | **File Size (bytes)** | Size of the compressed file |
    | **Page Count** | Pages in the output |

    Compare **File Size (bytes)** against the original to report how much was saved.
  </Tab>
</Tabs>

## Example Zap

Compress every PDF added to a Dropbox folder and file the smaller copy elsewhere.

<Steps>
  <Step title="Dropbox — New File in Folder">
    Watch an `/inbox` folder.
  </Step>

  <Step title="Filter by Zapier">
    Only continue if the file name **ends with** `.pdf`.
  </Step>

  <Step title="Nitro PDF Services — Compress PDF">
    * **PDF File** → the trigger's file.
    * **Output Type** → *Download file*.
  </Step>

  <Step title="Dropbox — Upload File">
    * **File** → **Compressed PDF File**.
    * **Folder** → `/compressed`, not the folder the trigger watches.
  </Step>
</Steps>

<Warning>
  Uploading back into the trigger's own folder will loop. Use a different folder or filter the Zap's
  own output out.
</Warning>

## Related

* [Optimize PDF](/docs/integrations/zapier/actions) — choose a profile instead of always-smallest
* [Actions](/docs/integrations/zapier/actions) — the full action list
* [Limits and errors](/docs/integrations/zapier/limits-and-errors)
