{
  "items": [
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 760.0,
        "urx": 472.0,
        "ury": 784.0
      },
      "content": [
        "Please fill in"
      ],
      "font": "DejaVuSans",
      "font_size": 20.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 700.0,
        "urx": 172.0,
        "ury": 714.4
      },
      "content": [
        "Name"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text_field",
      "name": "Name",
      "rect": {
        "llx": 180.0,
        "lly": 697.0,
        "urx": 420.0,
        "ury": 713.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 664.0,
        "urx": 172.0,
        "ury": 678.4
      },
      "content": [
        "Email"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text_field",
      "name": "Email",
      "mapping_name": "customer_email",
      "rect": {
        "llx": 180.0,
        "lly": 661.0,
        "urx": 420.0,
        "ury": 677.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 628.0,
        "urx": 172.0,
        "ury": 642.4
      },
      "content": [
        "Country"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text_field",
      "name": "Country",
      "rect": {
        "llx": 180.0,
        "lly": 625.0,
        "urx": 420.0,
        "ury": 641.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "value": "France",
      "text_color": [
        1.0,
        1.0,
        1.0
      ],
      "text_stroke": {
        "width": 0.5,
        "color": [
          0.1,
          0.3,
          0.7
        ]
      },
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 90.0,
        "lly": 592.0,
        "urx": 330.0,
        "ury": 606.4
      },
      "content": [
        "Subscribe to the newsletter"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "check_box",
      "name": "Subscribe",
      "rect": {
        "llx": 72.0,
        "lly": 590.0,
        "urx": 84.0,
        "ury": 602.0
      },
      "checked": true,
      "symbol": "star",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 556.0,
        "urx": 172.0,
        "ury": 570.4
      },
      "content": [
        "Plan"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "choice_field",
      "name": "Plan",
      "rect": {
        "llx": 180.0,
        "lly": 553.0,
        "urx": 420.0,
        "ury": 569.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "options": [
        "Monthly",
        "Yearly"
      ],
      "selected": "Yearly",
      "presentation": "dropdown",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 520.0,
        "urx": 172.0,
        "ury": 534.4
      },
      "content": [
        "Payment"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "radio_group",
      "name": "Payment",
      "options": [
        {
          "value": "card",
          "rect": {
            "llx": 180.0,
            "lly": 517.0,
            "urx": 192.0,
            "ury": 529.0
          },
          "mark": "payment-card"
        },
        {
          "value": "transfer",
          "rect": {
            "llx": 320.0,
            "lly": 517.0,
            "urx": 332.0,
            "ury": 529.0
          },
          "mark": "payment-transfer"
        }
      ],
      "selected": "card",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 198.0,
        "lly": 520.0,
        "urx": 268.0,
        "ury": 534.4
      },
      "content": [
        "Card"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 338.0,
        "lly": 520.0,
        "urx": 438.0,
        "ury": 534.4
      },
      "content": [
        "Transfer"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 472.0,
        "urx": 172.0,
        "ury": 486.4
      },
      "content": [
        "Signature"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "signature_field",
      "name": "Signature",
      "rect": {
        "llx": 180.0,
        "lly": 460.0,
        "urx": 420.0,
        "ury": 500.0
      },
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 412.0,
        "urx": 472.0,
        "ury": 426.4
      },
      "content": [
        "Notes, shown on the screen and left off the paper"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text_field",
      "name": "Notes",
      "rect": {
        "llx": 72.0,
        "lly": 370.0,
        "urx": 420.0,
        "ury": 402.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "multiline": true,
      "flags": {
        "printed": false
      },
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text_field",
      "name": "Office",
      "rect": {
        "llx": 500.0,
        "lly": 440.0,
        "urx": 516.0,
        "ury": 720.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "value": "For office use: file 2026-0917",
      "rotation": "quarter",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 760.0,
        "urx": 592.0,
        "ury": 784.0
      },
      "content": [
        "Buttons, and what pressing one does"
      ],
      "font": "DejaVuSans",
      "font_size": 20.0,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button0",
      "rect": {
        "llx": 72.0,
        "lly": 710.0,
        "urx": 222.0,
        "ury": 732.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "First page",
      "action": {
        "menu_item": "first_page"
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 0,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button1",
      "rect": {
        "llx": 232.0,
        "lly": 710.0,
        "urx": 382.0,
        "ury": 732.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Previous page",
      "action": {
        "menu_item": "previous_page"
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 1,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button2",
      "rect": {
        "llx": 392.0,
        "lly": 710.0,
        "urx": 542.0,
        "ury": 732.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Next page",
      "action": {
        "menu_item": "next_page"
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 2,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button3",
      "rect": {
        "llx": 72.0,
        "lly": 676.0,
        "urx": 222.0,
        "ury": 698.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Last page",
      "action": {
        "menu_item": "last_page"
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 3,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button4",
      "rect": {
        "llx": 232.0,
        "lly": 676.0,
        "urx": 382.0,
        "ury": 698.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Back to the form",
      "action": {
        "page": {
          "page": 1,
          "fit": {
            "full_width": {
              "top": 780.0
            }
          }
        }
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 4,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button5",
      "rect": {
        "llx": 392.0,
        "lly": 676.0,
        "urx": 542.0,
        "ury": 698.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "To the signature",
      "action": {
        "destination": "signature"
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 5,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button6",
      "rect": {
        "llx": 72.0,
        "lly": 642.0,
        "urx": 222.0,
        "ury": 664.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Send as FDF",
      "action": {
        "submit_fields": {
          "url": "https://hqf-pdf.com/forms/submit",
          "fields": "all",
          "format": {
            "fdf": {
              "with_no_value": true
            }
          }
        }
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 6,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button7",
      "rect": {
        "llx": 232.0,
        "lly": 642.0,
        "urx": 382.0,
        "ury": 664.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Send as HTML",
      "action": {
        "submit_fields": {
          "url": "https://hqf-pdf.com/forms/submit",
          "fields": {
            "only": [
              "Name",
              "Email"
            ]
          },
          "format": {
            "html": {
              "get": false,
              "with_click": true
            }
          }
        }
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 7,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button8",
      "rect": {
        "llx": 392.0,
        "lly": 642.0,
        "urx": 542.0,
        "ury": 664.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Send as XFDF",
      "action": {
        "submit_fields": {
          "url": "https://hqf-pdf.com/forms/submit",
          "fields": {
            "all_but": [
              "Notes"
            ]
          },
          "format": "xfdf"
        }
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 8,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button9",
      "rect": {
        "llx": 72.0,
        "lly": 608.0,
        "urx": 222.0,
        "ury": 630.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Send the whole file",
      "action": {
        "submit_fields": {
          "url": "https://hqf-pdf.com/forms/submit",
          "fields": "all",
          "format": {
            "whole_document": {
              "get": false
            }
          }
        }
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 9,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button10",
      "rect": {
        "llx": 232.0,
        "lly": 608.0,
        "urx": 382.0,
        "ury": 630.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Clear the form",
      "action": {
        "reset_fields": {
          "fields": "all"
        }
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 10,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button11",
      "rect": {
        "llx": 392.0,
        "lly": 608.0,
        "urx": 542.0,
        "ury": 630.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Fill from a file",
      "action": {
        "import_fields": {
          "file": "answers.fdf"
        }
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 11,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button12",
      "rect": {
        "llx": 72.0,
        "lly": 574.0,
        "urx": 222.0,
        "ury": 596.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Show the notes",
      "action": {
        "show": [
          "Notes"
        ]
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 12,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button13",
      "rect": {
        "llx": 232.0,
        "lly": 574.0,
        "urx": 382.0,
        "ury": 596.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Hide the notes",
      "action": {
        "hide": [
          "Notes"
        ]
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 13,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button14",
      "rect": {
        "llx": 392.0,
        "lly": 574.0,
        "urx": 542.0,
        "ury": 596.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Open the terms",
      "action": {
        "other_document": {
          "file": "terms.pdf",
          "page": 1,
          "fit": "whole_page",
          "new_window": true
        }
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 14,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button15",
      "rect": {
        "llx": 72.0,
        "lly": 540.0,
        "urx": 222.0,
        "ury": 562.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Open the read-me",
      "action": {
        "launch": {
          "file": "readme.txt",
          "new_window": false
        }
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 15,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Button16",
      "rect": {
        "llx": 232.0,
        "lly": 540.0,
        "urx": 382.0,
        "ury": 562.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "Print",
      "action": {
        "viewer_command": "Print"
      },
      "background": [
        0.93,
        0.93,
        0.93
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "tab_rank": 16,
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 480.0,
        "urx": 592.0,
        "ury": 494.4
      },
      "content": [
        "Buttons with an icon: seven layouts, each fitting the icon its own way"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Stamp0",
      "rect": {
        "llx": 72.0,
        "lly": 410.0,
        "urx": 132.0,
        "ury": 460.0
      },
      "font": "DejaVuSans",
      "font_size": 8.0,
      "caption": "Stamp",
      "rollover_caption": "Over",
      "down_caption": "Down",
      "icon": "stamp",
      "rollover_icon": "stamp_pressed",
      "down_icon": "stamp_pressed",
      "layout": "caption_only",
      "icon_fit": {
        "scale": "always"
      },
      "text_color": [
        0.1,
        0.1,
        0.4
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "inset"
      },
      "highlight": "none",
      "rotation": "upright",
      "tooltip": "Stamps the form",
      "description": "Stamps the form",
      "mapping_name": "stamp_0",
      "flags": {
        "printed": true,
        "no_zoom": true
      },
      "layer": "Controls",
      "pages": [
        2
      ],
      "read_only": true
    },
    {
      "type": "push_button",
      "name": "Stamp1",
      "rect": {
        "llx": 140.0,
        "lly": 410.0,
        "urx": 200.0,
        "ury": 460.0
      },
      "font": "DejaVuSans",
      "font_size": 8.0,
      "caption": "Stamp",
      "rollover_caption": "Over",
      "down_caption": "Down",
      "icon": "stamp",
      "rollover_icon": "stamp_pressed",
      "down_icon": "stamp_pressed",
      "layout": "icon_only",
      "icon_fit": {
        "scale": "when_bigger"
      },
      "text_color": [
        0.1,
        0.1,
        0.4
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "inset"
      },
      "highlight": "invert",
      "rotation": "half",
      "tooltip": "Stamps the form",
      "description": "Stamps the form",
      "mapping_name": "stamp_1",
      "flags": {
        "printed": true,
        "no_zoom": true
      },
      "layer": "Controls",
      "pages": [
        2
      ],
      "required": true
    },
    {
      "type": "push_button",
      "name": "Stamp2",
      "rect": {
        "llx": 208.0,
        "lly": 410.0,
        "urx": 268.0,
        "ury": 460.0
      },
      "font": "DejaVuSans",
      "font_size": 8.0,
      "caption": "Stamp",
      "rollover_caption": "Over",
      "down_caption": "Down",
      "icon": "stamp",
      "rollover_icon": "stamp_pressed",
      "down_icon": "stamp_pressed",
      "layout": "caption_below_icon",
      "icon_fit": {
        "scale": "when_smaller"
      },
      "text_color": [
        0.1,
        0.1,
        0.4
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "inset"
      },
      "highlight": "outline",
      "rotation": "three_quarters",
      "tooltip": "Stamps the form",
      "description": "Stamps the form",
      "mapping_name": "stamp_2",
      "flags": {
        "printed": true,
        "no_zoom": true
      },
      "layer": "Controls",
      "pages": [
        2
      ],
      "no_export": true
    },
    {
      "type": "push_button",
      "name": "Stamp3",
      "rect": {
        "llx": 276.0,
        "lly": 410.0,
        "urx": 336.0,
        "ury": 460.0
      },
      "font": "DejaVuSans",
      "font_size": 8.0,
      "caption": "Stamp",
      "rollover_caption": "Over",
      "down_caption": "Down",
      "icon": "stamp",
      "rollover_icon": "stamp_pressed",
      "down_icon": "stamp_pressed",
      "layout": "caption_above_icon",
      "icon_fit": {
        "scale": "never"
      },
      "text_color": [
        0.1,
        0.1,
        0.4
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "inset"
      },
      "highlight": "push",
      "rotation": "upright",
      "tooltip": "Stamps the form",
      "description": "Stamps the form",
      "mapping_name": "stamp_3",
      "flags": {
        "printed": true,
        "no_zoom": true
      },
      "layer": "Controls",
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Stamp4",
      "rect": {
        "llx": 344.0,
        "lly": 410.0,
        "urx": 404.0,
        "ury": 460.0
      },
      "font": "DejaVuSans",
      "font_size": 8.0,
      "caption": "Stamp",
      "rollover_caption": "Over",
      "down_caption": "Down",
      "icon": "stamp",
      "rollover_icon": "stamp_pressed",
      "down_icon": "stamp_pressed",
      "layout": "caption_right_of_icon",
      "icon_fit": {
        "stretch": "proportional"
      },
      "text_color": [
        0.1,
        0.1,
        0.4
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "inset"
      },
      "highlight": "none",
      "rotation": "half",
      "tooltip": "Stamps the form",
      "description": "Stamps the form",
      "mapping_name": "stamp_4",
      "flags": {
        "printed": true,
        "no_zoom": true
      },
      "layer": "Controls",
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Stamp5",
      "rect": {
        "llx": 412.0,
        "lly": 410.0,
        "urx": 472.0,
        "ury": 460.0
      },
      "font": "DejaVuSans",
      "font_size": 8.0,
      "caption": "Stamp",
      "rollover_caption": "Over",
      "down_caption": "Down",
      "icon": "stamp",
      "rollover_icon": "stamp_pressed",
      "down_icon": "stamp_pressed",
      "layout": "caption_left_of_icon",
      "icon_fit": {
        "stretch": "anamorphic"
      },
      "text_color": [
        0.1,
        0.1,
        0.4
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "inset"
      },
      "highlight": "invert",
      "rotation": "three_quarters",
      "tooltip": "Stamps the form",
      "description": "Stamps the form",
      "mapping_name": "stamp_5",
      "flags": {
        "printed": true,
        "no_zoom": true
      },
      "layer": "Controls",
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Stamp6",
      "rect": {
        "llx": 480.0,
        "lly": 410.0,
        "urx": 540.0,
        "ury": 460.0
      },
      "font": "DejaVuSans",
      "font_size": 8.0,
      "caption": "Stamp",
      "rollover_caption": "Over",
      "down_caption": "Down",
      "icon": "stamp",
      "rollover_icon": "stamp_pressed",
      "down_icon": "stamp_pressed",
      "layout": "caption_over_icon",
      "icon_fit": {
        "leftover_left": 0.0,
        "leftover_bottom": 1.0,
        "ignore_border": true
      },
      "text_color": [
        0.1,
        0.1,
        0.4
      ],
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "inset"
      },
      "highlight": "outline",
      "rotation": "upright",
      "tooltip": "Stamps the form",
      "description": "Stamps the form",
      "mapping_name": "stamp_6",
      "flags": {
        "printed": true,
        "no_zoom": true
      },
      "layer": "Controls",
      "pages": [
        2
      ]
    },
    {
      "type": "push_button",
      "name": "Watched",
      "rect": {
        "llx": 72.0,
        "lly": 360.0,
        "urx": 302.0,
        "ury": 382.0
      },
      "font": "DejaVuSans",
      "font_size": 10.0,
      "caption": "A button that answers every event",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "triggers": {
        "enter": {
          "show": [
            "Hint"
          ]
        },
        "exit": {
          "hide": [
            "Hint"
          ]
        },
        "up": {
          "menu_item": "next_page"
        },
        "focused": {
          "show": [
            "Hint"
          ]
        },
        "blurred": {
          "hide": [
            "Hint"
          ]
        },
        "page_opened": {
          "hide": [
            "Hint"
          ]
        },
        "page_closed": {
          "hide": [
            "Hint"
          ]
        },
        "page_shown": {
          "hide": [
            "Hint"
          ]
        },
        "page_hidden": {
          "hide": [
            "Hint"
          ]
        }
      },
      "pages": [
        2
      ]
    },
    {
      "type": "text_field",
      "name": "Hint",
      "rect": {
        "llx": 320.0,
        "lly": 360.0,
        "urx": 520.0,
        "ury": 382.0
      },
      "font": "DejaVuSans",
      "font_size": 9.0,
      "value": "The pointer is on the button",
      "read_only": true,
      "flags": {
        "printed": false,
        "hidden": true
      },
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 760.0,
        "urx": 592.0,
        "ury": 784.0
      },
      "content": [
        "Every setting a field takes"
      ],
      "font": "DejaVuSans",
      "font_size": 20.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 710.0,
        "urx": 592.0,
        "ury": 724.4
      },
      "content": [
        "Code, six boxes"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text_field",
      "name": "Code",
      "rect": {
        "llx": 300.0,
        "lly": 707.0,
        "urx": 420.0,
        "ury": 725.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "max_length": 6,
      "comb": true,
      "tooltip": "Six letters or figures, one to a box",
      "align": "center",
      "border": {
        "width": 1.0,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": {
          "dashed": {
            "lengths": [
              3.0,
              2.0
            ]
          }
        }
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 680.0,
        "urx": 592.0,
        "ury": 694.4
      },
      "content": [
        "PIN, hidden as typed"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text_field",
      "name": "Pin",
      "rect": {
        "llx": 300.0,
        "lly": 677.0,
        "urx": 420.0,
        "ury": 695.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "password": true,
      "required": true,
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 650.0,
        "urx": 592.0,
        "ury": 664.4
      },
      "content": [
        "Reference, read only"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text_field",
      "name": "Reference",
      "rect": {
        "llx": 300.0,
        "lly": 647.0,
        "urx": 500.0,
        "ury": 665.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "value": "HQF-2026-0917",
      "default_value": "HQF-2026-0917",
      "read_only": true,
      "align": "right",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "inset"
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 620.0,
        "urx": 592.0,
        "ury": 634.4
      },
      "content": [
        "Surname, required"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text_field",
      "name": "Surname",
      "rect": {
        "llx": 300.0,
        "lly": 617.0,
        "urx": 500.0,
        "ury": 635.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "required": true,
      "description": "As on your identity card",
      "background": [
        1.0,
        0.98,
        0.85
      ],
      "highlight": "outline",
      "tab_rank": 1,
      "triggers": {
        "blurred": {
          "show": [
            "Surname"
          ]
        }
      },
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 590.0,
        "urx": 592.0,
        "ury": 604.4
      },
      "content": [
        "Internal note, never sent"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text_field",
      "name": "Internal",
      "rect": {
        "llx": 300.0,
        "lly": 587.0,
        "urx": 500.0,
        "ury": 605.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "no_export": true,
      "layer": "Controls",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "underline"
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 560.0,
        "urx": 592.0,
        "ury": 574.4
      },
      "content": [
        "Five ticks, each its own symbol"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "check_box",
      "name": "Tick0",
      "rect": {
        "llx": 300.0,
        "lly": 558.0,
        "urx": 312.0,
        "ury": 570.0
      },
      "symbol": "check",
      "export_value": "yes",
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "highlight": "push",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "checked": true,
      "checked_by_default": true,
      "pages": [
        3
      ]
    },
    {
      "type": "check_box",
      "name": "Tick1",
      "rect": {
        "llx": 330.0,
        "lly": 558.0,
        "urx": 342.0,
        "ury": 570.0
      },
      "symbol": "cross",
      "export_value": "yes",
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "highlight": "push",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "read_only": true,
      "pages": [
        3
      ]
    },
    {
      "type": "check_box",
      "name": "Tick2",
      "rect": {
        "llx": 360.0,
        "lly": 558.0,
        "urx": 372.0,
        "ury": 570.0
      },
      "symbol": "circle",
      "export_value": "yes",
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "highlight": "push",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "required": true,
      "description": "Five ticks, each its own symbol",
      "pages": [
        3
      ]
    },
    {
      "type": "check_box",
      "name": "Tick3",
      "rect": {
        "llx": 390.0,
        "lly": 558.0,
        "urx": 402.0,
        "ury": 570.0
      },
      "symbol": "diamond",
      "export_value": "yes",
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "highlight": "push",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "no_export": true,
      "tab_rank": 2,
      "pages": [
        3
      ]
    },
    {
      "type": "check_box",
      "name": "Tick4",
      "rect": {
        "llx": 420.0,
        "lly": 558.0,
        "urx": 432.0,
        "ury": 570.0
      },
      "symbol": "square",
      "export_value": "yes",
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "highlight": "push",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "layer": "Controls",
      "triggers": {
        "up": {
          "show": [
            "Code"
          ]
        }
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 520.0,
        "urx": 592.0,
        "ury": 534.4
      },
      "content": [
        "Several choices, sorted"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "choice_field",
      "name": "Colours",
      "rect": {
        "llx": 300.0,
        "lly": 476.0,
        "urx": 450.0,
        "ury": 532.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "options": [
        {
          "value": "blue",
          "label": "Blue"
        },
        {
          "value": "green",
          "label": "Green"
        },
        {
          "value": "red",
          "label": "Red"
        }
      ],
      "default_selected": "blue",
      "multi_select": true,
      "sorted": true,
      "required": true,
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "highlight": "invert",
      "tab_rank": 3,
      "description": "Several choices, sorted",
      "layer": "Controls",
      "triggers": {
        "blurred": {
          "show": [
            "Colours"
          ]
        }
      },
      "border": {
        "width": 1.0,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": {
          "dashed": {
            "lengths": [
              3.0,
              2.0
            ]
          }
        }
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 450.0,
        "urx": 592.0,
        "ury": 464.4
      },
      "content": [
        "One choice, or your own"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "choice_field",
      "name": "Speed",
      "rect": {
        "llx": 300.0,
        "lly": 447.0,
        "urx": 450.0,
        "ury": 465.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "options": [
        "Normal",
        "Urgent"
      ],
      "presentation": "editable",
      "default_selected": "Normal",
      "align": "center",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "beveled"
      },
      "pages": [
        3
      ]
    },
    {
      "type": "choice_field",
      "name": "SpeedCopy",
      "rect": {
        "llx": 460.0,
        "lly": 447.0,
        "urx": 570.0,
        "ury": 465.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "options": [
        "Normal"
      ],
      "presentation": "dropdown",
      "read_only": true,
      "no_export": true,
      "align": "right",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "inset"
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 410.0,
        "urx": 592.0,
        "ury": 424.4
      },
      "content": [
        "Delivery"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "radio_group",
      "name": "Delivery",
      "options": [
        {
          "value": "post",
          "rect": {
            "llx": 300.0,
            "lly": 407.0,
            "urx": 312.0,
            "ury": 419.0
          },
          "description": "By post, in three days"
        },
        {
          "value": "courier",
          "rect": {
            "llx": 380.0,
            "lly": 407.0,
            "urx": 392.0,
            "ury": 419.0
          },
          "description": "By courier, the next day"
        },
        {
          "value": "post",
          "rect": {
            "llx": 460.0,
            "lly": 407.0,
            "urx": 472.0,
            "ury": 419.0
          },
          "description": "By post, in three days"
        }
      ],
      "default_selected": "post",
      "no_toggle_to_off": true,
      "in_unison": true,
      "required": true,
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "highlight": "outline",
      "tab_rank": 4,
      "layer": "Controls",
      "triggers": {
        "up": {
          "show": [
            "Delivery"
          ]
        }
      },
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "pages": [
        3
      ]
    },
    {
      "type": "radio_group",
      "name": "Wrapping",
      "options": [
        {
          "value": "paper",
          "rect": {
            "llx": 300.0,
            "lly": 387.0,
            "urx": 312.0,
            "ury": 399.0
          }
        }
      ],
      "read_only": true,
      "no_export": true,
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 350.0,
        "urx": 592.0,
        "ury": 364.4
      },
      "content": [
        "Signing freezes the code"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "signature_field",
      "name": "Sign0",
      "rect": {
        "llx": 300.0,
        "lly": 330.0,
        "urx": 500.0,
        "ury": 364.0
      },
      "locks": {
        "fields": {
          "only": [
            "Code"
          ]
        }
      },
      "tooltip": "Signing freezes the code",
      "description": "Signing freezes the code",
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "tab_rank": 5,
      "highlight": "invert",
      "layer": "Controls",
      "triggers": {
        "focused": {
          "show": [
            "Code"
          ]
        }
      },
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "required": true,
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 306.0,
        "urx": 592.0,
        "ury": 320.4
      },
      "content": [
        "Signing freezes all but the note"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "signature_field",
      "name": "Sign1",
      "rect": {
        "llx": 300.0,
        "lly": 286.0,
        "urx": 500.0,
        "ury": 320.0
      },
      "locks": {
        "fields": {
          "all_but": [
            "Internal"
          ]
        }
      },
      "tooltip": "Signing freezes all but the note",
      "description": "Signing freezes all but the note",
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "tab_rank": 5,
      "highlight": "invert",
      "layer": "Controls",
      "triggers": {
        "focused": {
          "show": [
            "Code"
          ]
        }
      },
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "read_only": true,
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 262.0,
        "urx": 592.0,
        "ury": 276.4
      },
      "content": [
        "Signing freezes everything"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "signature_field",
      "name": "Sign2",
      "rect": {
        "llx": 300.0,
        "lly": 242.0,
        "urx": 500.0,
        "ury": 276.0
      },
      "locks": {
        "fields": "all"
      },
      "tooltip": "Signing freezes everything",
      "description": "Signing freezes everything",
      "background": [
        0.97,
        0.97,
        0.97
      ],
      "tab_rank": 5,
      "highlight": "invert",
      "layer": "Controls",
      "triggers": {
        "focused": {
          "show": [
            "Code"
          ]
        }
      },
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ],
        "style": "solid"
      },
      "no_export": true,
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 218.0,
        "urx": 592.0,
        "ury": 228.8
      },
      "content": [
        "dashed, 1 pt, 0.6 0.6 0.6"
      ],
      "font": "DejaVuSans",
      "font_size": 9.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 204.0,
        "urx": 592.0,
        "ury": 214.8
      },
      "content": [
        "bevelled, 0.75 pt, 0.6 0.6 0.6"
      ],
      "font": "DejaVuSans",
      "font_size": 9.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 190.0,
        "urx": 592.0,
        "ury": 200.8
      },
      "content": [
        "inset, 0.75 pt, 0.6 0.6 0.6"
      ],
      "font": "DejaVuSans",
      "font_size": 9.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 166.0,
        "urx": 592.0,
        "ury": 176.8
      },
      "content": [
        "Both boxes take their font, size, centring and value from the group they sit in."
      ],
      "font": "DejaVuSans",
      "font_size": 9.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 142.0,
        "urx": 592.0,
        "ury": 156.4
      },
      "content": [
        "Order number"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text_field",
      "name": "Order.Number",
      "rect": {
        "llx": 300.0,
        "lly": 139.0,
        "urx": 500.0,
        "ury": 157.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "value": "2026-0917",
      "read_only": true,
      "align": "center",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        3
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 72.0,
        "lly": 112.0,
        "urx": 592.0,
        "ury": 126.4
      },
      "content": [
        "Order number, copy"
      ],
      "font": "DejaVuSans",
      "font_size": 12.0,
      "pages": [
        3
      ]
    },
    {
      "type": "text_field",
      "name": "Order.Copy",
      "rect": {
        "llx": 300.0,
        "lly": 109.0,
        "urx": 500.0,
        "ury": 127.0
      },
      "font": "DejaVuSans",
      "font_size": 12.0,
      "value": "2026-0917",
      "read_only": true,
      "align": "center",
      "border": {
        "width": 0.75,
        "color": [
          0.6,
          0.6,
          0.6
        ]
      },
      "pages": [
        3
      ]
    }
  ],
  "structure": {
    "children": [
      {
        "tag": "Document",
        "children": [
          {
            "tag": "Div",
            "children": [
              {
                "tag": "Form",
                "alt": "Card",
                "annotations": "payment-card"
              },
              {
                "tag": "Form",
                "alt": "Transfer",
                "annotations": "payment-transfer"
              }
            ]
          }
        ]
      }
    ]
  },
  "metadata": {
    "title": "A document with a form"
  },
  "layers": [
    {
      "name": "Controls"
    }
  ],
  "destinations": [
    {
      "name": "signature",
      "page": 1,
      "fit": {
        "fixed": {
          "left": 72.0,
          "top": 400.0
        }
      }
    }
  ],
  "page_tab_orders": [
    {
      "page": 2,
      "order": "row"
    },
    {
      "page": 3,
      "order": "column"
    }
  ],
  "page_triggers": [
    {
      "page": 3,
      "opened": {
        "show": [
          "Code"
        ]
      },
      "closed": {
        "reset_fields": {
          "fields": {
            "only": [
              "Pin"
            ]
          }
        }
      }
    }
  ],
  "drawings": [
    {
      "name": "stamp",
      "box": {
        "llx": 0.0,
        "lly": 0.0,
        "urx": 20.0,
        "ury": 20.0
      },
      "items": [
        {
          "type": "path",
          "segments": [
            {
              "circle": {
                "centre": {
                  "x": 10.0,
                  "y": 10.0
                },
                "r": 9.0
              }
            }
          ],
          "fill": [
            0.75,
            0.15,
            0.15
          ]
        },
        {
          "type": "rect",
          "rect": {
            "llx": 6.0,
            "lly": 6.0,
            "urx": 14.0,
            "ury": 14.0
          },
          "fill": [
            1.0,
            1.0,
            1.0
          ]
        }
      ]
    },
    {
      "name": "stamp_pressed",
      "box": {
        "llx": 0.0,
        "lly": 0.0,
        "urx": 20.0,
        "ury": 20.0
      },
      "items": [
        {
          "type": "path",
          "segments": [
            {
              "circle": {
                "centre": {
                  "x": 10.0,
                  "y": 10.0
                },
                "r": 9.0
              }
            }
          ],
          "fill": [
            0.15,
            0.3,
            0.75
          ]
        }
      ]
    }
  ]
}
