class final Core · roukmoute/pdf 0.6.2
PDF\Graphics\ColourSpaces\DeviceNAttributesDeclared DeviceN/NChannel colorants, process mapping and ink hints (tables 71–73).Inheritance and contracts
Parent : PDF\Specification\SchemaDictionary
Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
Definition in the specification
Table 71 · Entries in a DeviceN Colour Space Attributes Dictionary
ISO 32000-1:2008, §8.6.6.5 · PDF page 169 ↗
| Entry | PDF type | Source requirement | Table |
|---|---|---|---|
/Subtype | name | Optional; PDF 1.6 | 71 |
/Colorants | dictionary | Required if Subtype is NChannel and the colour space includes spot colorants; otherwise optional | 71 |
/Process | dictionary | Required if Subtype is NChannel and the colour space includes components of a process colour space, otherwise optional; PDF 1.6 | 71 |
/MixingHints | dictionary | Optional; PDF 1.6 | 71 |
Conditional descriptions remain traceable. A definition alone does not implement a codec, a signature or every format mechanism. Read the coverage.
Construction
__construct()
public function __construct(PDF\Syntax\Object\NameType $subtype = new NameType('DeviceN'), ?PDF\Graphics\ColourSpaces\ColorantDictionary $colorants = null, ?PDF\Graphics\ColourSpaces\DeviceNProcess $process = null, ?PDF\Graphics\ColourSpaces\DeviceNMixingHints $mixingHints = null)Declared methods
validateComponents()
public function validateComponents(PDF\Graphics\ColourSpaces\ColourComponentNames $components): voidwith()
public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): staticwithout()
public function without(PDF\Syntax\Object\NameType|string $key): staticInherited methods
9 methods from parents and contracts
__toString()
public function __toString(): stringcount()
public function count(): intdefinition()
public function definition(): PDF\Specification\TableDefinitionentries()
public function entries(): iterable@return iterable<Entry>get()
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.Properties
| Declaration | Origin and documentation |
|---|---|
public readonly ?PDF\Graphics\ColourSpaces\ColorantDictionary $colorants | PDF\Graphics\ColourSpaces\DeviceNAttributes |
public readonly ?PDF\Graphics\ColourSpaces\DeviceNMixingHints $mixingHints | PDF\Graphics\ColourSpaces\DeviceNAttributes |
public readonly ?PDF\Graphics\ColourSpaces\DeviceNProcess $process | PDF\Graphics\ColourSpaces\DeviceNAttributes |
public readonly PDF\Syntax\Object\NameType $subtype | PDF\Graphics\ColourSpaces\DeviceNAttributes |
Constants
| Name | PHP value | Origin |
|---|---|---|
COMMON_TABLES | | PDF\Specification\SchemaDictionary |
TABLE | | PDF\Graphics\ColourSpaces\DeviceNAttributes |