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

Convert → Flatten PDF

AI-generated

Summary

Flattens a PDF through PDF4me, converting selected annotations, signatures, form fields, interactive elements, or layers into static PDF content. Supply the file as binary data, a base64 string, or a URL; the result is returned as a PDF binary output.

Inputs

  • Input Data Type (required) — Choose Binary Data (the PDF in the specified Input Binary Field, default data), Base64 String (Base64 PDF content), or URL (PDF URL).
  • Output File Name — Filename for the flattened PDF; defaults to flattened_document.pdf.
  • Document Name — Source PDF name for reference; defaults to document.pdf.
  • Flattening Options — Optional toggles, each defaulting to true: flatten annotations, digital signatures, form fields, interactive elements, and layers.
  • Advanced Options — Optional custom profiles for extra API properties; the field description points to PDF4me profile documentation.
  • Binary Data Output Name — Name of the binary property in n8n output; defaults to data.

Output shape

A single item containing the flattened PDF as binary data.

The output binary property name is configurable. Runtime response details are not visible in the supplied signature-level source pack.

Examples

Example 1: Flatten a PDF from an upstream node

Select Binary Data and set Input Binary Field to the upstream PDF binary property, then choose which PDF elements to flatten.

Links

Discussion