Nutrient Web SDK

v0.0.0-dev

ReferenceSerializersWidgetAnnotationJSON

Interface WidgetAnnotationJSON

Interface

Hierarchy

ModelsWidgetAnnotationJSONWidgetAnnotationJSON

Properties

action

Optional

    | | { subactions?: (CoreActionJSON)[]; type: "uri"; uri: string }
    | { pageIndex: number; subactions?: (CoreActionJSON)[]; type: "goTo" }
    | { … }
    | { … }
    | { … }
    | { … }
    | { … }
    | { filePath: string; subactions?: (CoreActionJSON)[]; type: "launch" }
    | { … }
    | { … }
    | { script: string; subactions?: (CoreActionJSON)[]; type: "javaScript" }
    | null
{ [key: string]: { type: string; [key: string]: unknown } | undefined } | null
{ cache: string } | { attach: string }
string | null
[left: number, top: number, width: number, height: number]

blendMode

Optional

    | "normal"
    | "multiply"
    | "screen"
    | "overlay"
    | "darken"
    | "lighten"
    | "colorDodge"
    | "colorBurn"
    | "hardLight"
    | "softLight"
    | "difference"
    | "exclusion"
    | null

borderColor

Optional
string | null
number[] | null

borderStyle

Optional
"solid" | "dashed" | "beveled" | "inset" | "underline" | null

borderWidth

Optional
number | null
number | null

contentType

Optional
string | null

createdAt

Optional
string | Date

creatorName

Optional
string | null

customData

Optional
Record<string, unknown> | null

flags

Optional

    | (
        | "noView"
        | "noPrint"
        | "locked"
        | "lockedContents"
        | "readOnly"
        | "hidden"
        | "noZoom"
        | "noRotate"
    )[]
    | null

font

Optional
string | null

fontColor

Optional
string | null

fontSize

Optional
number | "auto" | null

fontStyle

Optional
string[] | null

group

Optional
string | null
"left" | "center" | "right" | null
string

isAnonymous

Optional
boolean
boolean

lineSpacing

Optional
number | null

The spacing between lines of text in multiline text widgets, in PDF points. This is the total line height (baseline to baseline), independent of the font size.

name

Optional
string | null

note

Optional
string | null

opacity

Optional
number
number

pdfObjectId

Optional
number | null

permissions

Optional
{ … }
PropertyDescription
delete
edit
fill
reply
setGroup

rotation

Optional
number

subject

Optional
string | null
"pspdfkit/widget"

updatedAt

Optional
string | Date
number
"center" | "top" | "bottom" | null
string | null