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 → Convert Html to PDF

AI-generated

Summary

Convert HTML content or an HTML file to a PDF, with configurable page layout and output filename. Choose an input type, provide its corresponding content or source, then set page size, orientation, scale, margins, and print options.

Inputs

  • inputDataType (required) — Select Base64 String, Binary Data, HTML Code, or URL as the source. Base64, raw HTML, and URL use their corresponding fields; Binary Data reads the property named by Binary Property Name.
  • binaryPropertyName (required) — For Binary Data input, the n8n binary property containing the HTML file; defaults to data.
  • base64Content (required) — For Base64 String input, provide the HTML content encoded as base64.
  • htmlCode (required) — For HTML Code input, provide raw HTML; the UI description says it is converted to base64.
  • htmlUrl (required) — For URL input, provide the URL of the HTML file.
  • docName (required) — Source HTML filename, defaulting to document.html.
  • indexFilePath — Index file path for ZIP input, such as index.html.
  • layout (required) — Output PDF orientation: Portrait or Landscape.
  • format (required) — Output PDF page size, from A0–A8 or Executive, Legal, Statement, or Tabloid.
  • scale (required) — Content scaling factor, configurable from 0 to 0.8.
  • topMargin (required) — Top page margin, specified with a unit such as px, cm, or in.
  • bottomMargin (required) — Bottom page margin, specified with a unit such as px, cm, or in.
  • leftMargin (required) — Left page margin, specified with a unit such as px, cm, or in.
  • rightMargin (required) — Right page margin, specified with a unit such as px, cm, or in.
  • printBackground (required) — Whether to print background graphics in the PDF.
  • displayHeaderFooter (required) — Whether to display a header and footer in the PDF.
  • outputFileName — Name for the output PDF file; defaults to output.pdf.
  • binaryDataName — Name for the output binary property; defaults to data.

Output shape

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

The configured Binary Data Output Name specifies the binary property name. The supplied source pack shows the action entry point but omits its implementation body, so further response details are not available.

Links

Discussion