HTML to PDF Converter
AI-generatedSummary
Convert HTML content from a string or URL into a formatted PDF file, returning the PDF data in binary or base64 format.
Inputs
- HTML Source (required) — Select whether the HTML content comes from a raw HTML string or a URL to fetch.
- HTML Content (required) — The raw HTML string to convert to PDF (required if HTML Source is 'HTML String').
- URL (required) — The URL of the webpage to fetch and convert to PDF (required if HTML Source is 'URL').
- Output Format (required) — Choose to output the PDF as binary data or a base64 encoded string.
- File Name (required) — Name to assign to the output PDF file.
- Page Format — Select the paper size of the PDF: A4, A3, Letter, Legal, or Tabloid.
- Margin — JSON specifying the top, right, bottom, and left page margins; defaults to 10mm on all sides.
- Print Background — Whether to include background graphics in the PDF (default true).
- Landscape — Whether to orient the PDF in landscape mode (default false).
- Wait for Network Idle — Whether to wait for all network requests to finish before generating the PDF (default true).
Output shape
a list of items each containing JSON metadata with the PDF generation result and either binary data or a base64 string of the PDF file
Each output item corresponds to an input item: it contains success status, file name, file size, and depending on Output Format either binary PDF data or a base64-encoded PDF string. On failure, includes an error message if 'Continue On Fail' is enabled; otherwise, the node execution fails.