PSPDFJavaScriptAction


@interface PSPDFJavaScriptAction : PSPDFAction

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 (readonly, copy, nonatomic, nullable) NSString *script;

    Swift

    var script: String? { get }