class final Core · roukmoute/pdf 0.7.1

PDF\Document\Parts\DocumentPart
Table409/physical pp.851–852: explicit document-scoped hierarchy builder, one parent and one page range.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\DictionaryType

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

ISO 32000-2:2020 EC3 definition

Table 409 · Entries in a DPart 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
/Parentdictionary851Required
/DPartsarray851Optional; conditional
/Startdictionary852Optional; conditional
/Enddictionary852Required; conditional
/DPMdictionary852Optional
/AFarray of dictionaries852Optional
/Metadatastream852Optional

PDF 2.0 scope and limits.

Construction

__construct()

public function __construct(?PDF\Document\Parts\DocumentPartMetadata $metadata = null, PDF\Syntax\Object\DictionaryObject\Entry ...$entries)

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

Declared methods

addGroup()

public function addGroup(self $first, self ...$others): self

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

attachTo()

public function attachTo(self|PDF\Document\Parts\DocumentPartRoot $parent): void
@internal Called only by the owning parent constructor or addGroup().

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

entries()

public function entries(): iterable

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

setPageRange()

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

validateVersion()

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

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

with()

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

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

without()

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

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

Inherited methods

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

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 ↗