Document Generation Examples
This page provides comprehensive examples of different document types you can generate using our API. Each example includes a complete JSON configuration and demonstrates various features and styling options.
Business Report
JSON Configuration
{
"document": {
"type": "pdf",
"filename": "quarterly-business-report",
"title": "Q4 2024 Business Report",
"author": "Business Intelligence Team",
"subject": "Quarterly performance analysis and strategic insights",
"keywords": ["business", "report", "Q4", "2024", "performance"],
"size": "A4",
"orientation": "portrait",
"marginTop": 2.54,
"marginRight": 2.54,
"marginBottom": 2.54,
"marginLeft": 2.54
},
"variables": {
"companyName": "TechCorp Solutions",
"quarter": "Q4",
"year": "2024",
"ceoName": "Sarah Johnson",
"reportDate": "January 15, 2025"
},
"defaults": {
"fontFamily": "Arial",
"fontSize": 11,
"color": "#333333",
"lineHeight": 1.5,
"spacing": {
"before": {
"h1": 24, "h2": 18, "h3": 14,
"text": 0, "table": 15, "list": 10, "image": 15
},
"after": {
"h1": 18, "h2": 14, "h3": 10,
"text": 12, "table": 15, "list": 10, "image": 15
}
},
"styles": {
"h1": {
"fontSize": 28,
"fontWeight": "bold",
"color": "#1a365d",
"align": "center"
},
"h2": {
"fontSize": 22,
"fontWeight": "bold",
"color": "#2d3748"
},
"h3": {
"fontSize": 16,
"fontWeight": "bold",
"color": "#4a5568"
}
}
},
"sections": [
{
"type": "page",
"content": [
{
"type": "h1",
"text": "{{quarter}} {{year}} Business Report"
},
{
"type": "text",
"text": "{{companyName}}",
"align": "center",
"fontSize": 18,
"color": "#666666",
"spacing": {
"before": 10,
"after": 30
}
},
{
"type": "h2",
"text": "Executive Summary"
},
{
"type": "text",
"text": "This quarterly report provides a comprehensive overview of {{companyName}}'s performance during {{quarter}} {{year}}. Our analysis covers key financial metrics, operational achievements, market position, and strategic initiatives that have shaped our business trajectory."
},
{
"type": "h2",
"text": "Financial Performance"
},
{
"type": "table",
"headers": ["Metric", "{{quarter}} {{year}}", "Previous Quarter", "Change"],
"rows": [
["Revenue", "$2.4M", "$2.1M", "+14.3%"],
["Gross Profit", "$1.6M", "$1.4M", "+14.3%"],
["Operating Expenses", "$1.2M", "$1.1M", "+9.1%"],
["Net Income", "$400K", "$300K", "+33.3%"],
["EBITDA", "$500K", "$380K", "+31.6%"]
],
"style": {
"borders": {
"outer": { "width": 1, "color": "#cccccc", "style": "solid" }
},
"header": {
"backgroundColor": "#f8f9fa",
"fontWeight": "bold"
}
}
},
{
"type": "h2",
"text": "Key Achievements"
},
{
"type": "list",
"ordered": false,
"items": [
"Launched three new product features based on customer feedback",
"Expanded team by 25% with strategic hires in engineering and sales",
"Achieved 98.5% customer satisfaction rating",
"Reduced customer acquisition cost by 15%",
"Implemented new security protocols and achieved SOC 2 compliance"
]
},
{
"type": "h2",
"text": "Market Analysis"
},
{
"type": "text",
"text": "The market conditions during {{quarter}} {{year}} presented both opportunities and challenges. Our strategic positioning allowed us to capitalize on emerging trends while maintaining operational efficiency."
},
{
"type": "h3",
"text": "Competitive Landscape"
},
{
"type": "text",
"text": "We continue to differentiate ourselves through innovation and customer-centric approach. Our market share has grown by 8% compared to the same period last year."
},
{
"type": "h2",
"text": "Strategic Initiatives"
},
{
"type": "list",
"ordered": true,
"items": [
"Digital transformation roadmap implementation",
"Sustainability program launch",
"International market expansion planning",
"AI and automation integration across operations",
"Customer experience enhancement program"
]
},
{
"type": "h2",
"text": "Looking Forward"
},
{
"type": "text",
"text": "As we move into the next quarter, we remain focused on sustainable growth, operational excellence, and delivering exceptional value to our customers and stakeholders."
}
]
},
{
"type": "page",
"content": [
{
"type": "text",
"text": "Prepared by: {{companyName}} Business Intelligence Team",
"align": "center",
"fontSize": 10,
"color": "#666666"
},
{
"type": "text",
"text": "Report Date: {{reportDate}}",
"align": "center",
"fontSize": 10,
"color": "#666666"
},
{
"type": "text",
"text": "CEO: {{ceoName}}",
"align": "center",
"fontSize": 10,
"color": "#666666"
},
{
"type": "text",
"text": "{{companyName}}",
"align": "center",
"color": "#666666",
"spacing": {
"before": 20
}
}
]
}
]
}
Invoice Document
JSON Configuration
{
"document": {
"type": "pdf",
"filename": "invoice-2024-001",
"title": "Invoice #INV-2024-001",
"author": "TechCorp Solutions",
"size": "A4",
"marginTop": 2.5,
"marginRight": 2.5,
"marginBottom": 2.5,
"marginLeft": 2.5
},
"variables": {
"companyName": "TechCorp Solutions",
"companyAddress": "123 Tech Street",
"companyCity": "San Francisco, CA 94102",
"companyPhone": "+1 (555) 123-4567",
"companyEmail": "billing@techcorp.com",
"companyWeb": "www.techcorp.com",
"invoiceNumber": "INV-2024-001",
"invoiceDate": "January 15, 2024",
"dueDate": "February 14, 2024",
"clientName": "Acme Corporation",
"clientAddress": "456 Business Ave",
"clientCity": "New York, NY 10001",
"clientContact": "John Smith"
},
"defaults": {
"fontFamily": "Arial",
"fontSize": 10,
"color": "#2d3748",
"lineHeight": 1.5
},
"sections": [
{
"type": "flow",
"content": [
{
"type": "text",
"text": "INVOICE",
"fontSize": 36,
"fontWeight": "bold",
"color": "#1a365d",
"align": "right",
"spacing": { "after": 20 }
},
{
"type": "table",
"rows": [
["**{{companyName}}**\n{{companyAddress}}\n{{companyCity}}\nPhone: {{companyPhone}}\nEmail: {{companyEmail}}", "", "**Invoice #:** {{invoiceNumber}}\n**Date:** {{invoiceDate}}\n**Due Date:** {{dueDate}}"]
],
"style": {
"borders": {
"outer": { "width": 0, "color": "#ffffff", "style": "solid" },
"inner": { "width": 0, "color": "#ffffff", "style": "solid" }
},
"rows": {
"backgroundColor": "#ffffff",
"fontSize": 10
},
"cellPadding": {
"top": 5,
"right": 10,
"bottom": 5,
"left": 0
}
},
"spacing": { "after": 5 }
},
{
"type": "text",
"text": "BILL TO:",
"fontSize": 11,
"fontWeight": "bold",
"color": "#1a365d",
"spacing": { "after": 5 }
},
{
"type": "text",
"text": "**{{clientName}}**\n{{clientAddress}}\n{{clientCity}}\nAttn: {{clientContact}}",
"fontSize": 10,
"spacing": { "after": 25 }
},
{
"type": "table",
"headers": ["Description", "Qty", "Unit Price", "Amount"],
"rows": [
["Website Development - Custom design and implementation", "1", "$5,000.00", "$5,000.00"],
["SEO Optimization - Keyword research and on-page optimization", "3", "$800.00", "$2,400.00"],
["Monthly Hosting - Premium hosting package (12 months)", "12", "$50.00", "$600.00"],
["", "", "**Subtotal:**", "$8,000.00"],
["", "", "**Tax (8.5%):**", "$680.00"],
["", "", "**TOTAL DUE:**", "**$8,680.00**"]
],
"style": {
"borders": {
"outer": { "width": 1.5, "color": "#1a365d", "style": "solid" },
"inner": { "width": 1, "color": "#cbd5e0", "style": "solid" }
},
"header": {
"backgroundColor": "#1a365d",
"color": "#ffffff",
"fontWeight": "bold",
"fontSize": 10
},
"rows": {
"backgroundColor": "#ffffff",
"fontSize": 10
},
"cellPadding": {
"top": 8,
"right": 10,
"bottom": 8,
"left": 10
}
},
"spacing": {"after": 30, "before": 5 }
},
{
"type": "text",
"text": "PAYMENT INFORMATION",
"fontSize": 11,
"fontWeight": "bold",
"color": "#1a365d",
"spacing": { "after": 8}
},
{
"type": "text",
"text": "Payment Terms: Net 30 days",
"fontSize": 9,
"spacing": { "after": 3 }
},
{
"type": "text",
"text": "Bank Transfer: {{companyName}} - Account #1234567890",
"fontSize": 9,
"spacing": { "after": 3 }
},
{
"type": "text",
"text": "Please include invoice number in payment reference",
"fontSize": 9,
"spacing": { "after": 30 }
},
{
"type": "text",
"text": "Thank you for your business!",
"align": "center",
"fontSize": 10,
"fontWeight": "bold",
"color": "#1a365d",
"spacing": { "before": 20 }
},
{
"type": "text",
"text": "If you have any questions about this invoice, please contact {{companyEmail}}",
"align": "center",
"fontSize": 8,
"color": "#718096"
}
]
}
]
}
Employee Handbook
JSON Configuration
{
"document": {
"type": "pdf",
"filename": "employee-handbook-2024",
"title": "Employee Handbook 2024",
"author": "TechCorp Solutions HR Department",
"size": "A4",
"marginTop": 2.5,
"marginRight": 2.5,
"marginBottom": 2.5,
"marginLeft": 2.5
},
"variables": {
"companyName": "TechCorp Solutions",
"year": "2024",
"version": "v3.2"
},
"defaults": {
"fontFamily": "Arial",
"fontSize": 11,
"color": "#2d3748",
"lineHeight": 1.6,
"styles": {
"h1": { "fontSize": 26, "fontWeight": "bold", "color": "#1a365d", "align": "center" },
"h2": { "fontSize": 18, "fontWeight": "bold", "color": "#2c5282" },
"h3": { "fontSize": 14, "fontWeight": "bold", "color": "#4a5568" }
},
"footer": {
"center": "{{companyName}} Employee Handbook {{year}} - {{version}}",
"excludeFirstPage": true
}
},
"sections": [
{
"type": "page",
"align": "center",
"content": [
{
"type": "image",
"src": "https://www.freepnglogos.com/uploads/logo-website-png/logo-website-file-globe-icon-svg-wikimedia-commons-21.png",
"width": 120,
"height": 120,
"align": "center",
"spacing": { "before": 80, "after": 20 }
},
{
"type": "text",
"text": "{{companyName}}",
"fontSize": 24,
"fontWeight": "bold",
"color": "#1a365d",
"align": "center",
"spacing": { "after": 40 }
},
{
"type": "h1",
"text": "Employee Handbook",
"spacing": { "after": 10 }
},
{
"type": "text",
"text": "{{year}} Edition",
"fontSize": 16,
"align": "center",
"color": "#718096"
}
]
},
{
"type": "flow",
"content": [
{
"type": "h2",
"text": "Welcome to {{companyName}}",
"spacing": { "before": 20 }
},
{
"type": "text",
"text": "Welcome to our team! This handbook contains important information about our company culture, policies, procedures, and expectations. We're excited to have you as part of our organization."
},
{
"type": "h2",
"text": "Our Mission & Values"
},
{
"type": "text",
"text": "At {{companyName}}, we are committed to innovation, excellence, and creating value for our customers and stakeholders."
},
{
"type": "h3",
"text": "Core Values"
},
{
"type": "list",
"ordered": false,
"items": [
"**Integrity:** We act with honesty and transparency in all our dealings",
"**Innovation:** We embrace creativity and continuous improvement",
"**Collaboration:** We work together to achieve common goals",
"**Excellence:** We strive for the highest quality in everything we do",
"**Respect:** We value diversity and treat everyone with dignity"
]
},
{
"type": "h2",
"text": "Code of Conduct"
},
{
"type": "text",
"text": "All employees are expected to maintain the highest standards of professional conduct and ethical behavior."
},
{
"type": "h3",
"text": "Professional Standards"
},
{
"type": "list",
"ordered": false,
"items": [
"Treat all colleagues, clients, and partners with respect and dignity",
"Maintain confidentiality of sensitive company and client information",
"Follow all company policies, procedures, and legal requirements",
"Report any concerns or violations to management promptly",
"Avoid conflicts of interest and disclose potential conflicts"
]
},
{
"type": "h2",
"text": "Work Environment"
},
{
"type": "h3",
"text": "Office Hours & Attendance"
},
{
"type": "text",
"text": "Standard office hours are Monday through Friday, 9:00 AM to 5:00 PM. We offer flexible working arrangements to support work-life balance."
},
{
"type": "h3",
"text": "Remote Work Guidelines"
},
{
"type": "text",
"text": "For employees working remotely, the following guidelines apply:"
},
{
"type": "list",
"ordered": true,
"items": [
"Maintain regular communication with team members via approved channels",
"Attend all scheduled meetings and be punctual",
"Be available during core hours (10:00 AM - 3:00 PM)",
"Maintain a professional and distraction-free work environment",
"Follow all security protocols and use company-approved tools",
"Ensure reliable internet connection and backup power solutions"
]
},
{
"type": "h2",
"text": "Benefits & Compensation"
},
{
"type": "text",
"text": "We offer competitive compensation and a comprehensive benefits package including:"
},
{
"type": "list",
"ordered": false,
"items": [
"Health, dental, and vision insurance",
"401(k) retirement plan with company match",
"Paid time off (PTO) and holidays",
"Professional development opportunities",
"Flexible working arrangements"
]
}
]
}
]
}
Technical Documentation
JSON Configuration
{
"document": {
"type": "pdf",
"filename": "api-documentation-v2",
"title": "API Documentation v2.0",
"author": "TechCorp Solutions API Team",
"subject": "RESTful API Reference Documentation",
"size": "A4",
"marginTop": 2.0,
"marginRight": 2.0,
"marginBottom": 2.0,
"marginLeft": 2.0
},
"variables": {
"apiVersion": "v2.0",
"baseUrl": "https://api.techcorp.com",
"lastUpdated": "January 2024"
},
"defaults": {
"fontFamily": "Arial",
"fontSize": 11,
"color": "#2d3748",
"lineHeight": 1.5,
"styles": {
"h1": { "fontSize": 26, "fontWeight": "bold", "color": "#1a365d", "align": "center" },
"h2": { "fontSize": 18, "fontWeight": "bold", "color": "#2c5282" },
"h3": { "fontSize": 14, "fontWeight": "bold", "color": "#4a5568" }
},
"header": {
"left": "API Documentation {{apiVersion}}",
"right": "{{lastUpdated}}",
"excludeFirstPage": true
},
"footer": {
"center": "Page {{pageNumber}} of {{totalPages}}",
"excludeFirstPage": true
}
},
"sections": [
{
"type": "page",
"align": "center",
"content": [
{
"type": "image",
"src": "https://www.freepnglogos.com/uploads/logo-website-png/logo-website-file-globe-icon-svg-wikimedia-commons-21.png",
"width": 100,
"height": 100,
"align": "center",
"spacing": { "before": 100, "after": 30 }
},
{
"type": "h1",
"text": "API Documentation",
"spacing": { "after": 10 }
},
{
"type": "text",
"text": "Version {{apiVersion}}",
"fontSize": 18,
"align": "center",
"color": "#4a5568",
"spacing": { "after": 40 }
},
{
"type": "text",
"text": "RESTful API Reference",
"fontSize": 14,
"align": "center",
"color": "#718096",
"spacing": { "after": 10 }
},
{
"type": "text",
"text": "Last Updated: {{lastUpdated}}",
"fontSize": 12,
"align": "center",
"color": "#a0aec0"
}
]
},
{
"type": "flow",
"content": [
{
"type": "h2",
"text": "Getting Started",
"spacing": { "before": 20 }
},
{
"type": "text",
"text": "Welcome to the TechCorp API documentation. This guide will help you integrate with our services quickly and efficiently."
},
{
"type": "h3",
"text": "Base URL"
},
{
"type": "text",
"text": "**{{baseUrl}}**",
"fontSize": 12,
"color": "#2c5282",
"spacing": { "after": 15 }
},
{
"type": "h2",
"text": "Authentication"
},
{
"type": "text",
"text": "All API requests require authentication using an API key. Include your API key in the request header:"
},
{
"type": "text",
"text": "**Authorization: Bearer YOUR_API_KEY**",
"fontSize": 11,
"color": "#2d3748",
"spacing": { "before": 10, "after": 15 }
},
{
"type": "h2",
"text": "Endpoints"
},
{
"type": "h3",
"text": "POST /api/v1/jobs"
},
{
"type": "text",
"text": "Creates a new document generation job."
},
{
"type": "text",
"text": "**Request Body:**",
"fontWeight": "bold",
"spacing": { "before": 10 }
},
{
"type": "list",
"ordered": false,
"items": [
"**document** (object, required): Document configuration",
"**sections** (array, required): Content sections",
"**variables** (object, optional): Template variables"
]
},
{
"type": "h3",
"text": "GET /api/v1/jobs/{jobId}"
},
{
"type": "text",
"text": "Retrieves the status and result of a document generation job."
},
{
"type": "h2",
"text": "Response Codes"
},
{
"type": "table",
"headers": ["Code", "Status", "Description"],
"rows": [
["200", "OK", "Request successful"],
["201", "Created", "Resource created successfully"],
["400", "Bad Request", "Invalid request parameters"],
["401", "Unauthorized", "Invalid or missing API key"],
["404", "Not Found", "Resource not found"],
["429", "Too Many Requests", "Rate limit exceeded"],
["500", "Internal Server Error", "Server-side error"]
],
"style": {
"borders": {
"outer": { "width": 1, "color": "#2c5282", "style": "solid" },
"inner": { "width": 0.5, "color": "#cbd5e0", "style": "solid" }
},
"header": {
"backgroundColor": "#2c5282",
"color": "#ffffff",
"fontWeight": "bold",
"align": "center"
},
"rows": {
"backgroundColor": "#f7fafc",
"fontSize": 10
}
}
},
{
"type": "h2",
"text": "Rate Limiting"
},
{
"type": "text",
"text": "API requests are limited to 100 requests per minute per API key. Exceeding this limit will result in a 429 error response."
},
{
"type": "h2",
"text": "Support"
},
{
"type": "text",
"text": "For technical support or questions, please contact our API team at api-support@techcorp.com"
}
]
}
]
}
Certificate of Completion
JSON Configuration
{
"document": {
"type": "pdf",
"filename": "certificate-of-completion",
"title": "Certificate of Completion",
"size": "A4",
"orientation": "landscape",
"marginTop": 1,
"marginRight": 3.0,
"marginBottom": 0,
"marginLeft": 3.0
},
"variables": {
"organizationName": "TechCorp Professional Development Institute",
"studentName": "Sarah Johnson",
"courseName": "Advanced Web Development",
"courseDescription": "A comprehensive 12-week program covering modern web technologies and best practices",
"completionDate": "January 15, 2024",
"instructorName": "Dr. Michael Chen",
"instructorTitle": "Lead Instructor, Web Development",
"directorName": "Emily Rodriguez",
"directorTitle": "Director of Education",
"certificateId": "CERT-2024-WD-001234"
},
"defaults": {
"fontFamily": "Arial",
"fontSize": 12,
"color": "#2d3748",
"lineHeight": 1.5
},
"sections": [
{
"type": "page",
"align": "top",
"content": [
{
"type": "image",
"src": "https://www.freepnglogos.com/uploads/logo-website-png/logo-website-file-globe-icon-svg-wikimedia-commons-21.png",
"width": 70,
"height": 70,
"align": "center",
"spacing": { "before": 0, "after": 15 }
},
{
"type": "text",
"text": "{{organizationName}}",
"fontSize": 16,
"fontWeight": "bold",
"color": "#744210",
"align": "center",
"spacing": { "after": 10 }
},
{
"type": "text",
"text": "CERTIFICATE OF COMPLETION",
"fontSize": 32,
"fontWeight": "bold",
"color": "#1a365d",
"align": "center",
"spacing": { "after": 25 }
},
{
"type": "text",
"text": "This is to certify that",
"fontSize": 14,
"align": "center",
"color": "#4a5568",
"spacing": { "after": 10 }
},
{
"type": "text",
"text": "{{studentName}}",
"fontSize": 30,
"fontWeight": "bold",
"color": "#2c5282",
"align": "center",
"spacing": { "after": 10 }
},
{
"type": "text",
"text": "has successfully completed",
"fontSize": 14,
"align": "center",
"color": "#4a5568",
"spacing": { "after": 10 }
},
{
"type": "text",
"text": "{{courseName}}",
"fontSize": 24,
"fontWeight": "bold",
"color": "#1a365d",
"align": "center",
"spacing": { "after": 10 }
},
{
"type": "text",
"text": "{{courseDescription}}",
"fontSize": 11,
"align": "center",
"color": "#718096",
"spacing": { "after": 15 }
},
{
"type": "text",
"text": "Completed on {{completionDate}}",
"fontSize": 12,
"align": "center",
"color": "#4a5568",
"spacing": { "after": 30 }
},
{
"type": "table",
"rows": [
["_________________________", "_________________________"],
["{{instructorName}}", "{{directorName}}"],
["{{instructorTitle}}", "{{directorTitle}}"]
],
"style": {
"borders": {
"outer": { "width": 0, "color": "#ffffff", "style": "solid" },
"inner": { "width": 0, "color": "#ffffff", "style": "solid" }
},
"rows": {
"backgroundColor": "#ffffff",
"fontSize": 11,
"align": "center",
"color": "#2d3748"
},
"cellPadding": {
"top": 5,
"right": 10,
"bottom": 5,
"left": 10
}
},
"spacing": { "after": 5 }
},
{
"type": "text",
"text": "Certificate ID: {{certificateId}}",
"align": "center",
"fontSize": 9,
"color": "#a0aec0"
}
]
}
]
}
Event Poster with QR Codes
JSON Configuration
{
"document": {
"type": "pdf",
"filename": "event-poster-qrcodes",
"title": "Tech Conference 2025",
"size": "A4",
"orientation": "portrait"
},
"defaults": {
"fontFamily": "Arial",
"fontSize": 11,
"color": "#1a202c"
},
"sections": [
{
"type": "flow",
"content": [
{
"type": "h1",
"text": "TECH CONFERENCE 2025",
"align": "center",
"fontSize": 32,
"fontWeight": "bold",
"color": "#2b6cb0",
"spacing": { "before": 20, "after": 10 }
},
{
"type": "text",
"text": "Innovation • Networking • Future",
"align": "center",
"fontSize": 14,
"color": "#4a5568",
"spacing": { "after": 30 }
},
{
"type": "h2",
"text": "Event Details",
"fontSize": 20,
"fontWeight": "bold",
"color": "#2d3748",
"spacing": { "before": 20, "after": 15 }
},
{
"type": "text",
"text": "**Date:** June 15-17, 2025"
},
{
"type": "text",
"text": "**Location:** Berlin Convention Center"
},
{
"type": "text",
"text": "**Time:** 9:00 AM - 6:00 PM daily",
"spacing": { "after": 25 }
},
{
"type": "h2",
"text": "Register Now",
"fontSize": 18,
"fontWeight": "bold",
"color": "#2d3748",
"spacing": { "before": 20, "after": 10 }
},
{
"type": "text",
"text": "Scan the QR code to register:",
"align": "center",
"spacing": { "after": 10 }
},
{
"type": "qrcode",
"qrType": "url",
"data": {
"url": "https://techconference2025.com/register"
},
"size": 200,
"align": "center",
"errorCorrection": "H",
"spacing": { "after": 30 }
},
{
"type": "h2",
"text": "Free WiFi Access",
"fontSize": 18,
"fontWeight": "bold",
"color": "#2d3748",
"spacing": { "before": 20, "after": 10 }
},
{
"type": "text",
"text": "Connect to our conference WiFi:",
"align": "center",
"spacing": { "after": 10 }
},
{
"type": "qrcode",
"qrType": "wifi",
"data": {
"ssid": "TechConf2025",
"password": "Innovation2025",
"encryption": "WPA"
},
"size": 180,
"align": "center",
"errorCorrection": "Q",
"spacing": { "after": 30 }
},
{
"type": "h2",
"text": "Contact Organizer",
"fontSize": 18,
"fontWeight": "bold",
"color": "#2d3748",
"spacing": { "before": 20, "after": 10 }
},
{
"type": "text",
"text": "Save organizer contact:",
"align": "center",
"spacing": { "after": 10 }
},
{
"type": "qrcode",
"qrType": "vcard",
"data": {
"firstName": "Maria",
"lastName": "Schmidt",
"organization": "Tech Conference GmbH",
"phone": "+49 30 9876 5432",
"email": "info@techconference2025.com",
"url": "https://techconference2025.com"
},
"size": 180,
"align": "center",
"errorCorrection": "H",
"spacing": { "after": 30 }
},
{
"type": "text",
"text": "Follow us on social media for updates!",
"align": "center",
"fontSize": 12,
"color": "#718096",
"spacing": { "before": 20 }
}
]
}
]
}
Best Practices
1. Start Simple
Begin with basic structures and add complexity gradually:
- Use standard fonts and colors first
- Test with simple content before complex layouts
- Validate each section before adding more
2. Use Consistent Styling
{
"defaults": {
"fontFamily": "Arial",
"fontSize": 11,
"color": "#333333",
"styles": {
"h1": { "fontSize": 24, "fontWeight": "bold", "color": "#1a365d" },
"h2": { "fontSize": 18, "fontWeight": "bold", "color": "#2d3748" },
"h3": { "fontSize": 16, "fontWeight": "bold", "color": "#4a5568" }
}
}
}
3. Optimize for Performance
- Keep JSON payloads under 1MB when possible
- Use variables for repeated content
- Minimize nested structures where appropriate
4. Test Thoroughly
- Validate JSON syntax before sending requests
- Test with different content lengths
- Verify output across different devices and viewers