setasign\SetaPDF2\Core\IccProfile

Stream Class for handling a ICC profile stream

File: /SetaPDF v2/Core/IccProfile/Stream.php
Old class name (alias): \SetaPDF_Core_IccProfile_Stream

Class hierarchy

Summary

Properties

$_indirectObject

The indirect object of this stream

$_parser

A ICC profile parser instance


Static Methods

create()

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

Exceptions

Throws \setasign\SetaPDF2\Core\Exception


Methods

__construct()

The constructor.

Parameters
$indirectObject : \SetaPDF_Core_Type_IndirectObjectInterface
 
Exceptions

Throws \InvalidArgumentException

_getDictionary()

Get the stream dictionary.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

cleanUp()

public Stream::cleanUp (
void
): void

Release resources.

getColorComponents()

public Stream::getColorComponents (
void
): int

Get the color component count.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getIndirectObject()

Get the indirect object.

getParser()

Get a parser instance for this ICC profile stream.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getStreamObject()

Get the stream object.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

setAlternate()

public Stream::setAlternate (
?\SetaPDF_Core_ColorSpace $colorSpace = null
): void

Set the alternate color space.

Parameters
$colorSpace : ?\SetaPDF_Core_ColorSpace
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception