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, grayscale, or a custom RGB profile instead of the built-in sRGB stream.
Syntax
Delphi
Function LoadOutputIntentProfile(Const FileName: WideString; Const ColorSpace: AnsiString): Integer;Parameters
| FileName | Path to the ICC profile file. |
|---|---|
| ColorSpace | Output 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 color space is not accepted, or the document has no OutputIntent yet.