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

$_indirectObject

The indirect object for this color space

$_value

The main color space PDF value


Static Methods

createSpotColor()

public static Separation::createSpotColor (
\SetaPDF_Core_Document $document,
string $name,
int|float|array $c,
int|float $m = null,
int|float $y = null,
int|float $k = null
): \SetaPDF_Core_ColorSpace_Separation

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

Throws \setasign\SetaPDF2\Core\Exception


Methods

__construct()

The constructor.

Parameters
$definition : \SetaPDF_Core_Type_AbstractType
 
Exceptions

Throws \InvalidArgumentException

Throws \setasign\SetaPDF2\Core\Exception

getColorComponents()

public ColorSpace::getColorComponents (
void
): void

Get the color components of this color space.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

getDefaultDecodeArray()

public ColorSpace::getDefaultDecodeArray (
void
): void

Get the default decode array of this color space.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

getFamily()

public ColorSpace::getFamily (
void
): string

Get the color space family name of this color space.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

getIndirectObject()

getName()

public Separation::getName (
void
): string

Get the name of the colorant that this Separation color space is intended to represent.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getPdfValue()

Get the main color space PDF value.

getResourceType()

public AbstractResource::getResourceType (
void
): string

Get the resource-type of an implementation.

getTintTransform()

setAlternateColorSpace()

Set the alternate color space.

Parameters
$colorSpace : \SetaPDF_Core_ColorSpace
 

setName()

public Separation::setName (
string $name
): void

Set the name of the colorant that this Separation color space is intended to represent.

Parameters
$name : string
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setTintTransform()

Set the tint transformation function.

Parameters
$tintTransform : \SetaPDF_Core_Type_AbstractType
 
Exceptions

Throws \InvalidArgumentException

Throws \setasign\SetaPDF2\Core\Type\Exception