VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Tree Namespace / PdfJavaScriptAction Class
Members Object Syntax Remarks Hierarchy Requirements SeeAlso
In This Topic
    PdfJavaScriptAction Class
    In This Topic
    Defines a JavaScript action associated with PDF element (bookmark, link, interactive form field, ...).
    Object Model
    PdfResource PdfDocument PdfIndirectReference PdfBasicObject PdfJavaScriptAction
    Syntax
    'Declaration
    
    Public Class PdfJavaScriptAction
       Inherits PdfAction
    
    
    public class PdfJavaScriptAction : PdfAction
    
    
    public __gc class PdfJavaScriptAction : public PdfAction*
    
    
    public ref class PdfJavaScriptAction : public PdfAction^
    
    
    Remarks

    A JavaScript action (PDF 1.3) causes a script to be compiled and executed by the JavaScript interpreter. Depending on the nature of the script, various interactive form fields in the document may update their values or change their visual appearances.

    To support the use of parameterized function calls in JavaScript scripts, the JavaScripts property can contain names of document-level JavaScript actions. When the document is opened, all of the actions in this dictionary are executed, defining JavaScript functions for use by other scripts in the document.
    Adobe JavaScript for Acrobat API Reference give details on the contents and effects of JavaScript scripts.

    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.Pdf.Tree.PdfTreeNodeBase
          Vintasoft.Imaging.Pdf.Tree.PdfAction
             Vintasoft.Imaging.Pdf.Tree.PdfJavaScriptAction

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also