{
  "version": "2.0",
  "page": {
    "width": 595,
    "height": 842,
    "marginTop": 20,
    "marginBottom": 20,
    "marginLeft": 20,
    "marginRight": 20
  },
  "pdf": {
    "title": "New Features Demo",
    "author": "FmxPdfTools",
    "subject": "Qualified field, RecordNo, FORMAT, PDF metadata",
    "keywords": "demo;pdf;recordno;metadata",
    "creator": "FmxPdfTools Designer"
  },
  "bands": [
    {
      "type": "PageHeader",
      "height": 76,
      "dataSource": "",
      "elements": [
        {
          "type": "Rectangle",
          "name": "", "left": 0, "top": 0, "width": 555, "height": 40,
          "text": "", "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 10, "fontBold": false, "fontItalic": false,
          "textColor": "#FF000000", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#00000000", "fillColor": "#FF1E3A8A",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 0, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 555, "y2": 0
        },
        {
          "type": "Label",
          "name": "", "left": 12, "top": 6, "width": 531, "height": 28,
          "text": "NEW FEATURES DEMO",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 16, "fontBold": true, "fontItalic": false,
          "textColor": "#FFFFFFFF", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 543, "y2": 6
        },
        {
          "type": "Label",
          "name": "", "left": 0, "top": 44, "width": 555, "height": 12,
          "text": "Page [PageNo] / [TotalPages]   -   [DateTime]",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 8, "fontBold": false, "fontItalic": false,
          "textColor": "#FF808080", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Right", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 555, "y2": 44
        },
        {
          "type": "Label",
          "name": "", "left": 0, "top": 60, "width": 30, "height": 14,
          "text": "#",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": true, "fontItalic": false,
          "textColor": "#FF1E3A8A", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 30, "y2": 60
        },
        {
          "type": "Label",
          "name": "", "left": 35, "top": 60, "width": 70, "height": 14,
          "text": "Order No",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": true, "fontItalic": false,
          "textColor": "#FF1E3A8A", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 105, "y2": 60
        },
        {
          "type": "Label",
          "name": "", "left": 110, "top": 60, "width": 280, "height": 14,
          "text": "Customer  (qualified: orders.ShipName)",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": true, "fontItalic": false,
          "textColor": "#FF1E3A8A", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 390, "y2": 60
        },
        {
          "type": "Label",
          "name": "", "left": 395, "top": 60, "width": 160, "height": 14,
          "text": "Freight (FORMAT)",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": true, "fontItalic": false,
          "textColor": "#FF1E3A8A", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Right", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 555, "y2": 60
        }
      ]
    },
    {
      "type": "MasterData",
      "height": 18,
      "dataSource": "orders",
      "elements": [
        {
          "type": "Label",
          "name": "", "left": 0, "top": 2, "width": 30, "height": 14,
          "text": "[RecordNo]",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": true, "fontItalic": false,
          "textColor": "#FF1E40AF", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 30, "y2": 2
        },
        {
          "type": "Label",
          "name": "", "left": 35, "top": 2, "width": 70, "height": 14,
          "text": "",
          "dataField": "OrderID", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": false, "fontItalic": false,
          "textColor": "#FF000000", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 105, "y2": 2
        },
        {
          "type": "Label",
          "name": "", "left": 110, "top": 2, "width": 280, "height": 14,
          "text": "[orders.ShipName]",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": false, "fontItalic": false,
          "textColor": "#FF000000", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 390, "y2": 2
        },
        {
          "type": "Label",
          "name": "", "left": 395, "top": 2, "width": 160, "height": 14,
          "text": "[Format('%.2f',Freight)]",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": false, "fontItalic": false,
          "textColor": "#FF000000", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Right", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 555, "y2": 2
        }
      ]
    },
    {
      "type": "Summary",
      "height": 130,
      "dataSource": "",
      "elements": [
        {
          "type": "Line",
          "name": "", "left": 0, "top": 6, "width": 555, "height": 1,
          "text": "", "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 10, "fontBold": false, "fontItalic": false,
          "textColor": "#FF000000", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF1E3A8A", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 0.8, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 555, "y2": 6
        },
        {
          "type": "Label",
          "name": "", "left": 0, "top": 12, "width": 555, "height": 16,
          "text": "Total records (RecordNo): [RecordNo]    |    Total freight: [Format('%.2f',SUM(Freight))]",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 10, "fontBold": true, "fontItalic": false,
          "textColor": "#FF1E40AF", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 555, "y2": 12
        },
        {
          "type": "Label",
          "name": "", "left": 0, "top": 34, "width": 555, "height": 14,
          "text": "New features in this report (visible in PDF metadata / Document Properties):",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": false, "fontItalic": true,
          "textColor": "#FF64748B", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 555, "y2": 34
        },
        {
          "type": "Table",
          "name": "", "left": 0, "top": 52, "width": 360, "height": 72,
          "text": "", "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 9, "fontBold": false, "fontItalic": false,
          "textColor": "#FF1E293B", "backColor": "#FFFFFFFF", "borderColor": "#FF94A3B8",
          "strokeColor": "#FF000000", "fillColor": "#FFF8FAFC",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 0.5, "strokeWidth": 1, "cornerX": 0, "cornerY": 0,
          "checked": false, "x2": 360, "y2": 52,
          "rows": 4, "cols": 2,
          "headerRow": true,
          "headerFill": "#FF1E3A8A",
          "headerBold": true,
          "headerTextColor": "#FFFFFFFF",
          "colWidths": [2, 1],
          "cells": [
            "Feature", "Status",
            "Qualified field [table.field]", "Active",
            "RecordNo row counter", "Active",
            "PDF metadata (.frp)", "Active"
          ]
        }
      ]
    },
    {
      "type": "PageFooter",
      "height": 20,
      "dataSource": "",
      "elements": [
        {
          "type": "Label",
          "name": "", "left": 0, "top": 4, "width": 300, "height": 12,
          "text": "FmxPdfTools - New Features Demo",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 8, "fontBold": false, "fontItalic": false,
          "textColor": "#FF808080", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Left", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 300, "y2": 4
        },
        {
          "type": "Label",
          "name": "", "left": 355, "top": 4, "width": 200, "height": 12,
          "text": "[DateTime]",
          "dataField": "", "imageFile": "", "wordWrap": false,
          "fontName": "Segoe UI", "fontSize": 8, "fontBold": false, "fontItalic": false,
          "textColor": "#FF808080", "backColor": "#00000000", "borderColor": "#FF000000",
          "strokeColor": "#FF000000", "fillColor": "#00000000",
          "horzAlign": "Right", "vertAlign": "Center",
          "borderWidth": 1, "strokeWidth": 1, "cornerX": 5, "cornerY": 5,
          "checked": false, "x2": 555, "y2": 4
        }
      ]
    }
  ]
}
