Skip to main content

parse_linearization_dict

Function parse_linearization_dict 

Source
pub fn parse_linearization_dict(
    input: &[u8],
) -> Result<Option<LinearizationParams>, PdfError>
Expand description

Parse the linearization parameter dictionary, if present.

Per §F.3.3 the parameter dictionary lives within the first 1024 bytes of the file. We scan only that prefix to keep the non-linearized fast path cheap.