THotPDF.RegisterSeparationFunc Method
Registers a reusable separation func resource for the document creation workflow. Call it before page commands reference the resource name so colour, pattern, font, image, or profile data is available in the PDF resource tree
Declaration
function RegisterSeparationFunc(const ColorantName: AnsiString; const AlternateCS: AnsiString; TintTransform: THPDFObject): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
ColorantName | Colour component or colour value used by the painting or resource operation |
AlternateCS | Fallback colour space name written as the profile alternate colour space |
TintTransform | Input supplied to RegisterSeparationFunc |
Return value
Returns an AnsiString value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- Keep object, field and resource names, and returned handles, stable whilst the document is being finalised