Metainformationen zur Seite
  •  

Dies ist eine alte Version des Dokuments!


PDF-Druckvorlagen

JSON-Schema mit Dokument-Metadaten

{
  "meta": {
    "title": "Rechnung {{rechnungsnummer}}",
    "author": "Musterfirma GmbH",
    "subject": "Rechnungsdokument",
    "keywords": "Rechnung, PDF, Musterfirma",
    "creator": "Mein PDF-Generator"
  },
  "page": {
    "size": "A4",
    "orientation": "P",
    "margin": {
      "top": 20,
      "bottom": 20,
      "left": 15,
      "right": 15
    }
  },
  "header": {
    "enabled": true,
    "height": 15,
    "content": "Musterfirma GmbH – {{heutiges_datum}}",
    "font": "helvetica",
    "font_size": 10,
    "style": "B",
    "align": "C"
  },
  "footer": {
    "enabled": true,
    "height": 15,
    "content": "Seite {{page_no}} von {{total_pages}}",
    "font": "helvetica",
    "font_size": 8,
    "style": "I",
    "align": "C"
  },
  "elements": [
    {
      "type": "text",
      "x": 20,
      "y": 40,
      "width": 170,
      "font": "helvetica",
      "font_size": 14,
      "style": "B",
      "align": "L",
      "multiline": false,
      "content": "Rechnung für {{name}}"
    },
    {
      "type": "text",
      "x": 20,
      "y": 50,
      "width": 100,
      "font": "helvetica",
      "font_size": 12,
      "style": "",
      "align": "L",
      "multiline": false,
      "content": "Datum: {{datum}}"
    },
    {
      "type": "line",
      "x1": 20,
      "y1": 55,
      "x2": 190,
      "y2": 55,
      "style": {
        "width": 0.3,
        "color": [0, 0, 0]
      }
    },
    {
      "type": "image",
      "x": 150,
      "y": 20,
      "width": 40,
      "height": 20,
      "path": "logo.png"
    }
  ]
}