PDF4me icon

PDF4me

PDF4me for n8n automates document workflows: AI-powered parsing, classification, and data extraction, plus PDF conversion, generation, merge/split, editing, forms, stamps, signatures, OCR, barcodes and Swiss QR, invoices, image processing, security, and Word tools.

Actions92

Optimize Compress → Compress PDF

AI-generated

Summary

Compresses a PDF with pdf4me using the selected optimization profile and returns the compressed file as binary data.

Inputs

  • Input Data Type (required) — Choose Binary Data, Base64 String, or URL as the PDF source.
  • Input Binary Field (required) — For Binary Data input, name the incoming binary property containing the PDF. Defaults to data.
  • Base64 PDF Content (required) — For Base64 String input, provide the PDF content encoded as base64.
  • PDF URL (required) — For URL input, provide the URL of the PDF to compress.
  • Output File Name — Name for the compressed PDF file; defaults to compress_PDF_output.pdf.
  • Optimize Profile — Choose the compression profile: Compress, CompressMax, Default, Max, Print, PrintGray, PrintMax, Web, or WebMax. Defaults to Web.
  • Binary Data Output Name — Name of the binary property in the n8n output; defaults to data.

Output shape

A single item containing the compressed PDF as binary data.

The input fields for binary, base64, and URL sources are shown conditionally based on Input Data Type.

Links

Discussion