Rect

The <rect> can be used to display a rectangle in a certain color.

It can be used both within <body> and <template>.

Examples

<template ...>
  <rect
    bottom="247mm"
    left="0"
    width="210mm"
    height="50mm"
    color="rgb(255, 10, 10)"
  />
</template>
<body ...>
  ...
  <rect
    width="100%"
    height="2cm"
    border="2"
    borderColor="red"
    spaceBefore="10"
    spaceAfter="20"
  />
</template>

Last updated