Links

Text

The <text> can be used whenever you want to display some text.
Content within <text> can contain some formatting tags like <b>, <i> or <u> and can use <br/> for force a new line.
It can be used both within <body> and within <template>.

Examples

<body ...>
...
<text class="h1" spaceAfter="10">
Hello World!!!<br/>
<b>bold</b>
<i>italic</i><br/>
<u>underlined</u>
</text>
</body>
<template ...>
...
<text
bottom="12mm"
left="0"
width="200mm"
height="10mm"
fontSize="8"
align="center"
>
Atfinity AG, Elias-Canetti-Strasse 7, 8050 Zürich, Switzerland
</text>
...
</template>

Attributes

left

if used within <template> this is the distance from the left border of the document, this can be in pt, mm or cm, e.g. left="20mm". Ignored when used in <body>.

bottom

if used within a template this is the distance from the bottom border of the document, this can be in pt, mm or cm, e.g. top="20mm".

class (optional)

The styleclass to use to display content.

color (optional)

A color in either plain text html color (e.g. red, white, black, ...) or as an rgb value, e.g. rgb(255, 10, 10).

spaceBefore (optional)

Space in point to add before the element

spaceAfter (optional)

Space in point to add after the element
​
​
Last modified 4mo ago