class final Core · roukmoute/pdf 0.6.2

PDF\Document\Navigation\PageLabels
Explicit ranges and real NumberTree, validated against the actual catalogue pages.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\DictionaryType

Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable

Construction

__construct()

public function __construct(PDF\Document\Navigation\LabelRange ...$ranges)

Declared by PDF\Document\Navigation\PageLabels · View the code ↗

Declared methods

catalogEntry()

public function catalogEntry(): PDF\Syntax\Object\DictionaryObject\Entry

Declared by PDF\Document\Navigation\PageLabels · View the code ↗

entries()

public function entries(): iterable

Declared by PDF\Document\Navigation\PageLabels · View the code ↗

label()

public function label(PDF\Syntax\Object\IntegerType $pageIndex, PDF\Document\Navigation\NavigationLimits $limits = new NavigationLimits()): PDF\Syntax\DataStructure\TextString

Declared by PDF\Document\Navigation\PageLabels · View the code ↗

labelsFor()

public function labelsFor(PDF\Syntax\Object\DictionaryType $catalog, PDF\Document\Navigation\NavigationLimits $limits = new NavigationLimits()): array
@return list<TextString>

Declared by PDF\Document\Navigation\PageLabels · View the code ↗

validateCatalog()

public function validateCatalog(PDF\Syntax\Object\DictionaryType $catalog): void

Declared by PDF\Document\Navigation\PageLabels · View the code ↗

with()

public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): static

Declared by PDF\Document\Navigation\PageLabels · View the code ↗

without()

public function without(PDF\Syntax\Object\NameType|string $key): static

Declared by PDF\Document\Navigation\PageLabels · View the code ↗

Inherited methods

6 methods from parents and contracts

__toString()

public function __toString(): string

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

count()

public function count(): int

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

get()

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

getIterator()

public function getIterator(): Traversable

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

has()

public function has(PDF\Syntax\Object\NameType|string $key): bool

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

toPdf()

public function toPdf(PDF\Serialization\SerializationContext $context): string

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly array $rangesPDF\Document\Navigation\PageLabels
@var non-empty-list<LabelRange>
public readonly PDF\Syntax\DataStructure\NumberTree $treePDF\Document\Navigation\PageLabels