setasign\SetaPDF2\Core\ColorSpace
IccBased ICCBased Color Space
File: /SetaPDF v2/Core/ColorSpace/IccBased.php
Old class name (alias):
\SetaPDF_Core_ColorSpace_IccBased
Class hierarchy
Implements
Summary
Constants
TYPE_COLOR_SPACE
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_COLOR_SPACE = 'ColorSpace'
Type constant
TYPE_EXT_G_STATE
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_EXT_G_STATE = 'ExtGState'
Type constant
TYPE_FONT
Type constant
TYPE_PATTERN
Type constant
TYPE_PROC_SET
Type constant
TYPE_PROPERTIES
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_PROPERTIES = 'Properties'
Type constant
TYPE_SHADING
Type constant
TYPE_X_OBJECT
Type constant
Properties
$_value
protected \setasign\SetaPDF2\Core\Type\PdfName|\setasign\SetaPDF2\Core\Type\PdfArray ColorSpace::$_value
The main color space PDF value
Static Methods
create()
Creates an instance of this color space.
Parameters
- $iccStream : \setasign\SetaPDF2\Core\IccProfile\Stream
Exceptions
createByDefinition()
public static ColorSpace::createByDefinition (
string|\setasign\SetaPDF2\Core\Type\PdfName|\setasign\SetaPDF2\Core\Type\PdfArray|\setasign\SetaPDF2\Core\Type\IndirectObjectInterface $object
): ColorSpace|DeviceCmyk|DeviceGray|DeviceRgb|IccBased|SeparationCreates a color space instance based on the incoming value.
Parameters
- $object : string|\setasign\SetaPDF2\Core\Type\PdfName|\setasign\SetaPDF2\Core\Type\PdfArray|\setasign\SetaPDF2\Core\Type\IndirectObjectInterface
A color space definition
Exceptions
Throws \InvalidArgumentException
freeCache()
Release profile stream instances by a document instance.
Parameters
- $document : \setasign\SetaPDF2\Core\Document
Methods
__construct()
The constructor.
Parameters
- $definition : \setasign\SetaPDF2\Core\Type\AbstractType
Exceptions
Throws \InvalidArgumentException,\setasign\SetaPDF2\Core\Exception
getAlternateColorSpace()
public IccBased::getAlternateColorSpace (
void
): ColorSpace|DeviceCmyk|DeviceGray|DeviceN|DeviceRgb|IccBased|Indexed|Lab|Separation|nullGet the alternate color space.
Exceptions
getIndirectObject()
public AbstractResource::getIndirectObject (
?\setasign\SetaPDF2\Core\Document $document = null
): \setasign\SetaPDF2\Core\Type\IndirectObjectInterfaceGets an indirect object for this color space dictionary.
Parameters
- $document : ?\setasign\SetaPDF2\Core\Document
Exceptions
Throws \InvalidArgumentException
See
getPdfValue()
public ColorSpace::getPdfValue (
void
): \setasign\SetaPDF2\Core\Type\PdfName|\setasign\SetaPDF2\Core\Type\PdfArrayGet the main color space PDF value.