Skip to main content

decode_image_view

Function decode_image_view 

Source
pub fn decode_image_view(
    doc: &DocumentView<'_>,
    dict: &Dict,
    raw: &[u8],
    inline: bool,
) -> Result<CodedImage, ImageCodecError>
Expand description

decode_image over an explicit DocumentView — the general form.

Exists because pdfcer-render renders whatever view it was handed (decision 018): rasterizing an editing session must resolve an image dictionary’s indirect entries, and a /JBIG2Globals payload, against the session rather than the file on disk. Everything else about the decode is identical; see decode_image for the parameter contract and the error posture.

§Errors

As decode_image.