Skip to main content

Crate laser_pdf

Crate laser_pdf 

Source

Modules§

elements
flex
fonts
image
serde_elements
test_utils
utils

Macros§

define_serde_element_value

Structs§

BreakableDraw
BreakableMeasure
DrawCtx
ElementSize
FirstLocationUsageCtx
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
TextPiecesCache
A data structure that holds cached text pieces (shaped and unicode-segmentend such that it is ready for line breaking). This type gets passed around in the contexts and is needed by the crate::elements::text::Text and crate::elements::rich_text::RichText elements. Currently only Self::new is public for API stability reasons.
WidthConstraint

Enums§

FirstLocationUsage
LineCapStyle
ISO 32000-1:2008 8.4.3.3

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