Crate laser_pdf

Source

Modules§

elements
flex
fonts
image
serde_elements
test_utils
text
utils

Macros§

define_serde_element_value

Structs§

BreakableDraw
BreakableMeasure
DrawCtx
ElementSize
FirstLocationUsageCtx
FontSet
Layer
LineDashPattern
ISO 32000-1:2008 8.4.3.6
LineStyle
Location
A position for an element to render at. This doesn’t include the width at the moment, as this would make things much more complicated. The line breaking iterator wouldn’t work in its current form for example. Things are much easier if an element can make width related calculations in the beginning an doesn’t have to recalculate them on a page break.
MeasureCtx
Page
Pdf
WidthConstraint

Enums§

FirstLocationUsage
LineCapStyle
ISO 32000-1:2008 8.4.3.3
VAlign

Constants§

EMPTY_FIELD

Traits§

CompositeElement
CompositeElementCallback
Element
Rules: Width returned from measure has to be matched in draw given the same constraint (even if there’s some preferred height).

Type Aliases§

Break
This returns a new Location because some collection elements need to keep multiple Locations at once (e.g. for page breaking inside of a horizontal list)
Color
Pos
Size