CustomJS (PDF & File Toolkit) icon

CustomJS (PDF & File Toolkit)

All-in-one toolkit for PDF, HTML, JSON and file conversions

Convert → HTML to DOCX

AI-generated

Summary

Convert supplied HTML content to a DOCX file through the CustomJS API and attach the generated file to the corresponding n8n item.

Inputs

  • HTML (required) — HTML content to convert.
  • Output Filename — Filename for the generated binary file; defaults to output.docx.

Output shape

One item per input item, preserving its JSON and adding the DOCX as binary property data when a non-empty file is returned.

The output binary uses the configured filename. If the API returns no response or an empty buffer, the item is returned with its original JSON and no binary property.

Links

Discussion