THotPDF.ApplyContextualSubst Method
Applies contextual subst processing inside the document creation workflow. The method transforms text, form packets, validation profiles, or loaded PDF data while preserving public identifiers and caller-supplied resources
Declaration
function ApplyContextualSubst(const InputGIDs: array of Word; StartIndex: Integer; const FeatureTag: AnsiString; var OutGIDs: TGSUBLookupArray; out ConsumedLen: Integer): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
InputGIDs | Input used by ApplyContextualSubst |
StartIndex | Zero-based index or object index used to select an existing item |
FeatureTag | Input used by ApplyContextualSubst |
OutGIDs | Input used by ApplyContextualSubst |
ConsumedLen | Input used by ApplyContextualSubst |
Return value
Returns a boolean 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