Text
The <Text> element renders styled text content. Text nodes support font
selection, sizing, color, alignment, and underline.
Example
<Text font_size="14" font_name="OpenSans" style="bold"
alignment="center" color="#333333">
Welcome to Docraft
</Text>
Attributes
Attribute |
Type |
Description |
|---|---|---|
|
float |
Font size in points (default |
|
string |
Font family name (default |
|
string |
|
|
string |
|
|
color |
Text color (hex or named). |
|
bool |
Enable underline rendering. |
The text content is the inner text of the XML element.
PageNumber
<PageNumber> is a special text node whose content is automatically
replaced by the current page number at render time. It supports the same
attributes as <Text>.
<Footer>
<PageNumber font_size="10" alignment="center"/>
</Footer>