Creates the new PdfJavaScriptAction with specified script contents and adds it to the collection of document actions.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfJavaScriptAction CreateJavaScriptAction(
	string scriptContents
)
VB
Public Function CreateJavaScriptAction ( 
	scriptContents As String
) As PdfJavaScriptAction

Parameters

scriptContents
Type: System.String
The text of the JavaScript script to be executed as the result of the action.

Return Value

Type: PdfJavaScriptAction
The newly created PdfJavaScriptAction.

See Also