generate_dope_card_pdf

Function generate_dope_card_pdf 

Source
pub fn generate_dope_card_pdf(
    config: &DopeCardConfig,
    rows: &[CardRow],
    range_unit: RangeUnit,
) -> Result<Vec<u8>, Box<dyn Error>>
Expand description

Generate a dope card PDF matching Glenn’s format with row striping.

rows is display-ready per CardRow’s convention (already converted to the card’s chosen angular unit, and to range_unit); range_unit only selects the Range column’s sub-header text (“Yd” or “M”) – it does not convert row.range.