PdfRunJavaScriptAction Class
Upon invocation of a JavaScript action, a conforming processor shall execute a script that is written in the JavaScript programming language.
public sealed class PdfRunJavaScriptAction : PdfAction
Public NotInheritable Class PdfRunJavaScriptAction
Inherits PdfAction
- Inheritance:
- System.ObjectPdfRunJavaScriptAction
Properties
ActionType
Gets the RunJavaScript value.
public override PdfActionType ActionType { get; }
Public Overrides ReadOnly Property ActionType As PdfActionType
Property Value
The RunJavaScript value.
Overrides
JavaScript
(Required) A text string or text stream containing the JavaScript script to be executed.
PDFDoc or Unicode encoding (the latter identified by the Unicode prefix U+FEFF) shall be used to encode the contents of the string or stream.
Property Value
- System.String
A text string or text stream containing the JavaScript script to be executed.
Exceptions
- System.ArgumentException
Value is null or System.String.Empty.
See Also
Inherited Properties
Metadata | (Optional; PDF 1.4) A metadata stream containing metadata for the component. (Inherited from PdfObject) |