setasign\SetaPDF2\Core\ColorSpace
Separation Separation Color Space
File: /SetaPDF v2/Core/ColorSpace/Separation.php
Old class name (alias):
\SetaPDF_Core_ColorSpace_Separation
Class hierarchy
Implements
Summary
Constants
TYPE_COLOR_SPACE
Type constant
TYPE_EXT_G_STATE
Type constant
TYPE_FONT
Type constant
TYPE_PATTERN
Type constant
TYPE_PROC_SET
Type constant
TYPE_PROPERTIES
Type constant
TYPE_SHADING
Type constant
TYPE_X_OBJECT
Type constant
Properties
Static Methods
createByDefinition()
Creates a color space instance based on the incoming value.
Parameters
- $object : string|\SetaPDF_Core_Type_Name|\SetaPDF_Core_Type_Array|\SetaPDF_Core_Type_IndirectObjectInterface
A color space definition
Exceptions
Throws \InvalidArgumentException
createSpotColor()
string $name,
int|float|array $c,
int|float $m = null,
int|float $y = null,
int|float $k = null
Creates a spot color color-space.
Parameters
- $document : \SetaPDF_Core_Document
- $name : string
- $c : int|float|array
If is array $m, $y, $k will be ignored. The array need 4 entries.
- $m : int|float
- $y : int|float
- $k : int|float
Exceptions
Methods
__construct()
The constructor.
Parameters
- $definition : \SetaPDF_Core_Type_AbstractType
Exceptions
Throws \InvalidArgumentException
getAlternateColorSpace()
Get the alternate color space.
Exceptions
getAlternateSpace()
WARNING: This method is marked as deprecated!
Get the alternate color space.
Exceptions
getIndirectObject()
Gets an indirect object for this color space dictionary.
Parameters
- $document : ?\SetaPDF_Core_Document
Exceptions
Throws \InvalidArgumentException
See
getName()
Get the name of the colorant that this Separation color space is intended to represent.
Exceptions
getTintTransform()
Get the tint transformation function.
Exceptions
setAlternateColorSpace()
setName()
Set the name of the colorant that this Separation color space is intended to represent.
Parameters
- $name : string
Exceptions
setTintTransform()
Set the tint transformation function.
Parameters
- $tintTransform : \SetaPDF_Core_Type_AbstractType
Exceptions
Throws \InvalidArgumentException