setasign\SetaPDF2\Core\IccProfile

Stream Class for handling an 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

protected Parser Stream::$_parser

A ICC profile parser instance


Static Methods

create()

Creates an ICC profile stream.

Parameters
$document : \setasign\SetaPDF2\Core\Document
 
$iccProfile : \setasign\SetaPDF2\Core\Reader\BinaryReader|string

A path to an ICC profile or a reader object

Exceptions

Throws \setasign\SetaPDF2\Core\Exception


Methods

__construct()

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

getParser()

public Stream::getParser (
void
): Parser

Get a parser instance for this ICC profile stream.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getStreamObject()

setAlternate()

Set the alternate color space.

Parameters
$colorSpace : ?\setasign\SetaPDF2\Core\ColorSpace\ColorSpace
 
Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception