Td
Td wraps a table cell, just like HTML.
Allowed attributes: align, background-font-family, background-size, background-text, background-textcolor, background-transform, backgroundcolor, border-bottom, border-bottom-color, border-left, border-left-color, border-right, border-right-color, border-top, border-top-color, class, colspan, id, padding, padding-bottom, padding-left, padding-right, padding-top, rotate, rowspan, valign
Child elements: Barcode, Bookmark, Box, Copy-of, ForAll, Frame, Groupcontents, Image, Loop, Overlay, Paragraph, Switch, Table, VSpace
Horizontal alignment of the cell contents. Defaults to left.
left: |
The contents is left aligned (ragged right). This is the default. |
right: |
The contents of the cell is right aligned. |
center: |
The contents of the cell is aligned at the center, with ragged right and left margin. |
justify: |
Justified text with straight margins. |
Set the font family of the background text. Defaults to the table font.
Controls the size of the background text. Currently only 'contain' and 'auto' is allowed.
contain: |
Fill the height of the table cell. |
auto: |
The background text is not scaled. |
A text that should be placed in the background of the table cell.
The color of the text in the background (if any).
The transformation of the background text (if any). Currently supported: rotate(-40deg) (and other angles in the range 0 to -90).
The name of the background color (if the cell should get a background).
The width (thickness) of the bottom border. The border is inside the cell.
The color of the bottom border.
The width (thickness) of the left border. The border is inside the cell.
The color of the left border.
The width (thickness) of the right border. The border is inside the cell.
The color of the left border.
The width (thickness) of the top border. The border is inside the cell.
The color of the top border.
The css class to be used for formatting the table cell.
The number of columns this cell spans. Defaults to 1.
CSS id for this table cell.
Shorthand for setting padding-top and the other values with this length.
Set the inner distance (width between contents and the border) to the bottom edge.
Set the inner distance (width between contents and the border) to the left edge.
Set the inner distance (width between contents and the border) to the right edge.
Set the inner distance (width between contents and the border) to the top edge.
Rotate the contents of the table cell. Positive values return clockwise. This is experimental and currently only for text.
The number of rows for this cell. Defaults to 1.
The vertical alignment of the cell.
top: |
The contents is aligned at the top edge of the cell. |
middle: |
The contents is vertically centered. |
bottom: |
The contents is aligned at the bottom edge of the cell. |
The child elements of the table cells are either block objects that start a new line or inline objects that are placed horizontally next to each other (from left to right) until the width of the table cell forces a line break. Block objects are Paragraph, Table and Box, inline objects are Barcode and Image.
The following example places a background text behind the Td cell.
<DefineFontfamily name="td-background" fontsize="12" leading="12"> <Regular fontface="TeXGyreHeros-Bold"/> </DefineFontfamily> <Record element="data"> <PlaceObject> <Table stretch="max"> <Columns> <Column width="5cm"/> </Columns> <Tr> <Td border-top="0.25pt" border-bottom="0.25pt" background-text="hello!" background-textcolor="goldenrod" background-transform="rotate(-30deg)" background-size="contain" background-font-family="td-background"> <Paragraph><Value>A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.</Value> </Paragraph> </Td> </Tr> </Table> </PlaceObject> </Record>