n8n-nodes-rendly
v1.0.0
Published
n8n node for Rendly - Convert HTML to PDF in your workflows
Downloads
9
Maintainers
Readme
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-rendlyVia n8n UI
- Go to Settings > Community Nodes
- Click Install
- Enter
n8n-nodes-rendly - 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:
- API URL: Your Rendly API base URL (default:
https://api.rendly.cloud) - 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 EmailThis workflow:
- Receives invoice data via webhook
- Formats the data
- Generates PDF using template
- Emails the PDF to the customer
2. Batch Report Generation
Database → Loop → Rendly (HTML) → Google DriveThis workflow:
- Fetches records from database
- Loops through each record
- Generates PDF for each record
- Uploads to Google Drive
3. Dynamic Certificate Generator
Google Sheets → Function → Rendly (Template) → SlackThis workflow:
- Reads participant list from Google Sheets
- Formats data for each participant
- Generates certificates using template
- 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
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:
- GitHub: github.com/yourusername/n8n-nodes-rendly
- Email: [email protected]
- n8n Community Forum: Tag @rendly
