PSPDFJavaScriptStatus

Objective-C

enum PSPDFJavaScriptStatus {}

Swift

@frozen enum JavaScriptStatus : Int

Returns if JavaScript code can execute on this document.

  • JavaScript is disabled.

    Declaration

    Objective-C

    PSPDFJavaScriptStatusDisabled

    Swift

    case disabled = 0
  • JavaScript is enabled.

    Declaration

    Objective-C

    PSPDFJavaScriptStatusEnabled

    Swift

    case enabled = 1
  • JavaScript is enabled, but it won’t show any alert message. If a programs wants to alert, the message will be printed to the console log instead. This is useful in the batch processing of form fields that may have validation scripts attached.

    Declaration

    Objective-C

    PSPDFJavaScriptStatusEnabledDoNotDisturb

    Swift

    case enabledDoNotDisturb = 2