Skip to main content

read

Function read 

Source
pub async fn read<'s, S: RangeSource, W: Work>(
    source: &S,
    session: &'s Session,
    operation: &W,
    offset: u64,
) -> Result<Value<'s, S::Document, S::Generation>, ReadFailure<S::Error>>
Expand description

Reads one original PDF VALUE, not a complete file, indirect stream or a signature verdict. Returned ranges keep the original source snapshot. Whitespace/comments before the value are consumed; unrelated following tokens are not included in Value::end. All nesting is iterative.