Convert with Template
AI-generatedOverview
This node converts HTML content or Rendly templates into PDF documents. It supports converting raw HTML or using predefined templates with variables, allowing users to generate customized PDFs. Common use cases include generating invoices, reports, or any document that requires HTML-to-PDF conversion with optional styling and layout options.
Use Case Examples
- Convert raw HTML content to a PDF invoice with custom margins and header/footer templates.
- Generate a PDF report using a Rendly template by passing dynamic variables like customer name and amount.
- Check the status of a PDF conversion job by providing the job ID.
Properties
| Name | Meaning |
|---|---|
| Template ID | The ID of the Rendly template to use for conversion. |
| Variables | JSON object containing variables to pass to the template for dynamic content replacement. |
| Options | Collection of PDF rendering options such as page format, orientation, margins, header/footer templates, wait times, custom CSS, and output filename. |
Output
Binary
PDF file data encoded in base64 format.
JSON
filename- Name of the generated PDF file.templateId- ID of the template used for conversion (only for template conversion).size- Size of the generated PDF file in bytes.mimeType- MIME type of the output file, always 'application/pdf'.
Dependencies
- Rendly API accessed via an API key credential
Troubleshooting
- Invalid JSON in variables property will cause an error; ensure the JSON is correctly formatted.
- Authentication errors indicate invalid or missing API key credentials; verify API key configuration.
- Rate limit errors occur if too many requests are sent in a short time; wait and retry later.
- Invalid request errors suggest incorrect or missing input parameters; review and correct inputs.
Links
- Rendly API Documentation - Official documentation for the Rendly API used for HTML to PDF conversion.