Actions92
- AI Actions
- AI - Universal Document Data Extraction
- AI Auto Crop Document
- AI-Invoice Parser
- AI-Process Bank Cheque
- AI-Process Bank Statement
- AI-Process Contract
- AI-Process HealthCard
- AI-Process Marriage Certificate
- AI-Process Mortgage Document
- AI-Process Order
- AI-Process Pay Stub
- AI-Process Receipt
- AI-Process Shipping Label
- AI-Process Tax Document
- Barcode Actions
- Convert Actions
- Edit Actions
- Extract Actions
- Find Search Actions
- Form Actions
- Generate Actions
- Image Actions
- Invoice Actions
- Merge & Split Actions
- Optimize Compress Actions
- Organize Actions
- PDF Actions
- PDF4me Actions
- Security Actions
- Word Actions
Convert → Convert Html to PDF
AI-generatedSummary
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.