JavaScriptAction

JavaScriptAction

Overview

JavaScriptAction is a class in Aspose.Pdf FOSS for Java. Inherits from: PdfAction.

JavaScript action — stores a JavaScript script (ISO 32000-1:2008, §12.6.4.16).

Properties

NameTypeAccessDescription
scriptStringReadReturns the JavaScript source code.
cOSDictionaryCOSDictionaryReadReturns the underlying action dictionary.
typeStringReadReturns the action type (/S entry).
nextPdfActionReadReturns the next action (/Next), if any.

Methods

SignatureDescription
JavaScriptAction(dict: COSDictionary)Parses a JavaScriptAction from an existing dictionary.
JavaScriptAction(script: String)Creates a JavaScriptAction with the given script.
getScript()StringReturns the JavaScript source code.
setScript(script: String)Sets the JavaScript source code (as a text string).
getCOSDictionary()COSDictionaryReturns the underlying action dictionary.
getType()StringReturns the action type (/S entry).
getNext()PdfActionReturns the next action (/Next), if any.
fromDictionary(dict: COSDictionary, doc: Document)PdfActionFactory: creates the appropriate PdfAction subclass from a dictionary.

See Also