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

Find Search → Find and Replace Text

AI-generated

Summary

Finds the specified old text in a PDF and replaces it with new text, optionally limiting the operation to selected pages. Provide the PDF as incoming binary data, base64 content, or a URL; the operation returns the processed PDF as binary data.

Inputs

  • PDF Input Data Type (required) — Choose Binary Data, Base64 String, or URL as the PDF source.
  • PDF Binary Field (required) — For Binary Data input, name the incoming binary property containing the PDF; defaults to data.
  • PDF Base64 Content (required) — For Base64 String input, provide the PDF content encoded as base64.
  • PDF URL (required) — For URL input, provide the PDF's URL.
  • Old Text (required) — Text to find in the PDF.
  • New Text (required) — Replacement text.
  • Page Sequence — Page indices or ranges to process, such as 1, 2, 3-7; leave empty to process all pages.
  • Output File Name — Name for the output PDF; defaults to find_and_replace_output.pdf.
  • Async — Whether to enable asynchronous processing; defaults to true.
  • Binary Data Output Name — Name for the output binary property; defaults to data.

Output shape

A PDF returned as binary data in an n8n item.

The output binary property name is configurable with Binary Data Output Name. The source pack exposes only the operation's function signature, so further response details are not available.

Examples

Example 1: Replace text in a PDF arriving from a previous node

Choose Binary Data, set the PDF Binary Field to the incoming property (default data), enter Old Text and New Text, and optionally specify pages.

Example 2: Replace text in a PDF provided directly

Choose Base64 String or URL and provide the corresponding PDF source, then enter Old Text and New Text.

Links

Discussion