Module rckive_genpdf::elements

source ·
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:
  • Text:
    • Text: a single line of text
    • Paragraph: a wrapped and aligned paragraph of text
  • Wrappers:
  • Other:
    • Image: an image (requires the images feature)
    • Break: adds forced line breaks as a spacer
    • PageBreak: adds a forced page break

You can create custom elements by implementing the Element trait.

Structs

A line break.
A bullet point in a list.
A cell decorator that draws frames around table cells.
Adds a frame around the wrapped element.
An image to embed in the PDF.
Arranges a list of elements sequentially.
An ordered list of elements with arabic numbers.
Adds a padding to the wrapped element.
A page break.
A multi-line wrapped paragraph of formatted text.
Adds a default style to the wrapped element and its children.
Arranges elements in columns and rows.
A row of a table layout.
A single line of formatted text.
An unordered list of elements with bullet points.

Traits

A decorator for table cells.
Helper trait for creating boxed elements.