LoadOutputIntentProfile

Document properties, Compliance

Description

Replaces the bundled sRGB ICC profile used by the selected document OutputIntent with an external profile.

Call SetPDFAMode first to create the OutputIntent skeleton, then call this function when the archive profile must be CMYK, greyscale, or a custom RGB profile instead of the built-in sRGB stream.

Syntax

Delphi

Function LoadOutputIntentProfile(Const FileName: WideString; Const ColorSpace: AnsiString): Integer;

Parameters

FileNamePath to the ICC profile file.
ColorSpaceOutput profile device class to declare, such as DeviceRGB, DeviceCMYK, or DeviceGray.

Returns

Returns 1 when the profile is loaded into the existing OutputIntent. Returns 0 if the file cannot be read, the colour space is not accepted, or the document has no OutputIntent yet.

See also

SetPDFAMode