LoadOutputIntentProfileA
Document properties, Compliance
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to LoadOutputIntentProfile and string arguments are interpreted using the current SetAnsiMode code page
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 DLLoadOutputIntentProfileA(InstanceID: Integer; FileName: PAnsiChar; ColorSpace: PAnsiChar): Integer;
DLL
int DLLoadOutputIntentProfileA(int InstanceID, const char * FileName, const char * ColorSpace);
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 colour space is not accepted, or the document has no OutputIntent yet.