HPDFCreateHeadlessSRGBProfile

function HPDFCreateHeadlessSRGBProfile: SysUtils.TBytes;

Generate an actual serialized sRGB profile using dynamically loaded Little CMS 2; the provider is resolved through HOTPDF_LCMS_LIBRARY and otherwise defaults to liblcms2.so.2 on Unix and lcms2.dll elsewhere, which is the order the Cairo renderer already uses, so one override reaches both loaders; missing provider functions and serialization failure produce a diagnostic that names the library actually attempted

Workflow contracts and regression evidence