Converting HTML to PNG via PDF in n8n Workflow

somdn_product_page

This n8n workflow demonstrates an automated process to convert HTML content into a PNG image through an intermediate PDF step. It is triggered manually for testing purposes. The workflow starts with a manual trigger, then converts a simple HTML snippet into a PDF document using a custom JavaScript node integrated with a PDF toolkit. Next, it fetches or sets a PDF URL, which is then processed to generate PNG images of the PDF pages. Sticky notes are used within the workflow to visually guide users through each step, highlighting the core tasks: HTML to PDF conversion and PDF-to-PNG rendering. This automation is useful for generating image previews of HTML content or PDFs, which can be used in websites, reports, or dashboards without manual intervention.

Node Count

6 – 10 Nodes

Nodes Used

@custom-js/n8n-nodes-pdf-toolkit.html2Pdf, @custom-js/n8n-nodes-pdf-toolkit.PdfToPng, code, manualTrigger, stickyNote

Reviews

There are no reviews yet.

Be the first to review “Converting HTML to PNG via PDF in n8n Workflow”

Your email address will not be published. Required fields are marked *