Skip to main content

Module element

Module element 

Source
Expand description

The compose element vocabulary: painted content one step above raw canvas operators. A Content value sits in crate::pdf::Page::content and lowers onto the page’s Canvas at assemble time, after any operators the caller already painted there directly — elements paint over manual canvas work, never under it.

Structs§

Image
A raster image placed at a point.
Link
A clickable rectangle, lowered into a LinkAnnotation on the page.
Paragraph
A block of text wrapped, aligned, and (for ParagraphAlign::Justify) stretched to fill a rectangle.
Text
One line of text at a fixed baseline origin.

Enums§

Content
One piece of composed page content.
ParagraphAlign
Horizontal alignment for a Paragraph.

Traits§

Draw
Something that paints itself onto a Canvas. Send so a Content::Custom value never blocks a Pdf from crossing a thread boundary.