Developer Resource

Template Schema Reference

Complete JSON schema specification for creating PDF and Excel document templates. Optimized for AI/LLM systems and programmatic generation.

Quick Reference

Key concepts for template generation

Variables Format
Variables must be a plain JSON array, not wrapped in an object
// CORRECT - Plain array
[
  {
    "name": "customerName",
    "type": "string",
    "defaultValue": "John Doe"
  }
]

// WRONG - Do NOT wrap
{ "variables": [...] }
Template Structure
Templates use sections or pages array at the root level
{
  "outputFormats": ["pdf"],
  "pages": [{
    "pageId": "page-1",
    "sections": [{
      "id": "body",
      "type": "body",
      "components": [...]
    }]
  }]
}
Variable Syntax
Use double curly braces for variable substitution
// Basic
{{customerName}}

// Nested object
{{customer.address.city}}

// Array access
{{items[0].name}}
Component Types
20+ component types for building documents
text
heading
rich-text
image
divider
spacer
container
columns
table-layout
page-break
table
list
key-value
conditional
loop
qr-code
barcode
chart
svg
formula

SVG Rendering

SVG content (charts, barcodes, diagrams) is automatically converted to high-quality PNG images for reliable cross-platform rendering. This ensures consistent display across all PDF viewers and Excel applications.

Security sanitizedHigh resolution (2x)Cross-platform reliable

Who Uses This Schema

The schema reference is designed for multiple use cases

AI
AI/LLM Systems
Feed the schema to ChatGPT, Claude, or Gemini to generate templates from natural language descriptions.
Developers
Build templates programmatically via the API without using the visual designer.
MCP Servers
Use with Model Context Protocol servers to enable AI assistants to generate documents.
Direct Schema URL
Use this URL to fetch the schema programmatically or reference it in AI prompts
https://rynko.dev/llms-templates.txt

This file is included in our sitemap and searchable by search engines.

Ready to Generate Documents?

Create an account, get your API key, and start generating PDF and Excel documents.