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 Page Number to PDF

AI-generated

Summary

Add page numbers to a PDF using PDF4me, with configurable placement and text styling. Supply the PDF as incoming binary data, a base64 string, or a URL, then choose the output filename and binary field name.

Inputs

  • Input Data Type (required) — Choose Binary Data, Base64 String, or URL as the PDF source.
  • Input Binary Field (required) — For Binary Data input, the name of the incoming binary property; defaults to data.
  • Base64 PDF Content (required) — For Base64 String input, the PDF document content encoded as base64.
  • PDF URL (required) — For URL input, the address of the PDF file.
  • Output File Name — Name for the processed PDF; defaults to document_with_page_numbers.pdf.
  • Document Name — Source PDF name for reference; defaults to document.pdf.
  • Horizontal Alignment — Place page numbers left, center, or right; defaults to right.
  • Vertical Alignment — Place page numbers at the top, middle, or bottom; defaults to bottom.
  • Horizontal Margin (Mm) — Horizontal margin in millimeters, from 0 to 100; defaults to 2.
  • Vertical Margin (Mm) — Vertical margin in millimeters, from 0 to 100; defaults to 2.
  • Font Size — Page number font size, from 8 to 72; defaults to 12.
  • Set Bold — Whether page numbers are bold; defaults to true.
  • Set Italic — Whether page numbers are italic; defaults to false.
  • Skip First Page — Whether to leave the first page unnumbered; defaults to false.
  • Advanced Options: Custom Profiles — Optional JSON for additional PDF4me API profile properties.
  • Binary Data Output Name — Name of the output binary property; defaults to data.

Output shape

A processed PDF returned as binary data in an n8n item.

The operation-specific source implementation is not included beyond its signature in the provided source pack, so output details are based on the declared output binary name and PDF operation properties.

Examples

Example 1: Add page numbers to a PDF arriving from a previous node

Set Input Data Type to Binary Data, provide its binary field name, configure placement and styling as needed, and set an output filename.

Links

Discussion