Tokenizer
in package
FinalYes
PDF tokenizer — converts a byte stream into a sequence of typed tokens.
Handles all PDF syntax per ISO 32000-2 §7.2–7.3: whitespace, comments,
names (with #XX escaping), literal strings (balanced parens,
backslash escapes, octal), hex strings, integers, reals, booleans,
null, delimiters ([, ], <<, >>), and keywords (obj,
endobj, stream, endstream, R, xref, trailer, startxref).
Table of Contents
Methods
- __construct() : mixed
- getSource() : Source
- nextToken() : Token
- peek() : Token
- seek() : void
- tell() : int
Methods
__construct()
public
__construct(Source $source) : mixed
Parameters
- $source : Source
getSource()
public
getSource() : Source
Return values
SourcenextToken()
public
nextToken() : Token
Return values
Tokenpeek()
public
peek() : Token
Return values
Tokenseek()
public
seek(int $offset) : void
Parameters
- $offset : int
tell()
public
tell() : int