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
Static Methods
create()
public static Stream::create (
\setasign\SetaPDF2\Core\Document $document,
\setasign\SetaPDF2\Core\Reader\BinaryReader|string $iccProfile
): Stream\setasign\SetaPDF2\Core\Reader\BinaryReader|string $iccProfile
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
Methods
__construct()
The constructor.
Parameters
- $indirectObject : \setasign\SetaPDF2\Core\Type\IndirectObjectInterface
Exceptions
Throws \InvalidArgumentException
getAlternate()
public Stream::getAlternate (
void
): null|\setasign\SetaPDF2\Core\ColorSpace\ColorSpace|\setasign\SetaPDF2\Core\ColorSpace\DeviceCmyk|\setasign\SetaPDF2\Core\ColorSpace\DeviceGray|\setasign\SetaPDF2\Core\ColorSpace\DeviceRgb|\setasign\SetaPDF2\Core\ColorSpace\IccBased|\setasign\SetaPDF2\Core\ColorSpace\SeparationGet the alternate color space.
Exceptions
getParser()
Get a parser instance for this ICC profile stream.
Exceptions
setAlternate()
public Stream::setAlternate (
?\setasign\SetaPDF2\Core\ColorSpace\ColorSpace $colorSpace = null
): voidSet the alternate color space.
Parameters
- $colorSpace : ?\setasign\SetaPDF2\Core\ColorSpace\ColorSpace