phpdftk API Documentation

Tokenizer

Table of Contents

Interfaces

Source
Seekable byte source abstraction for the PDF tokenizer.

Classes

FileSource
StringSource
Tokenizer source backed by an in-memory string -- used by {@see \Phpdftk\Pdf\Reader\PdfReader::fromString()}.
Token
A single lexical token from the PDF byte stream, carrying its type, string value, and byte offset within the source.
Tokenizer
PDF tokenizer — converts a byte stream into a sequence of typed tokens.

Enums

TokenType
PDF lexical token types produced by the tokenizer -- one case per distinct syntactic element in the PDF file format (ISO 32000-2 S7.2).

        
On this page

Search results