PageOffsetHintTable
in package
FinalYes
Parsed page offset hint table — ISO 32000-2 §F.4.1.
Contains the header values (minimums and bit widths) and per-page entries for computing byte ranges of individual pages in a linearized PDF.
Table of Contents
Properties
- $entries : array<string|int, mixed>
- $firstPageLocation : int
- $minContentStreamLength : int
- $minContentStreamOffset : int
- $minObjectsPerPage : int
- $minPageLength : int
- $minSharedObjId : int
- $minSharedRefsPerPage : int
Methods
- __construct() : mixed
- getPageByteRange() : array{offset: int, length: int}
- Compute the byte offset and length for a page (0-indexed).
Properties
$entries read-only
public
array<string|int, mixed>
$entries
$firstPageLocation read-only
public
int
$firstPageLocation
$minContentStreamLength read-only
public
int
$minContentStreamLength
$minContentStreamOffset read-only
public
int
$minContentStreamOffset
$minObjectsPerPage read-only
public
int
$minObjectsPerPage
$minPageLength read-only
public
int
$minPageLength
$minSharedObjId read-only
public
int
$minSharedObjId
$minSharedRefsPerPage read-only
public
int
$minSharedRefsPerPage
Methods
__construct()
public
__construct(int $minObjectsPerPage, int $firstPageLocation, int $minPageLength, int $minSharedRefsPerPage, int $minSharedObjId, int $minContentStreamOffset, int $minContentStreamLength, array<int, PageHintEntry> $entries) : mixed
Parameters
- $minObjectsPerPage : int
- $firstPageLocation : int
- $minPageLength : int
- $minSharedRefsPerPage : int
- $minSharedObjId : int
- $minContentStreamOffset : int
- $minContentStreamLength : int
- $entries : array<int, PageHintEntry>
getPageByteRange()
Compute the byte offset and length for a page (0-indexed).
public
getPageByteRange(int $pageIndex) : array{offset: int, length: int}
Parameters
- $pageIndex : int