On line guide/help

You are on page 19 of the online help. Navigate sequentially through the guide pages or search for a topic of interest to you.

Index Prev. Next

Rectangle

Draw a rectangle

Prints a rectangle with rounded edges (if desired). Its usage is similar to the box element, except that it does not contain any text.


Parameters

Elements / attributes of the <rectangle> / <rect> element:

Coordinate parameters (required) that define the rectangle area
<x1> (or <x>) Starting X coordinate (upper/left corner)
<y1> (or <y>) Starting Y coordinate (upper/left corner)
<x2> Ending X coordinate (bottom/right corner)
<y2> Ending Y coordinate (bottom/right corner)

Instead of x2 and y2, the size of the rectangle can be set (one of the two methods is required):
<width> Width of the rectangle, starting from the X coordinate
<height> Height of the rectangle, starting from the Y coordinate

Other parameters:
<r> (or <radius>) Radius of the rounded corners (default 0 = square corners)
<border> Selects which corners are rounded when the radius is greater than 0: four digits, one for each corner in this order: top-right, bottom-right, bottom-left, top-left (1 = rounded, 0 = square). Default: 1111 (all the corners are rounded)
<linestyle> Line style of the border (if not set, the default line style is used)
<fillstyle> (or <fill>) Fill style of the rectangle (if not set, the default fill style is used). Only the solid fill is supported.

Optional parameters.
<printif> Optional expression: the element is printed only if the expression is true, eg. {doc.type}=1. See the Conditional printing page.

Example

A rectangle with rounded corners and a rectangle with only two rounded corners.

Rectangle examples