class final Core · roukmoute/pdf 0.7.1

PDF\Document\Parts\DocumentPartRoot
Table408/physical p.851: explicit root, per-level XML names and optional record level.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\DictionaryType

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

ISO 32000-2:2020 EC3 definition

Table 408 · Entries in a DPartRoot dictionary
§14.12.4.1 · PDF page 851

Original PDF at the documented commit ↗ · Source metadata at the documented commit ↗ · Public errata ↗

Original retained in the core repository. Table inventory and semantic validation remain distinct.

EntryPDF typePhysical PDF pageRequirement
/Typename851Optional
/DPartRootNodedictionary851Required
/RecordLevelinteger851Optional
/NodeNameListarray851Optional

PDF 2.0 scope and limits.

Construction

__construct()

public function __construct(PDF\Document\Parts\DocumentPart $root, ?PDF\Syntax\Object\IntegerType $recordLevel = null, PDF\Syntax\Object\NameType ...$nodeNames)

Declared by PDF\Document\Parts\DocumentPartRoot · View the code ↗

Declared methods

catalogEntry()

public function catalogEntry(): PDF\Syntax\Object\DictionaryObject\Entry

Declared by PDF\Document\Parts\DocumentPartRoot · View the code ↗

validateGraph()

public function validateGraph(PDF\Document\DocumentGraphContext $graph): void

Declared by PDF\Document\Parts\DocumentPartRoot · View the code ↗

validateVersion()

public function validateVersion(PDF\Syntax\FileStructure\EffectivePdfVersion $version): void

Declared by PDF\Document\Parts\DocumentPartRoot · View the code ↗

with()

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

Declared by PDF\Document\Parts\DocumentPartRoot · View the code ↗

without()

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

Declared by PDF\Document\Parts\DocumentPartRoot · 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 ↗

entries()

public function entries(): iterable
@return iterable<Entry>

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 ↗

Properties

DeclarationOrigin and documentation
public readonly PDF\Document\Parts\DocumentPart $rootPDF\Document\Parts\DocumentPartRoot