SetaPDF_Core_IccProfile_Parser ICC profile parser

File: /SetaPDF/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

$_headerData

$_reader

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

Get the Profile/Device Class signature.

See

getColorSpace()

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

Get the color space signature or readable form.

Parameters
$signature : boolean
 
See

getCreator()

Get the Profile Creator signature.

See

getDescription()

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

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

Get Profile flags.

See

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 string SetaPDF_Core_IccProfile_Parser::getPCS ( void )

Get the Profile Connection Space signature.

See

getPreferredCMM()

Get preferred Color Management Module.

See

getPrimaryPlatform()

Get the Primary Platform signature.

See

getProfileSize()

Get the profile size.

See

getReader()

Get the reader instance.

getVersion()

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

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