PdfFormScriptOptions Class
The options of PdfFormScriptSession: the limits of the scripts and the callbacks of the host.
public sealed class PdfFormScriptOptionsConstructors
| Name | Description |
|---|---|
| PdfFormScriptOptions() |
PdfFormScriptOptions()
PdfFormScriptOptions.cspublic PdfFormScriptOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Alert | Gets the callback of app.alert, or null (the default) to ignore the alerts. The alerts are reported in the diagnostics either way. |
| CancellationToken | Gets the token that cancels the scripts. |
| Default | Gets the default options. |
| MaxStatements | Gets the number of statements a script may run, each time it runs. The default is 1,000,000. |
| MemoryLimit | Gets the bytes a script may allocate, each time it runs. The default is 64 MB. |
| RecursionLimit | Gets the depth of the calls of a script. The default is 1,000. |
| ThrowOnScriptError | Gets a value indicating whether an error of a script throws PdfFormScriptException. The default is false: the error is reported in the diagnostics and the other scripts run, as viewers do. |
| Timeout | Gets the time a script may run, each time it runs. The default is one second. |
Gets the callback of app.alert, or null (the default) to ignore the alerts. The alerts are reported in the diagnostics either way.
Property value
CancellationToken
PdfFormScriptOptions.csGets the token that cancels the scripts.
public CancellationToken CancellationToken { get; init; }Property value
Default
PdfFormScriptOptions.csMaxStatements
PdfFormScriptOptions.csMemoryLimit
PdfFormScriptOptions.csRecursionLimit
PdfFormScriptOptions.csThrowOnScriptError
PdfFormScriptOptions.csGets a value indicating whether an error of a script throws PdfFormScriptException. The default is false: the error is reported in the diagnostics and the other scripts run, as viewers do.
public bool ThrowOnScriptError { get; init; }