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

Edit → Add Margin to PDF

AI-generated

Summary

Add margins to a PDF through PDF4me, using a PDF supplied as binary data, a Base64 string, or a URL. Configure the margins in millimeters and choose an output filename and binary property name.

Inputs

  • Input Data Type (required) — Choose Binary Data, Base64 String, or URL as the PDF source.
  • Input Binary Field (required) — For Binary Data, name the incoming binary property containing the PDF. Defaults to data.
  • Base64 PDF Content (required) — For Base64 String, provide the PDF content encoded as Base64.
  • PDF URL (required) — For URL, provide the PDF's URL.
  • Output File Name — Name the output PDF; defaults to document_with_margins.pdf.
  • Document Name — Source PDF name for reference; defaults to document.pdf.
  • Left Margin (Mm) — Left margin in millimeters; declared range is 0–100 and default is 20.
  • Right Margin (Mm) — Right margin in millimeters; declared range is 0–100 and default is 20.
  • Top Margin (Mm) — Top margin in millimeters; declared range is 0–100 and default is 25.
  • Bottom Margin (Mm) — Bottom margin in millimeters; declared range is 0–100 and default is 25.
  • Custom Profiles — Optional JSON properties for the API request, configured under Advanced Options.
  • Binary Data Output Name — Name for the output binary property; defaults to data.

Output shape

A PDF file with the configured margins, returned as binary data.

Source pack provides no implementation details for this operation beyond its execute function signature, so the returned binary property behavior is not confirmed by the source. Input fields are conditional on the selected input type.

Links

Discussion