THotPDF.RegisterPostScriptFunction Method
Registers a reusable post script function 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 RegisterPostScriptFunction(const Domain: array of Single; const Range: array of Single; const Source: AnsiString): THPDFStreamObject;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Domain | Input used by RegisterPostScriptFunction |
Range | Input used by RegisterPostScriptFunction |
Source | Input used by RegisterPostScriptFunction |
Return value
Returns a THPDFStreamObject value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field, or catalog object is finalised
- Keep object names, field names, resource names, and returned handles stable until the document is finalised