class final Core · roukmoute/pdf 0.6.1

PDF\Syntax\DocumentStructure\PageTree\PageTreeNode
Mutable tree builder; children can belong to exactly one parent.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\DictionaryType

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

Construction

__construct()

public function __construct(PDF\Syntax\Object\DictionaryObject\Entry ...$inheritableEntries)

Declared by PDF\Syntax\DocumentStructure\PageTree\PageTreeNode · View the code ↗

Declared methods

addKid()

public function addKid(PDF\Syntax\DocumentStructure\PageTree\PageObject|self $kid): self

Declared by PDF\Syntax\DocumentStructure\PageTree\PageTreeNode · View the code ↗

attachTo()

public function attachTo(self $parent): void

Declared by PDF\Syntax\DocumentStructure\PageTree\PageTreeNode · View the code ↗

entries()

public function entries(): iterable

Declared by PDF\Syntax\DocumentStructure\PageTree\PageTreeNode · View the code ↗

kids()

public function kids(): array
@return list<PageObject|self>

Declared by PDF\Syntax\DocumentStructure\PageTree\PageTreeNode · View the code ↗

pageCount()

public function pageCount(): int

Declared by PDF\Syntax\DocumentStructure\PageTree\PageTreeNode · View the code ↗

parent()

public function parent(): ?self

Declared by PDF\Syntax\DocumentStructure\PageTree\PageTreeNode · View the code ↗

with()

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

Declared by PDF\Syntax\DocumentStructure\PageTree\PageTreeNode · View the code ↗

without()

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

Declared by PDF\Syntax\DocumentStructure\PageTree\PageTreeNode · 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 ↗