class final Core · pdftoolkit/pdf 0.12.4

PDF\Document\Structure\NamespaceRoleMap
Explicit immutable mappings owned by one namespace.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\DictionaryType

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

ISO 32000-2:2020 EC3 definition

Table 356 · Entries in a namespace dictionary
§14.7.4.2 · PDF page 744

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.

/RoleMapNS dictionary

Namespace-specific role mappings; cross-namespace graph semantics remain separate.

PDF 2.0 scope and limits.

Construction

__construct()

public function __construct(PDF\Document\Structure\NamespaceRoleMapping ...$mappings)

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

Declared methods

target()

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

targets()

public function targets(): array
@return list<StructureRole>

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

with()

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

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

without()

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

Declared by PDF\Document\Structure\NamespaceRoleMap · 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 ↗