Skip to main content

Module parser

Module parser 

Source

Structs§

Document
Parser
ParserLimits
Bounds applied while parsing untrusted input, so a hostile PDF cannot exhaust memory (huge strings, arrays, streams, decompression bombs).
StreamingParser
Lazy file parser: reads only the xref chain eagerly, then parses individual objects on demand with windowed file reads (offsets come from the xref table). Objects — including large stream bodies — that are never requested are never loaded into RAM, unlike Parser::parse, which materializes the whole file. Each object is cached after its first read.

Enums§

ParseMode