GetOutputIntentICCInfo
Document properties, Compliance
Description
This page describes GetOutputIntentICCInfo in PDFlibPas under the "Document properties, Compliance" topic. API names, parameters, class names, filenames, and literals are kept exactly as they appear in the Delphi library and DLL entry points.
Review the syntax, parameters, and return values before calling the function.
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.