phpdftk API Documentation

HintTableParser
in package

FinalYes

Parses the binary hint table data from linearized PDF hint streams.

The hint stream body contains the page offset hint table (required) and optionally a shared object hint table, both using bit-packed variable-width fields. Layout defined in ISO 32000-2 Annex F §F.4.

Table of Contents

Methods

__construct()  : mixed
parsePageOffsetTable()  : PageOffsetHintTable
Parse the page offset hint table starting at the given byte offset.
parseSharedObjectTable()  : SharedObjectHintTable
Parse the shared object hint table starting at the given byte offset.

Methods

__construct()

public __construct(string $data) : mixed
Parameters
$data : string

parsePageOffsetTable()

Parse the page offset hint table starting at the given byte offset.

public parsePageOffsetTable(int $offset, int $numPages) : PageOffsetHintTable

The header is 11 four-byte integers (44 bytes), followed by per-page bit-packed entries.

Parameters
$offset : int

Byte offset within the hint stream data

$numPages : int

Number of pages in the document

Return values
PageOffsetHintTable

        
On this page

Search results