Convert HTML to PDF

Issue Description:

I am currently facing a challenge in converting an HTML template to a PDF and could use some guidance from the community.

Details:

  • HTML Template:
    My HTML template is a PDF of a proposal. I got the data from my PostgresDB and populated it in the HTML template. HTML generate is perfect.

Challenge:

I am looking for the most suitable solution to convert my HTML template to a PDF format. Despite exploring different options, I haven’t found a solution that meets my requirements.

Request:

I would appreciate any suggestions, recommendations, or insights from the community on effective methods or tools for converting HTML to PDF.

Thank you in advance for your assistance! Your insights are highly valued.

1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
1 Like

I am using n8n cloud. The database I am using is Podtgres that his hosted by Supabase.

@rafay_javed , you can utilize APITemplate.io - HTML to PDF service with APITemplate.io node.

2 Likes

@rafay_javed You can try this nicely explained by our community member method here https://www.youtube.com/watch?v=bo15xdjXf1Y as well.

7 Likes

You can even try PDFMunk’s HTML to PDF Note: HTML to PDF integrations | Workflow automation with n8n

Super seamless - without having to deal with HTTP Nodes or API requests.

This is a perfect use case for the official PDF Generator API node, which is available directly in n8n.

It has a dedicated action called HTML to PDF designed for this exact challenge. You can simply take your populated HTML template (which you’ve already generated) and pass it to this action, and it will handle the conversion for you.

It’s a robust, scalable solution that is great at processing complex HTML/CSS, including images and visual layouts, ensuring your generated PDF looks just like your HTML.

For more information check out PDF Generator API integration

2 Likes

If you need an easy solution to convert your HTML template into a clean, ready-to-share PDF, the BitRecover HTML Converter is a great fit for you. It is designed specifically to take any HTML file and convert it directly into PDF format without breaking layout, styling, or embedded content. I will recommend you try this tool once, as it also provides a free trial to its users.