PSPDFJavaScriptAction

Objective-C


@interface PSPDFJavaScriptAction : PSPDFAction

Swift

class JavaScriptAction : Action

Defines an action that contains JavaScript to be executed in the document context.

  • Designated initializer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithScript:(nonnull NSString *)script;

    Swift

    init(script: String)
  • The javascript content.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *script;

    Swift

    var script: String? { get }