GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfRunJavaScriptAction Class

    Namespace:
    GemBox.Pdf.Actions
    Assembly:
    GemBox.Pdf.dll

    Upon invocation of a JavaScript action, a conforming processor shall execute a script that is written in the JavaScript programming language.

    • C#
    • VB.NET
    public sealed class PdfRunJavaScriptAction : PdfAction
    Public NotInheritable Class PdfRunJavaScriptAction
        Inherits PdfAction
    Inheritance:
    System.Object
    PdfObject
    PdfAction
    PdfRunJavaScriptAction

    Properties

    ActionType

    Gets the RunJavaScript value.

    • C#
    • VB.NET
    public override PdfActionType ActionType { get; }
    Public Overrides ReadOnly Property ActionType As PdfActionType
    Property Value
    PdfActionType

    The RunJavaScript value.

    Overrides
    PdfAction.ActionType

    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.

    • C#
    • VB.NET
    public string JavaScript { get; set; }
    Public Property JavaScript As String
    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
    PDF Specification ISO 32000-1:2008, section '12.6.4.16 JavaScript Actions'

    Inherited Properties

    Metadata

    (Optional; PDF 1.4) A metadata stream containing metadata for the component.

    (Inherited from PdfObject)

    Extension Methods

    PdfObjectExtensions.GetDictionary(PdfObject)
    PdfObjectExtensions.GetOrAddDictionary(PdfObject)
    PdfObjectExtensions.GetArray(PdfObject)

    See Also

    PDF Specification ISO 32000-1:2008, section '12.6.4.16 JavaScript Actions'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.