Table of Contents

Method CreateJavaScriptAction

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

CreateJavaScriptAction(string)

Creates a new PdfJavaScriptAction with specified script contents.

public PdfJavaScriptAction CreateJavaScriptAction(string scriptContents)

Parameters

scriptContents string

The text of the JavaScript script to be executed as the result of the action.

Returns

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 the example of using JavaScript in forms.