rendly

n8n node for Rendly - Convert HTML to PDF in your workflows

Package Information

Released: 11 mo ago
Downloads: 3 weekly / 11 monthly
Latest Version: 1.0.0
Author: Rendly

Documentation

n8n-nodes-rendly

This is an n8n community node that lets you use Rendly in your n8n workflows.

Rendly is a powerful HTML-to-PDF conversion service that allows you to generate high-quality PDF documents from HTML content or templates.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

Via npm

npm install n8n-nodes-rendly

Via n8n UI

  1. Go to Settings > Community Nodes
  2. Click Install
  3. Enter n8n-nodes-rendly
  4. Agree to the risks and click Install

Prerequisites

You need a Rendly account and API key. Get one at rendly.cloud.

Credentials

To use this node, you'll need to configure Rendly API credentials:

  1. API URL: Your Rendly API base URL (default: https://api.rendly.cloud)
  2. API Key: Your Rendly API key from your dashboard

Operations

The Rendly node supports three operations:

Convert HTML

Convert raw HTML content to a PDF document.

Parameters:

  • HTML Content (required): The HTML content to convert
  • Options:
    • Page Format (A4, A3, A5, Letter, Legal, Tabloid)
    • Orientation (Portrait/Landscape)
    • Print Background Graphics
    • Scale (0.1 - 2.0)
    • Margins (Top, Right, Bottom, Left)
    • Header/Footer Templates
    • Wait for Network Idle
    • Wait Time
    • Custom CSS
    • Output Filename

Example:

<html>
  <body>
    <h1>Invoice #{{$json.invoiceNumber}}</h1>
    <p>Amount: ${{$json.amount}}</p>
  </body>
</html>

Convert with Template

Use a predefined Rendly template to generate PDFs with variable substitution.

Parameters:

  • Template ID (required): The ID of your Rendly template
  • Variables: JSON object with template variables
  • Options: Same as Convert HTML

Example Variables:

{
  "customerName": "John Doe",
  "invoiceNumber": "INV-001",
  "amount": 1000,
  "items": [
    { "name": "Product A", "price": 500 },
    { "name": "Product B", "price": 500 }
  ]
}

Get Status

Check the status of a conversion job (for async operations).

Parameters:

  • Job ID (required): The ID of the conversion job

Example Workflows

1. Generate Invoice from Webhook

Webhook → Set Variables → Rendly (Template) → Send Email

This workflow:

  1. Receives invoice data via webhook
  2. Formats the data
  3. Generates PDF using template
  4. Emails the PDF to the customer

2. Batch Report Generation

Database → Loop → Rendly (HTML) → Google Drive

This workflow:

  1. Fetches records from database
  2. Loops through each record
  3. Generates PDF for each record
  4. Uploads to Google Drive

3. Dynamic Certificate Generator

Google Sheets → Function → Rendly (Template) → Slack

This workflow:

  1. Reads participant list from Google Sheets
  2. Formats data for each participant
  3. Generates certificates using template
  4. Sends notification to Slack

Tips

Using Dynamic Variables

You can use n8n expressions in the HTML content:

<h1>Hello {{$json.name}}</h1>
<p>Your order #{{$json.orderId}} is ready!</p>

Custom Styling

Add custom CSS through the options:

body {
  font-family: 'Helvetica', Arial, sans-serif;
  color: #333;
}
.header {
  background-color: #4CAF50;
  color: white;
  padding: 20px;
}

Page Numbers

Use header/footer templates for page numbers:

<div style="font-size: 10px; text-align: center;">
  Page <span class="pageNumber"></span> of <span class="totalPages"></span>
</div>

Handling Images

For best results, use absolute URLs for images:

<img src="https://example.com/logo.png" alt="Logo">

Troubleshooting

Authentication Failed

  • Verify your API key is correct
  • Check that your API URL is correct (default: https://api.rendly.cloud)
  • Ensure your API key hasn't expired

PDF Not Generated

  • Check that your HTML is valid
  • Verify all image URLs are accessible
  • Review the wait time settings if using dynamic content
  • Check the n8n logs for detailed error messages

Binary Data Issues

  • Ensure you're using the binary data in subsequent nodes correctly
  • Use the "Binary Data" tab in the node UI to preview the PDF
  • For email nodes, select "Binary Property" as attachment type

Compatibility

  • Requires n8n version 0.150.0 or higher
  • Tested with n8n Cloud and self-hosted instances
  • Works with all n8n plans

Resources

License

MIT

Version History

1.0.0

  • Initial release
  • Convert HTML to PDF
  • Convert with Templates
  • Get Job Status
  • Full options support

Support

For issues, questions, or feature requests:

Discussion