fn decode_pdf_image(
pdf_image: &PdfImage<'_>,
page_num: u32,
budget: usize,
) -> Option<ExtractedImage>Expand description
Decode a PDF image into ExtractedImage format.
budget is the number of bytes still available under MAX_TOTAL_BYTES;
anything larger is rejected rather than allocated.