phpdftk API Documentation

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

seek()

public seek(int $offset) : void
Parameters
$offset : int

tell()

public tell() : int
Return values
int

        
On this page

Search results