Placid icon

Placid

Generate images, PDFs, and videos via Placid's API

Actions16

PDF → Create

AI-generated

Overview

This node creates PDFs using the Placid API. It supports two configuration modes: Simple and Advanced. In Simple mode, users select a single-page PDF template and customize its layers with various properties such as text content, colors, images, visibility, and links. In Advanced mode, users define multiple pages as a JSON array, each with its own template and layer configurations. This node is useful for generating customized PDFs dynamically, such as invoices, reports, or marketing materials, by filling templates with specific data.

Use Case Examples

  1. Generate a single-page PDF invoice by selecting a template and filling in customer details and amounts in the layers.
  2. Create a multi-page PDF report by defining each page's template and content in a JSON array for complex documents.

Properties

Name Meaning
Configuration Mode Choose how to configure the PDF generation, either Simple (single-page with template and form fields) or Advanced (multi-page using JSON array).
Template Select the Placid template to use for PDF generation (required in Simple mode).
Layers In Simple mode, specify the layers to modify on the selected template, including layer name, property to set (e.g., text, color, visibility), and the corresponding value.
Pages (JSON) In Advanced mode, define all pages as a JSON array, each with a template UUID and layers object to customize content per page.
Additional Options Optional fields such as webhook success URL to receive the generated PDF and passthrough data to include custom data in webhook responses.

Output

JSON

  • pdfUrl - URL of the generated PDF file.
  • webhookResponse - Response data from the webhook if a webhook URL is provided.
  • passthroughData - Custom passthrough data included in webhook responses and requests.

Dependencies

  • Placid API key credential for authentication with the Placid service.

Troubleshooting

  • Ensure the selected template ID is valid and accessible in your Placid account.
  • Verify that the layers specified in Simple mode exist in the chosen template and that property names and values are correctly set.
  • In Advanced mode, ensure the JSON array is properly formatted with valid template UUIDs and layer configurations.
  • If using webhook URLs, confirm the webhook endpoint is reachable and correctly configured to receive PDF data.
  • Common errors include unsupported resource or operation errors if resource or operation parameters are incorrect.

Links

Discussion