class final Core · roukmoute/pdf 0.6.2
PDF\Document\Structure\StructureElementDocument-scoped hierarchy builder; all P/K links derive from attached child objects.Héritage et contrats
Parent : PDF\Specification\SchemaDictionary
Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
Définition dans la norme
Tableau 323 · Entries in a structure element dictionary
ISO 32000-1:2008, §14.7.2 · page PDF 566 ↗
| Entrée | Type PDF | Exigence de la source | Tableau |
|---|---|---|---|
/Type | name | Optional | 323 |
/S | name | Required | 323 |
/P | dictionary | Required; shall be an indirect reference | 323 |
/ID | byte string | Optional | 323 |
/Pg | dictionary | Optional; shall be an indirect reference | 323 |
/K | (various) | Optional | 323 |
/A | (various) | Optional | 323 |
/C | name or array | Optional | 323 |
/R | integer | Optional | 323 |
/T | text string | Optional | 323 |
/Lang | text string | Optional; PDF 1.4 | 323 |
/Alt | text string | Optional | 323 |
/E | text string | Optional; PDF 1.5 | 323 |
/ActualText | text string | Optional; PDF 1.4 | 323 |
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\Object\NameType|PDF\Document\Structure\StandardStructureType $type, ?PDF\Syntax\DocumentStructure\PageTree\PageObject $page = null, ?PDF\Syntax\Object\StringType $identifier = null, ?PDF\Document\Structure\StructureAttributes $attributes = null, ?PDF\Document\Structure\AttributeClassAssociations $classes = null, PDF\Syntax\Object\IntegerType $revision = new IntegerType(0), PDF\Syntax\Object\DictionaryObject\Entry ...$entries)Méthodes déclarées
addKid()
public function addKid(self|PDF\Document\Structure\PageMarkedContent|PDF\Document\Structure\MarkedContentReference|PDF\Document\Structure\ObjectReference $child): selfattachTo()
public function attachTo(self|PDF\Document\Structure\StructureTreeRoot $parent): void@internal Attach only through the parent builder.entries()
public function entries(): iterablekids()
public function kids(): array@return list<StructureElement|PageMarkedContent|MarkedContentReference|ObjectReference>parent()
public function parent(): self|PDF\Document\Structure\StructureTreeRoot|nullroot()
public function root(): PDF\Document\Structure\StructureTreeRoottoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): stringwith()
public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): staticwithout()
public function without(PDF\Syntax\Object\NameType|string $key): staticMéthodes héritées
7 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): boolvalidate()
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\StructureAttributes $attributes | PDF\Document\Structure\StructureElement |
public readonly ?PDF\Document\Structure\AttributeClassAssociations $classes | PDF\Document\Structure\StructureElement |
public readonly ?PDF\Syntax\Object\StringType $identifier | PDF\Document\Structure\StructureElement |
public readonly ?PDF\Syntax\DocumentStructure\PageTree\PageObject $page | PDF\Document\Structure\StructureElement |
public readonly PDF\Syntax\Object\IntegerType $revision | PDF\Document\Structure\StructureElement |
public readonly PDF\Syntax\Object\NameType $type | PDF\Document\Structure\StructureElement |
Constantes
| Nom | Valeur PHP | Provenance |
|---|---|---|
COMMON_TABLES | | PDF\Specification\SchemaDictionary |
TABLE | | PDF\Document\Structure\StructureElement |