class final Core · roukmoute/pdf 0.6.1
PDF\Graphics\Halftones\ScreenHalftoneInheritance and contracts
Parent : PDF\Specification\SchemaDictionary
Interfaces : Countable, IteratorAggregate, PDF\Document\VersionedComponent, PDF\Graphics\Halftones\HalftoneObject, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable
Definition in the specification
Table 130 · Entries in a type 1 halftone dictionary
ISO 32000-1:2008, §10.5.5.2 · PDF page 317 ↗
| Entry | PDF type | Source requirement | Table |
|---|---|---|---|
/Type | name | Optional | 130 |
/HalftoneType | integer | Required | 130 |
/HalftoneName | byte string | Optional | 130 |
/Frequency | number | Required | 130 |
/Angle | number | Required | 130 |
/SpotFunction | function or name | Required | 130 |
/AccurateScreens | boolean | Optional | 130 |
/TransferFunction | function or name | Optional | 130 |
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\NumericType $frequency, PDF\Syntax\Object\NumericType $angle, PDF\Graphics\Halftones\SpotFunction $spotFunction, PDF\Graphics\Halftones\HalftoneOptions $options = new HalftoneOptions(), PDF\Syntax\Object\BooleanType $accurateScreens = new BooleanType(false))Declared methods
halftoneType()
public function halftoneType(): inthasTransferFunction()
public function hasTransferFunction(): boolvalidateVersion()
public function validateVersion(PDF\Syntax\FileStructure\EffectivePdfVersion $version): 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\Halftones\HalftoneOptions $options | PDF\Graphics\Halftones\ScreenHalftone |
Constants
| Name | PHP value | Origin |
|---|---|---|
COMMON_TABLES | | PDF\Specification\SchemaDictionary |
TABLE | | PDF\Graphics\Halftones\ScreenHalftone |