PdfDocument.CreateJavaScriptAction Method

Creates a new PdfJavaScriptAction with specified script contents.

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.

Remarks

Javascript is not allowed in PDF/A documents. Do not use this method if you plan to save the document as a PDF/A compatible one.

See Also