class final Core · roukmoute/pdf 0.6.2

PDF\Document\Structure\StructureTreeRoot
Logical-structure graph and document-local derived ParentTree/IDTree (PDF pages 564–577).

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Specification\SchemaDictionary

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

Definition in the specification

Table 322 · Entries in the structure tree root
ISO 32000-1:2008, §14.7.2 · PDF page 565 ↗

EntryPDF typeSource requirementTable
/TypenameRequired322
/Kdictionary or arrayOptional322
/IDTreename treeRequired if any structure elements have element identifiers322
/ParentTreenumber treeRequired if any structure element contains content items322
/ParentTreeNextKeyintegerOptional322
/RoleMapdictionaryOptional322
/ClassMapdictionaryOptional322

Conditional descriptions remain traceable. A definition alone does not implement a codec, a signature or every format mechanism. Read the coverage.

Construction

__construct()

public function __construct(PDF\Syntax\DocumentStructure\PageTree\PageTreeNode $pages, PDF\Document\Structure\RoleMap $roleMap = new RoleMap(), PDF\Document\Structure\ClassMap $classMap = new ClassMap(), PDF\Document\Structure\StructureLimits $limits = new StructureLimits())

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

Declared methods

addKid()

public function addKid(PDF\Document\Structure\StructureElement $element): self

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

catalogEntries()

public function catalogEntries(PDF\Document\Structure\MarkInformation $markInformation): array
Explicit catalog entries; the caller chooses its conformance statement and remaining catalog entries.
@return list<Entry>

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

entries()

public function entries(): iterable

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

index()

Builds and validates all bidirectional associations before any graph bytes are emitted.

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

invalidate()

public function invalidate(): void
@internal Document-local cache invalidation when the attached hierarchy changes.

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

kids()

public function kids(): array
@return list<StructureElement>

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

validateCatalog()

public function validateCatalog(PDF\Syntax\Object\DictionaryType $catalog): void
Writer integration: validates the actual catalog, including generic schema dictionaries.

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

validateTagged()

public function validateTagged(PDF\Document\Structure\MarkInformation $markInformation): void

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

with()

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

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

without()

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

Declared by PDF\Document\Structure\StructureTreeRoot · View the code ↗

Inherited methods

8 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 ↗

definition()

public function definition(): PDF\Specification\TableDefinition

Declared by PDF\Specification\SchemaDictionary · 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\Specification\SchemaDictionary · View the code ↗

validate()

public function validate(): void
Checks unconditional requirements; conditional and inherited rules remain explicit.

Declared by PDF\Specification\SchemaDictionary · View the code ↗

Properties

Constants