PdfInteractiveFormScriptExtensions Class

Creates the script sessions of the interactive forms.

public static class PdfInteractiveFormScriptExtensions

Methods

NameDescription
CreateScriptSession(PdfInteractiveForm, PdfFormScriptOptions?)Creates a session that runs the scripts of a form when values are set through it. The document-level scripts run once, now. The scripts never run otherwise: setting PdfFormField.Value runs none.

CreateScriptSession(PdfInteractiveForm, PdfFormScriptOptions?)

PdfInteractiveFormScriptExtensions.cs

Creates a session that runs the scripts of a form when values are set through it. The document-level scripts run once, now. The scripts never run otherwise: setting PdfFormField.Value runs none.

public static PdfFormScriptSession CreateScriptSession(this PdfInteractiveForm form, PdfFormScriptOptions? options = null)

Parameters

form PdfInteractiveForm
The form.
options PdfFormScriptOptions?
The limits and the callbacks, or null for PdfFormScriptOptions.Default.

Returns

PdfFormScriptSession The session. Dispose of it to release its script engine.

Exceptions

PdfFormScriptException
A document-level script failed, and PdfFormScriptOptions.ThrowOnScriptError is set.