THotPDF.RegisterDefaultColorSpace Method
Registers a reusable default color space resource for the graphics and color management workflow. Call it before page commands reference the resource name so color, pattern, font, image, or profile data is available in the PDF resource tree
Declaration
procedure RegisterDefaultColorSpace(const Which: AnsiString; const ColorSpaceCS: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Which | Input used by RegisterDefaultColorSpace |
ColorSpaceCS | Color component or color value used by the painting or resource operation |
Return value
This member does not return a value
Usage notes
- Use this API in the graphics and color management workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Register named color resources before using them from page-level painting commands