class final Core · roukmoute/pdf 0.6.1
PDF\Document\Structure\StructureTreeRootLogical-structure graph and document-local derived ParentTree/IDTree (PDF pages 564–577).Héritage et contrats
Parent : PDF\Specification\SchemaDictionary
Interfaces : Countable, IteratorAggregate, PDF\Document\CatalogComponent, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
Définition dans la norme
Tableau 322 · Entries in the structure tree root
ISO 32000-1:2008, §14.7.2 · page PDF 565 ↗
| Entrée | Type PDF | Exigence de la source | Tableau |
|---|---|---|---|
/Type | name | Required | 322 |
/K | dictionary or array | Optional | 322 |
/IDTree | name tree | Required if any structure elements have element identifiers | 322 |
/ParentTree | number tree | Required if any structure element contains content items | 322 |
/ParentTreeNextKey | integer | Optional | 322 |
/RoleMap | dictionary | Optional | 322 |
/ClassMap | dictionary | Optional | 322 |
Les descriptions conditionnelles restent traçables. La présence d’une définition ne réalise pas à elle seule un codec, une signature ou tous les traitements du format. Lire la couverture.
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())Méthodes déclarées
addKid()
public function addKid(PDF\Document\Structure\StructureElement $element): selfcatalogEntries()
public function catalogEntries(PDF\Document\Structure\MarkInformation $markInformation): arrayExplicit catalog entries; the caller chooses its conformance statement and remaining catalog entries.
@return list<Entry>entries()
public function entries(): iterableindex()
public function index(): PDF\Document\Structure\StructureTreeIndexBuilds and validates all bidirectional associations before any graph bytes are emitted.invalidate()
public function invalidate(): void@internal Document-local cache invalidation when the attached hierarchy changes.kids()
public function kids(): array@return list<StructureElement>validateCatalog()
public function validateCatalog(PDF\Syntax\Object\DictionaryType $catalog): voidWriter integration: validates the actual catalog, including generic schema dictionaries.validateTagged()
public function validateTagged(PDF\Document\Structure\MarkInformation $markInformation): voidwith()
public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): staticwithout()
public function without(PDF\Syntax\Object\NameType|string $key): staticMéthodes héritées
8 méthodes des parents et contrats
__toString()
public function __toString(): stringcount()
public function count(): intdefinition()
public function definition(): PDF\Specification\TableDefinitionget()
public function get(PDF\Syntax\Object\NameType|string $key): ?PDF\Syntax\FileStructure\BasicTypegetIterator()
public function getIterator(): Traversablehas()
public function has(PDF\Syntax\Object\NameType|string $key): booltoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): stringvalidate()
public function validate(): voidChecks unconditional requirements; conditional and inherited rules remain explicit.Propriétés
| Déclaration | Provenance et documentation |
|---|---|
public readonly PDF\Document\Structure\ClassMap $classMap | PDF\Document\Structure\StructureTreeRoot |
public readonly PDF\Document\Structure\StructureLimits $limits | PDF\Document\Structure\StructureTreeRoot |
public readonly PDF\Syntax\DocumentStructure\PageTree\PageTreeNode $pages | PDF\Document\Structure\StructureTreeRoot |
public readonly PDF\Document\Structure\RoleMap $roleMap | PDF\Document\Structure\StructureTreeRoot |
Constantes
| Nom | Valeur PHP | Provenance |
|---|---|---|
COMMON_TABLES | | PDF\Specification\SchemaDictionary |
TABLE | | PDF\Document\Structure\StructureTreeRoot |