class final Core · roukmoute/pdf 0.6.2

PDF\Document\Structure\StructureElement
Document-scoped hierarchy builder; all P/K links derive from attached child objects.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Specification\SchemaDictionary

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

Definition in the specification

Table 323 · Entries in a structure element dictionary
ISO 32000-1:2008, §14.7.2 · PDF page 566 ↗

EntryPDF typeSource requirementTable
/TypenameOptional323
/SnameRequired323
/PdictionaryRequired; shall be an indirect reference323
/IDbyte stringOptional323
/PgdictionaryOptional; shall be an indirect reference323
/K(various)Optional323
/A(various)Optional323
/Cname or arrayOptional323
/RintegerOptional323
/Ttext stringOptional323
/Langtext stringOptional; PDF 1.4323
/Alttext stringOptional323
/Etext stringOptional; PDF 1.5323
/ActualTexttext stringOptional; PDF 1.4323

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

Construction

__construct()

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

Declared methods

addKid()

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

attachTo()

public function attachTo(self|PDF\Document\Structure\StructureTreeRoot $parent): void
@internal Attach only through the parent builder.

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

entries()

public function entries(): iterable

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

kids()

public function kids(): array
@return list<StructureElement|PageMarkedContent|MarkedContentReference|ObjectReference>

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

parent()

public function parent(): self|PDF\Document\Structure\StructureTreeRoot|null

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

root()

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

toPdf()

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

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

with()

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

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

without()

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

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

Inherited methods

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

validate()

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

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

Properties

Constants