TPDFlibCalcVariableEvent

Data types, events

Description

Resolves a custom variable placeholder while PDFlibPas expands header, footer, stamp, or text tokens

Syntax

Delphi

TPDFlibCalcVariableEvent = Procedure(Sender: TObject; Const VarName: WideString; Var VarValue: WideString; PageNo: Integer) Of Object;

Parameters

SenderThe TPDFlib instance expanding the token
VarNameThe placeholder name without the <% and %> delimiters
VarValueAssign the replacement text, or leave it empty to remove the placeholder
PageNoThe one-based page number for the current expansion

See also

OnCalcVariable, ExpandVariableTokens, ExpandStampTokens