{
  "items": [
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 784.0,
        "urx": 539.276,
        "ury": 800.8
      },
      "content": [
        "Rich text: styles, sizes, underlining, colour"
      ],
      "font": "DejaVuSans",
      "font_size": 14.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 720.4,
        "urx": 476.0,
        "ury": 760.0
      },
      "content": [
        "The amount due is ",
        {
          "text": "1 240.00 EUR",
          "underline": true
        },
        ", payable within thirty days. The balance carries interest at the statutory rate from the day it falls due, and no reminder has to be sent for it to do so."
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "align": "justify",
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 660.8,
        "urx": 476.0,
        "ury": 694.4
      },
      "content": [
        "A line is as tall as ",
        {
          "text": "the largest",
          "font_size": 17.0
        },
        " of the styles standing on it, and no taller."
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 621.6,
        "urx": 476.0,
        "ury": 634.8
      },
      "content": [
        "A run can carry its own ",
        {
          "text": "colour",
          "color": [0.0, 0.35, 0.7]
        },
        ", set apart from the black around it."
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 569.2,
        "urx": 476.0,
        "ury": 595.6
      },
      "content": [
        "A word may change style in the middle: under",
        {
          "text": "lined",
          "underline": true
        },
        " is still one word, and is never broken at the join."
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 533.6,
        "urx": 476.0,
        "ury": 543.2
      },
      "content": [
        "The small print sits in small type, ",
        "flush right",
        ", below the body of the text."
      ],
      "font": "DejaVuSans",
      "font_size": 8.0,
      "align": "right",
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 466.8,
        "urx": 476.0,
        "ury": 507.6
      },
      "content": [
        "A heading set ",
        {
          "text": "hollow",
          "outline": {
            "width": 0.6,
            "color": [
              0.0,
              0.0,
              0.0
            ]
          }
        },
        ", or ",
        {
          "text": "thickened",
          "color": [
            0.0,
            0.35,
            0.7
          ],
          "outline": {
            "width": 0.8,
            "color": [
              0.0,
              0.2,
              0.45
            ],
            "filled": true
          }
        },
        " without a bolder font"
      ],
      "font": "DejaVuSans",
      "font_size": 17.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 427.4,
        "urx": 476.0,
        "ury": 453.8
      },
      "content": [
        "A rule can sit where it is told: ",
        {
          "text": "a heavy underline",
          "underline": {
            "position": -4.0,
            "thickness": 1.5
          }
        },
        " clear of the descenders, or ",
        {
          "text": "a hairline",
          "strikethrough": {
            "position": 3.0,
            "thickness": 0.4
          }
        },
        " through the letters."
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 401.2,
        "urx": 476.0,
        "ury": 414.4
      },
      "content": [
        "A reference broken after its slashes, and cut where nothing else will do:"
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 335.4,
        "urx": 206.0,
        "ury": 388.2
      },
      "content": [
        "hqf-pdf.com/examples/rich-text/overlong/ABCDEFGHJKLMNPQRSTUVWXYZ0123456789"
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "overlong": "break",
      "cut_mark": "-",
      "break_after": "/",
      "pages": [
        1
      ]
    },
    {
      "type": "rect",
      "rect": {
        "llx": 56.0,
        "lly": 249.4,
        "urx": 476.0,
        "ury": 309.4
      },
      "stroke": {
        "width": 0.5,
        "color": [
          0.7,
          0.7,
          0.7
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 76.0,
        "lly": 266.2,
        "urx": 456.0,
        "ury": 292.6
      },
      "content": [
        "This paragraph is centred, across and down, in the box drawn around it."
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "align": "center",
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 225.8,
        "urx": 476.0,
        "ury": 235.4
      },
      "content": [
        "2 lines, 26 pt tall together, the widest 341 pt wide."
      ],
      "font": "DejaVuSans",
      "font_size": 8.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 199.6,
        "urx": 476.0,
        "ury": 212.8
      },
      "content": [
        "Prices set in two styles, lined up on their decimal points:"
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 161.9,
        "urx": 476.0,
        "ury": 193.1
      },
      "content": [
        "Binding",
        "\t",
        {
          "text": "18.50",
          "font_size": 13.0,
          "color": [
            0.0,
            0.35,
            0.7
          ]
        },
        "\n",
        "Cover, two colours",
        "\t",
        {
          "text": "1240.05",
          "font_size": 13.0,
          "color": [
            0.0,
            0.35,
            0.7
          ]
        }
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "tabs": {
        "method": "ruler",
        "ruler": [
          300.0
        ],
        "alignments": [
          "decimal"
        ]
      },
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 122.5,
        "urx": 476.0,
        "ury": 148.9
      },
      "content": [
        "A justified paragraph can choose how its closing line is set: this one fills every line but the last to both edges, and sends the last one flush right."
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "align": "justify",
      "last_align": "right",
      "pages": [
        1
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 784.0,
        "urx": 539.276,
        "ury": 800.8
      },
      "content": [
        "Leaders and line height"
      ],
      "font": "DejaVuSans",
      "font_size": 14.0,
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 733.6,
        "urx": 476.0,
        "ury": 760.0
      },
      "content": [
        "A table of contents: dots lead from each title to its page number, set in the size of the title they follow."
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 686.3,
        "urx": 476.0,
        "ury": 727.1
      },
      "content": [
        {
          "text": "Styles within a paragraph",
          "font_size": 12.0
        },
        {
          "text": "\t",
          "font_size": 12.0
        },
        {
          "text": "3",
          "color": [0.0, 0.35, 0.7]
        },
        "\n",
        "Rules, outlines and colour",
        "\t",
        {
          "text": "8",
          "color": [0.0, 0.35, 0.7]
        },
        "\n",
        {
          "text": "Tab stops and leaders",
          "font_size": 12.0
        },
        {
          "text": "\t",
          "font_size": 12.0
        },
        {
          "text": "15",
          "color": [0.0, 0.35, 0.7]
        }
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "tabs": {
        "method": "ruler",
        "ruler": [
          420.0
        ],
        "alignments": [
          "right"
        ]
      },
      "leader": ".",
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 633.9,
        "urx": 476.0,
        "ury": 660.3
      },
      "content": [
        "The same three lines twice. On the left, each line is as tall as the largest figure on it; on the right, as tall as the label it opens with."
      ],
      "font": "DejaVuSans",
      "font_size": 11.0,
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 56.0,
        "lly": 560.0,
        "urx": 256.0,
        "ury": 620.9
      },
      "content": [
        "Goods",
        "\t",
        {
          "text": "1 240.00",
          "font_size": 15.0,
          "color": [0.0, 0.35, 0.7]
        },
        "\n",
        "Delivery",
        "\t",
        {
          "text": "248.00",
          "font_size": 15.0,
          "color": [0.0, 0.35, 0.7]
        },
        "\n",
        "Amount due",
        "\t",
        {
          "text": "1 488.00",
          "font_size": 15.0,
          "color": [0.0, 0.35, 0.7]
        }
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "tabs": {
        "method": "ruler",
        "ruler": [
          200.0
        ],
        "alignments": [
          "right"
        ]
      },
      "first_baseline": "ascender",
      "line_height": "tallest",
      "pages": [
        2
      ]
    },
    {
      "type": "text",
      "rect": {
        "llx": 276.0,
        "lly": 560.0,
        "urx": 476.0,
        "ury": 620.9
      },
      "content": [
        "Goods",
        "\t",
        {
          "text": "1 240.00",
          "font_size": 15.0,
          "color": [0.0, 0.35, 0.7]
        },
        "\n",
        "Delivery",
        "\t",
        {
          "text": "248.00",
          "font_size": 15.0,
          "color": [0.0, 0.35, 0.7]
        },
        "\n",
        "Amount due",
        "\t",
        {
          "text": "1 488.00",
          "font_size": 15.0,
          "color": [0.0, 0.35, 0.7]
        }
      ],
      "font": "DejaVuSans",
      "font_size": 10.0,
      "tabs": {
        "method": "ruler",
        "ruler": [
          200.0
        ],
        "alignments": [
          "right"
        ]
      },
      "first_baseline": "ascender",
      "line_height": "first",
      "pages": [
        2
      ]
    }
  ]
}
