THPDFJavaScriptEvaluationResult Record

Outcome of a safe form-field JavaScript evaluation: executed and accepted flags, resulting value, operation count, error text, elapsed time, and value size

Declaration

THPDFJavaScriptEvaluationResult= record
  Executed: boolean;
  Accepted: boolean;
  Value: AnsiString;
  OperationCount: Integer;
  ErrorText: AnsiString;
  ElapsedMilliseconds: Cardinal;
  ValueBytes: Int64;
end;

Unit

HPDFDoc

Fields

FieldPurpose
Executedtrue when a JavaScript action attached to the field trigger actually ran in the safe interpreter
Acceptedtrue when the sandbox accepted the script's result; rejected results must not be written back to the field
ValueField value after the run: the interpreter output when accepted, otherwise the input value that was passed in
OperationCountInterpreter operations consumed by the script, against the configured script budget
ErrorTextFailure description, for example that the field trigger carries no JavaScript action, or the sandbox's error message
ElapsedMillisecondsWall-clock duration of the evaluation
ValueBytesByte length of the resulting value, against the output-size budget

Usage notes

Related APIs