PDFPipe icon

PDFPipe

Render HTML or URLs to pixel-perfect PDFs using PDFPipe

Render URL

AI-generated

Summary

Render a web page at the supplied URL as a PDF using PDFPipe. Configure page layout, rendering waits, and optional PDF features; choose whether to return PDF binary data or store the document and return its metadata.

Inputs

  • URL (required) — Full page URL to render; must not be empty.
  • Format — Paper size: A4 (default), Letter, A3, A5, Legal, or Tabloid.
  • Landscape — Render in landscape orientation; defaults to false.
  • Print Background — Include background graphics and colors; defaults to true.
  • Margin — Page margin, such as 1cm; defaults to 1cm.
  • Header HTML — Optional running page header HTML. Supports pageNumber, totalPages, date, title, and url substitution classes.
  • Footer HTML — Optional running page footer HTML, with the same substitution classes as Header HTML.
  • Tabular Numbers — Force consistent digit widths in the PDF; defaults to false.
  • Deduplicate Images — Merge identical image objects in the PDF; defaults to false.
  • PDF/A — Add best-effort PDF/A-1b XMP metadata; defaults to false.
  • Store Document — Store the rendered PDF for later retrieval; defaults to false.
  • Filename — Optional custom filename when storing the document. This field appears when Store Document is enabled.
  • Password — Optional password to protect the PDF.
  • Scale — Render scale from 0.1 to 2; defaults to 1.
  • Page Ranges — Pages to keep, such as 1-3, 5; leave empty to keep all pages.
  • Prefer CSS Page Size — Use the document's CSS @page size and margins instead of the configured Format and Margin; defaults to false.
  • CSS Media Type — Emulate print (default) or screen CSS media.
  • Inject CSS — Optional CSS to apply after the page loads.
  • Wait Until — Navigation readiness condition: DOM Content Loaded, Load, Network Idle (0 Connections, default), or Network Idle (2 Connections).
  • Wait for Selector — Optional CSS selector to wait for before rendering; the operation fails if it does not appear within the timeout.
  • Extra Wait (Ms) — Additional fixed delay before rendering, from 0 to 5000 ms; defaults to 0.
  • Timeout (Ms) — Render timeout from 1000 to 60000 ms; defaults to 30000.

Output shape

One n8n item per input item.

With Store Document disabled, each item contains the PDF as binary data under data and JSON with its filename (defaults to document.pdf). With Store Document enabled, each item contains the API's JSON response, including stored-document details. API failures are raised as item-scoped errors.

Links

Discussion