GetOutputIntentICCInfo
Document properties, Compliance
Description
Reads the header of the ICC profile attached to the document's first OutputIntent into Info and returns 1 when that profile is present and well formed. Returns 0 when the document has no OutputIntent, or when its profile is missing or lacks the acsp signature.
Syntax
Delphi
Function TPDFlib.GetOutputIntentICCInfo(Out Info: TPDFICCProfileInfo): Integer;
Parameters
Info receives the ICC header summary of the profile attached to the document's first OutputIntent: total profile size, profile version (e.g. 4.3), device class signature (mntr, prtr, ...), data colour space (RGB, CMYK, GRAY, Lab, ...), the profile connection space, the header rendering intent (0..3) and the component count derived from the colour space.
Return Values
Returns 1 when the document carries an OutputIntent with a well-formed ICC profile (the 128-byte header with the acsp signature), 0 otherwise.
Remarks
Useful for inspecting the print condition of PDF/A and PDF/X documents. The same header parser also backs the renderer's ICCBased colour-space handling, which now derives the component count from the profile itself when the colour space carries neither /Alternate nor /N.