SetaPDF_Core_IccProfile_Stream Class for handling a ICC profile stream

File: /SetaPDF/Core/IccProfile/Stream.php

Class hierarchy

Summary

Properties

$_indirectObject

$_parser


Static Methods

create()

static public SetaPDF_Core_IccProfile_Stream SetaPDF_Core_IccProfile_Stream::create ( SetaPDF_Core_Document $document, SetaPDF_Core_Reader_Binary|string $iccProfile )

Creates 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


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()

protected SetaPDF_Core_Type_Dictionary SetaPDF_Core_IccProfile_Stream::_getDictionary ( void )

Get the stream dictionary.

cleanUp()

public void SetaPDF_Core_IccProfile_Stream::cleanUp ( void )

Release resources.

getColorComponents()

public integer SetaPDF_Core_IccProfile_Stream::getColorComponents ( void )

Get the color component count.

getIndirectObject()

public SetaPDF_Core_Type_IndirectObjectInterface SetaPDF_Core_IccProfile_Stream::getIndirectObject ( void )

Get the indirect object.

getParser()

public SetaPDF_Core_IccProfile_Parser SetaPDF_Core_IccProfile_Stream::getParser ( void )

Get a parser instance for this ICC profile stream.

getStreamObject()

public SetaPDF_Core_Type_Stream SetaPDF_Core_IccProfile_Stream::getStreamObject ( void )

Get the stream object.

setAlternate()

public void SetaPDF_Core_IccProfile_Stream::setAlternate ( [ SetaPDF_Core_ColorSpace $colorSpace = null ] )

Set the alternate color space.

Parameters
$colorSpace : SetaPDF_Core_ColorSpace