THotPDF.RegisterHalftoneState Method
Registers a reusable halftone state resource for the document creation 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
function RegisterHalftoneState(Halftone: THPDFObject; HTDefaultName: boolean= false): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Halftone | Input used by RegisterHalftoneState |
HTDefaultName | PDF resource name, packet name, profile name, or caller-defined identifier |
Return value
Returns an AnsiString value
Usage notes
- Use this API in the document creation 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
- Loaded-page rendering executes Type 1, Type 5, Type 6, Type 10, and Type 16 dictionaries, including independent Type 5 color-component screens and per-screen transfer functions
- Threshold streams require exact decoded payload lengths and valid bounded dimensions; invalid data leaves the affected graphics state in continuous-tone mode