XML Attributes (PDF Reports)
Introduction
XML attributes define the appearance of XML elements on PDF reports.
This article explains how to use XML attributes.
Core Attributes
Name | Description | ||||
---|---|---|---|---|---|
height |
Controls the height of an element. Use |
||||
id |
|||||
lineHeight |
Controls the height of a line. Use |
||||
margin |
Use |
||||
marginBottom |
Controls the bottom margin of an element. Use |
||||
marginLeft |
Controls the left margin of an element. Use |
||||
marginRight |
Controls the right margin of an element. Use |
||||
marginTop |
Controls the top margin of an element. Use |
||||
maxSize |
|||||
name |
|||||
noWrap |
Controls whether text wraps inside margins. Use |
||||
pageBreak |
|||||
pageMargins |
Controls the margins of report pages.
|
||||
pageOrientation |
Controls the orientation of report pages.
|
||||
pageSize |
Controls the size of report pages.
|
||||
style |
Controls the style(s) applied to an element.
You can apply one or multiple styles to an element.
|
||||
width |
Controls the width of an element. Use |
Text Attributes
Name | Description | ||
---|---|---|---|
alignment |
Controls text alignment.
|
||
bold |
Controls whether text displays in bold. Use |
||
color |
Controls text color.
|
||
decoration |
Controls text decoration, typically the line that is over, under, or through the text.
|
||
decorationColor |
Controls the color of text decoration.
|
||
decorationStyle |
Controls the style of text decoration.
|
||
font |
Controls the font for text.
|
||
fontSize |
Controls text size.
|
||
italics |
Controls whether text displays in italics. Use |
||
preserveWhitespace |
Controls whether line breaks and tabs are honored for text entered inside of Use |
||
rotate |
Controls the angle at which to rotate text. Use |
Table Attributes
Name | Description | ||
---|---|---|---|
border |
Controls whether a border displays on a table. Use |
||
borderBottom |
Controls whether a border displays at the bottom of a cell. Use |
||
borderLeft |
Controls whether a border displays on the left side of a cell. Use |
||
borderRight |
Controls whether a border displays on the right side of a cell. Use |
||
borderTop |
Controls whether a border displays at the top of a cell. Use |
||
borderWidth |
Controls the border width of a table. Use |
||
breakableRows |
Controls whether rows in a table can break across pages.
|
||
cellPadding |
Controls the space between the cell perimeter and cell content. Use |
||
columnWidths |
Controls the column widths of a table in a
Use the
|
||
col width |
Controls the column widths of a table in a
Use the
|
||
fillColor |
Controls the color of a cell.
|
||
rowsBeforeBreak |
Controls how many data rows are necessary to display a table on a page. Use |
||
Image Attributes
Name | Description | ||
---|---|---|---|
caption |
Sets the identifying caption for an
Use |
||
fit |
Controls the size of a Use |
||
maxImageSize |
Sets the maximum size of an
Use |
||
Controls whether text displays as an image inside a Use |
|||
src |
Sets the external source that embeds an image inside an Use |