Actions5
- PDF Tools Actions
- Converter Actions
PDF Tools → Compress PDF
AI-generatedSummary
Compress a PDF file by sending its binary content to the ToolingTools BigBoss API, applying a specified compression level, and returning the compressed PDF as a binary output in the workflow.
Inputs
- binaryPropertyName (required) — The name of the input binary property containing the PDF file to compress.
- compressionLevel — The level of compression to apply: 'Extreme (Smallest Size)', 'Recommended (Balanced)', or 'High (Best Quality)'. Defaults to 'Recommended'.
- outputFileName — The filename (without extension) to assign to the resulting compressed PDF file. Defaults to 'output'.
- outputProperty — The name of the binary property in which to store the compressed PDF file output. Defaults to 'data'.
Output shape
a list of items, each containing original JSON and binary data, with the compressed PDF file stored in the specified binary property
The operation processes each input item individually, compressing the PDF binary found in the specified input property. The output includes the compressed PDF in binary format named with the specified output filename and a '.pdf' extension. If compression yields no size reduction, a refund notice is present in JSON under '_refundInfo'. Errors cause the node to fail or continue based on the node's error handling settings.
Examples
Example 1: Compress a PDF file with balanced compression
Set 'binaryPropertyName' to the input binary containing your PDF, choose 'Recommended (Balanced)' for 'compressionLevel', set 'outputFileName' as desired (e.g., 'my-document'), and 'outputProperty' to store the output binary (default 'data'). The node returns compressed PDF binary attached to each item.
