[]
Represents a PDF ICC profile stream defining a color space transformation.
get id(): number;
Gets the reference to the object.
number
get metadata(): Uint8Array<ArrayBufferLike>;
Gets the XMP metadata stream associated with the ICC profile.
Returns null if no metadata stream is present.
Uint8Array<ArrayBufferLike>
set metadata(value): void;
Sets the XMP metadata stream associated with the ICC profile.
Uint8Array
void
get n(): number;
Gets the number of color components in the color space described by the ICC profile data. Valid values are 1, 3, or 4.
number
set n(value): void;
Sets the number of color components in the color space described by the ICC profile data. Valid values are 1, 3, or 4.
number
void
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get range(): number[];
Gets an array of 2 * n numbers [min0 max0, min1 max1, ...] specifying the minimum
and maximum valid values of the corresponding color components.
These values shall match the information in the ICC profile.
Returns null if not set.
number[]
set range(value): void;
Sets an array of 2 * n numbers [min0 max0, min1 max1, ...] specifying the minimum
and maximum valid values of the corresponding color components.
These values shall match the information in the ICC profile.
Pass null to remove the entry.
number[]
void
static create(data, om?): IccProfile;
Creates an IccProfile from the given ICC profile data.
Returns null if the data is invalid or in an unsupported format.
Uint8Array
The raw ICC profile bytes.
An optional object manager that controls the lifetime of the object.
IccProfile
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void