pictify_render_pdf
Generate PDF documents from templates with variable data for invoices, certificates, receipts, contracts, and reports. Programmatically create professional documents by substituting template variables with your data.
Instructions
Generate a single-page PDF from a saved template with variable substitutions. Common use cases: invoices, certificates, receipts, contracts, reports, event tickets, shipping labels, and any document that needs to be generated programmatically. WORKFLOW: Call pictify_get_template_variables first to discover available variables and their types, then call this tool with the appropriate variable values. Supports standard page sizes (A4, Letter, Legal, etc.) — use pictify_list_pdf_presets to see all options. Returns the hosted PDF URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | The template UID to render as a PDF. Use pictify_list_templates to find available templates. | |
| variables | No | Template variables as key-value pairs (e.g., { title: 'Invoice #001', amount: '$1,000', date: '2024-03-09' }). Use pictify_get_template_variables to discover available variable names and types. | |
| preset | No | PDF page size preset (e.g., 'A4', 'Letter', 'Legal'). Use pictify_list_pdf_presets to see all available presets with their dimensions. If not specified, uses the template's default dimensions. | |
| title | No | PDF document title metadata — appears in the browser tab when the PDF is opened |