SetaPDF_Core_IccProfile_Parser ICC profile parser

File: /SetaPDF v2/Core/IccProfile/Parser.php

This ICC profile parser is based on the specs ICC.1:2001-04 and ICC.1:2010. The parser actually only offers an access to the header data and description tag.

Class hierarchy

Summary

Properties

$_descriptionData

protected null|array SetaPDF_Core_IccProfile_Parser::$_descriptionData

$_headerData

protected null|array SetaPDF_Core_IccProfile_Parser::$_headerData

$_reader

protected SetaPDF_Core_Reader_Binary SetaPDF_Core_IccProfile_Parser::$_reader

The reader instance

$_tagsData

protected null|array SetaPDF_Core_IccProfile_Parser::$_tagsData

Information about tagged element data offset and size


Methods

__construct()

The constructor.

Parameters
$reader : string|SetaPDF_Core_Reader_Binary
 
Exceptions

Throws SetaPDF_Core_Exception

_parseDescTag()

Parse the description tag.

_parseHeader()

Parse the header data.

Exceptions

Throws SetaPDF_Core_Exception

_parseTagTable()

Parse the tag table.

cleanUp()

Release resources.

getClass()

public SetaPDF_Core_IccProfile_Parser::getClass (
void
): string

Get the Profile/Device Class signature.

See

getColorSpace()

public SetaPDF_Core_IccProfile_Parser::getColorSpace (
[ boolean $signature = false ]
): string

Get the color space signature or readable form.

Parameters
$signature : boolean
 
See

getCreator()

Get the Profile Creator signature.

See

getDescription()

public SetaPDF_Core_IccProfile_Parser::getDescription (
[ string $encoding = 'UTF-8' [, null $languageCode = null [, null $countryCode = null ]]]
): array|null|string

Get description.

If the profile is of version 4 a language and country code can be passed to get a specific description entry.

To get an overview of all resolved description data see getDescriptionData().

Parameters
$encoding : string
 
$languageCode : null
 
$countryCode : null
 
See

getDescriptionData()

Get all resolved description data.

getDeviceAttributes()

Get the Device attributes.

getDeviceManufacturer()

Get the Device manufacturer of the device for which this profile is created.

See

getDeviceModel()

Get the Device model of the device for which this profile is created.

See

getFlags()

getHeaderData()

Get all data resolved by the header description.

getNumberOfComponents()

Get the number of components/channels.

See
  • Spec ICC.1:2001-04 - Table 48

getPCS()

public SetaPDF_Core_IccProfile_Parser::getPCS (
void
): string

Get the Profile Connection Space signature.

See

getPreferredCMM()

Get preferred Color Management Module.

See

getPrimaryPlatform()

Get the Primary Platform signature.

See

getProfileSize()

getReader()

Get the reader instance.

getVersion()

public SetaPDF_Core_IccProfile_Parser::getVersion (
[ boolean $raw = false ]
): string

Get the profile version number.

A 4 byte string: Byte 0 = Major Revision in Binary-Coded Decimal Byte 1 = Minor Revision & Bug Fix Revision in each nibble in Binary-Coded Decimal Byte 2 + 3 = reserved, must be set to 0

Parameters
$raw : boolean
 
See