This n8n workflow automates the process of converting an HTML document into a PDF file, triggered manually for testing purposes. It starts with a manual trigger, generates a simple HTML document, converts that HTML into a file, then uploads it to an external conversion API (ConvertAPI) to produce a PDF version. The final output is a downloadable PDF saved locally.
The workflow includes key nodes such as a manual trigger, a ‘Set’ node to create static HTML content, a ‘Code’ node to convert HTML text into a file object, and an ‘HTTP Request’ node that calls ConvertAPI’s HTML-to-PDF endpoint. After conversion, the generated PDF is saved to local disk as a file.
This setup is ideal for testing document conversion capabilities or automating PDF creation from HTML content, such as generating downloadable reports or documents from web templates.
