Skip to main content

parse_xref_stream

Function parse_xref_stream 

Source
pub fn parse_xref_stream(
    source: &[u8],
    offset: u64,
    mode: ParsingMode,
) -> Result<(XrefSection, HashMap<Name, Object>), PdfError>
Expand description

Parse a cross-reference stream at the given offset.

Returns the xref section entries and the trailer dictionary (which is the stream’s own dictionary).