Module parser

Module parser 

Source
Expand description

Basic functionality for parsing a PDF file.

Structs§

Context
HexStringLexer
Lexer
Lexer has functionality to jump around and traverse the PDF lexemes of a string in any direction.
ParseFlags
StringLexer
A lexer for PDF strings. Breaks the string up into single characters (u8) It’s also possible to get the number of indices of the original array that was traversed by the Iterator.
Substr
A slice from some original string - a lexeme.

Functions§

parse
Can parse stream but only if its dictionary does not contain indirect references. Use parse_stream if this is insufficient.
parse_indirect_object
Parses an Object starting at the current position of lexer. Almost as Reader::parse_object, but this function does not take Reader, at the expense that it cannot dereference
parse_indirect_stream
parse_stream
parse_with_lexer
Recursive. Can parse stream but only if its dictionary does not contain indirect references. Use parse_stream if this is not sufficient.
parse_with_lexer_ctx
Recursive. Can parse stream but only if its dictionary does not contain indirect references. Use parse_stream if this is not sufficient.
parse_xref_stream_and_trailer
Reads xref sections (from stream) and trailer starting at the position of the Lexer.
parse_xref_table_and_trailer
Reads xref sections (from table) and trailer starting at the position of the Lexer.
read_xref_and_trailer_at