Skip to main content

generate_widget_appearance

Function generate_widget_appearance 

Source
pub fn generate_widget_appearance(
    field: &FormField,
    rect: Rect,
    dr_fonts: Option<&PdfDict>,
) -> Option<GeneratedAppearance>
Expand description

Build a generated appearance for a widget, or None when nothing should be drawn (button/signature fields, empty/absent values, password fields, or a degenerate rectangle). dr_fonts is the AcroForm /DR /Font dictionary, used to resolve the /DA font name to a concrete font object.