PdfInteractiveFormScriptExtensions Class
Creates the script sessions of the interactive forms.
public static class PdfInteractiveFormScriptExtensionsMethods
| Name | Description |
|---|---|
| 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.csCreates 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
formPdfInteractiveForm- The form.
optionsPdfFormScriptOptions?- The limits and the callbacks, or
nullforPdfFormScriptOptions.Default.
Returns
PdfFormScriptSession The session. Dispose of it to release its script engine.
Exceptions
PdfFormScriptException- A document-level script failed, and
PdfFormScriptOptions.ThrowOnScriptErroris set.