THPDFPage.SetCMYKFillColor Method
Sets cmyk fill color state for subsequent graphics and color management output. The setting affects later page drawing, page dictionary entries, conformance metadata, or text emission rather than already-written content
Declaration
procedure SetCMYKFillColor(C, m, Y, k: Extended);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
C | Color component or color value used by the painting or resource operation |
m | Color component or color value used by the painting or resource operation |
Y | Page coordinate or size value expressed in the current HotPDF coordinate space |
k | Color component or color value used by the painting or resource operation |
Return value
This member does not return a value
Usage notes
- Writes all four DeviceCMYK fill components with fractional precision beyond two decimal places
- Non-finite components raise EConvertError before any part of the color command is written
- 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
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak