Module pdf::parser[][src]

Basic functionality for parsing a PDF file.

Structs

Context
Lexer

Lexer has functionality to jump around and traverse the PDF lexemes of a string in any direction.

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