Module genpdf::elements [−][src]
Expand description
Elements of a PDF document.
This module provides implementations of the Element
trait that can be used to render and
arrange text and shapes.
It includes the following elements:
- Containers:
LinearLayout
: arranges its elements sequentiallyTableLayout
: arranges its elements in columns and rowsOrderedList
andUnorderedList
: arrange their elements sequentially with bullet points
- Text:
- Wrappers:
FramedElement
: draws a frame around the wrapped elementPaddedElement
: adds a padding to the wrapped elementStyledElement
: sets a default style for the wrapped element and its children
- Other:
You can create custom elements by implementing the Element
trait.
Structs
Break | A line break. |
BulletPoint | A bullet point in a list. |
FrameCellDecorator | A cell decorator that draws frames around table cells. |
FramedElement | Adds a frame around the wrapped element. |
Image | An image to embed in the PDF. |
LinearLayout | Arranges a list of elements sequentially. |
OrderedList | An ordered list of elements with arabic numbers. |
PaddedElement | Adds a padding to the wrapped element. |
PageBreak | A page break. |
Paragraph | A multi-line wrapped paragraph of formatted text. |
StyledElement | Adds a default style to the wrapped element and its children. |
TableLayout | Arranges elements in columns and rows. |
TableLayoutRow | A row of a table layout. |
Text | A single line of formatted text. |
UnorderedList | An unordered list of elements with bullet points. |
Traits
CellDecorator | A decorator for table cells. |