{ "name": "Presupuesto Proyecto", "description": "Plantilla de presupuesto para proyectos", "documentType": "budget", "widthMM": 210, "heightMM": 297, "margin": [20, 20, 20, 20], "elements": [ { "type": "label", "x": 50, "y": 50, "w": 200, "h": 20, "text": "Presupuesto #{{code}}", "font": "Arial", "size": 14, "bold": true, "align": "left" }, { "type": "label", "x": 300, "y": 50, "w": 100, "h": 20, "text": "{{date}}", "font": "Arial", "size": 10, "bold": false }, { "type": "table", "x": 50, "y": 80, "w": 350, "h": 150, "columns": ["description", "quantity", "unitPrice", "total"], "dataSource": "lines", "cellAlignment": { "0": "left", "1": "right", "2": "right", "3": "right" }, "headerAlignment": "center", "headerColor": "#CCCCCC", "alternateRowColor": true, "rowHeight": 20 }, { "type": "label", "x": 250, "y": 240, "w": 50, "h": 20, "text": "Total:", "font": "Arial", "size": 14, "bold": true }, { "type": "label", "x": 300, "y": 240, "w": 100, "h": 20, "text": "{{total}}", "font": "Arial", "size": 14, "bold": true, "align": "right" } ] }