Table of contents
Namespace: Com\Tecnick\Color
File: SpotRegistryInterface.php line 40
Registers spot colors and writes them as PDF Separation objects.
Implemented by Spot.
Tags
- since: 2026-08-26
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2015-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-color
Methods
addSpotColor()
File: SpotRegistryInterface.php line 52
public addSpotColor(string $name, Cmyk $cmyk) : string
Parameters
- $name : string: Full name of the spot color.
- $cmyk : Cmyk: CMYK color object
Tags
- throws: Exception if the name is unusable or the color has already been emitted
Return values
string —
Spot color key.
addSpotLabColor()
File: SpotRegistryInterface.php line 67
public addSpotLabColor(string $name, float $lstar, float $astar, float $bstar, array<int, float> ...$labOptions) : string
Parameters
- $name : string: Full name of the spot color.
- $lstar : float: Lab L* component in [0..100].
- $astar : float: Lab a* component.
- $bstar : float: Lab b* component.
- $labOptions : array<int, float>: Optional Lab settings: whitepoint, blackpoint, range, col0.
Tags
- throws: Exception if the name is unusable or the color has already been emitted
Return values
string —
Spot color key.
getPdfSpotObjects()
File: SpotRegistryInterface.php line 100
public getPdfSpotObjects(int &$pon) : string
Parameters
- $pon : int: Current PDF object number
Return values
string —
PDF command
getPdfSpotResources()
File: SpotRegistryInterface.php line 109
public getPdfSpotResources() : string
Tags
- throws: Exception if a registered spot color has not been emitted
Return values
string —
PDF command
getPdfSpotResourcesByKeys()
File: SpotRegistryInterface.php line 120
public getPdfSpotResourcesByKeys(array<string|int, string> $keys) : string
Parameters
- $keys : array<string|int, string>: Array of spot color keys.
Tags
- throws: Exception if a key is not registered or has not been emitted
Return values
string —
PDF command
getSpotColorObj()
File: SpotRegistryInterface.php line 82
public getSpotColorObj(string $name) : Cmyk
Parameters
- $name : string: Full name of the spot color.
Tags
- throws: Exception if the color is not found
Return values
getSpotLabColorObj()
File: SpotRegistryInterface.php line 91
public getSpotLabColorObj(string $name) : Lab
Parameters
- $name : string: Full name of the spot color.
Tags
- throws: Exception if the color is not found