Edit in GitHubLog an issue

addOnUISdk.constants

A set of constants used throughout the add-on SDK. These constants are equal to their variable name as a string value, ie: for the ButtonType constant, primary has a value of "primary".

Constants

Name

Type

Description

Range

string

Rendition page range. Options:

  • currentPage
  • Generate rendition for the current page
  • entireDocument
  • Generate rendition for all pages
  • specificPages
  • Generate rendition for specific pages

RenditionIntent

string

The intent to set for creating the rendition. Options:

  • preview
  • Intent to preview the content.
  • export
  • Intent to export/download the content (default).
  • print
  • Intent to export and print the content **Note:** For `pdf` format, a print optimized pdf is generated. This option is not supported for `mp4` format.

RenditionFormat

string

Required output format of the rendition.

  • jpg
  • "image/jpeg" for JPG format
  • png
  • "image/png" for PNG format
  • mp4
  • "video/mp4" for MP4 format
  • pdf
  • "application/pdf" for PDF format

RenditionType

string

The type of rendition. Currently returns "page".

RuntimeType

string

Runtime type of the entrypoint creating this backend object.

  • panel
  • add-on's iframe runtime, ie: code running in index.html
  • script
  • add-on's document sandbox code ie: code running in code.js
  • dialog
  • currently open dialog code

Variant

string

Types of dialog variants supported.

  • confirmation
  • Ask a user to confirm an action.
  • information
  • Share information for user to acknowledge.
  • warning
  • Share information that a user needs to consider before proceeding.
  • destructive
  • Tell a user that if they proceed with an action, it may impact their data in a negative way.
  • error
  • Communicate critical issue that a user needs to resolve before proceeding.
  • input
  • Ask a user to provide some inputs.
  • custom
  • A dialog that can render complex forms and content.

VideoResolution

string

Video resolution options for the mp4 renditions.

  • sd480p
  • "480p"
  • hd720p
  • "720p"
  • fhd1080p
  • "1080p"
  • custom
  • Custom resolution

DialogResultType

string

The type of modal dialog result.

  • alert
  • Alert dialog result (simple dialogs all return this).
  • input
  • Input dialog result.
  • custom
  • Custom dialog result.

ButtonType

string

The type of the button pressed in a dialog.

  • primary
  • Primary button pressed.
  • secondary
  • Secondary button pressed.
  • cancel
  • Cancel button pressed.
  • close
  • Dialog closed via ESC or close(X) button.

BleedUnit

string

Units for the page bleed.

  • "in" (`Inch`)
  • Inch units.
  • "mm" (`Millimeter`)
  • Millimeter units.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.