SetaPDF_Core_IccProfile_Stream Class for handling a ICC profile stream
File: /SetaPDF v2/Core/IccProfile/Stream.php
Class hierarchy
Summary
Properties
$_indirectObject
protected SetaPDF_Core_Type_IndirectObjectInterface SetaPDF_Core_IccProfile_Stream::$_indirectObject
The indirect object of this stream
Static Methods
create()
public static SetaPDF_Core_IccProfile_Stream::create (
SetaPDF_Core_Document $document, SetaPDF_Core_Reader_Binary|string $iccProfile
): SetaPDF_Core_IccProfile_StreamCreates an ICC profile stream.
Parameters
- $document : SetaPDF_Core_Document
- $iccProfile : SetaPDF_Core_Reader_Binary|string
A path to a ICC profile or a reader object
Exceptions
Throws SetaPDF_Core_Exception
Methods
__construct()
public SetaPDF_Core_IccProfile_Stream::__construct (
SetaPDF_Core_Type_IndirectObjectInterface $indirectObject
)The constructor.
Parameters
- $indirectObject : SetaPDF_Core_Type_IndirectObjectInterface
Exceptions
Throws InvalidArgumentException
_getDictionary()
getAlternate()
public SetaPDF_Core_IccProfile_Stream::getAlternate (
void
): null|SetaPDF_Core_ColorSpace|SetaPDF_Core_ColorSpace_DeviceCmyk|SetaPDF_Core_ColorSpace_DeviceGray|SetaPDF_Core_ColorSpace_DeviceRgb|SetaPDF_Core_ColorSpace_IccBased|SetaPDF_Core_ColorSpace_SeparationGet the alternate color space.
Exceptions
Throws SetaPDF_Core_Exception
Throws SetaPDF_Core_Type_Exception
getColorComponents()
getIndirectObject()
public SetaPDF_Core_IccProfile_Stream::getIndirectObject (
void
): SetaPDF_Core_Type_IndirectObjectInterfaceGet the indirect object.
getParser()
Get a parser instance for this ICC profile stream.
Exceptions
Throws SetaPDF_Core_Exception
Throws SetaPDF_Core_Type_Exception
getStreamObject()
setAlternate()
public SetaPDF_Core_IccProfile_Stream::setAlternate (
[ SetaPDF_Core_ColorSpace $colorSpace = null ]
): voidSet the alternate color space.
Parameters
- $colorSpace : SetaPDF_Core_ColorSpace
Exceptions
Throws SetaPDF_Core_Type_Exception