Skip to main content

coerce_value

Function coerce_value 

Source
fn coerce_value(
    slot: SlotType,
    value: &SetValue,
    em_pt: f64,
) -> Option<AttrValue>
Expand description

Coerce a parser literal to the type required by the target slot. Length values are resolved to PDF points using em_pt for em literals.