Expand description
Basic functionality for parsing a PDF file.
Structs§
- Context
- HexString
Lexer - Lexer
Lexerhas functionality to jump around and traverse the PDF lexemes of a string in any direction.- Parse
Flags - String
Lexer - 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_streamif this is insufficient. - parse_
indirect_ object - Parses an Object starting at the current position of
lexer. Almost asReader::parse_object, but this function does not takeReader, 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_streamif this is not sufficient. - parse_
with_ lexer_ ctx - Recursive. Can parse stream but only if its dictionary does not contain indirect references.
Use
parse_streamif 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