Optionalaction
action?: | null | | { subactions?: (CoreActionJSON)
[]; type: "uri"; uri: string } | { pageIndex: number; subactions?: (CoreActionJSON)
[]; type: "goTo" } | { newWindow: boolean; relativePath: string; subactions?: (CoreActionJSON)
[]; targetType: "parent" | "child"; type: "goToEmbedded"; } | { namedDestination: string; relativePath: string; subactions?: (CoreActionJSON)
[]; type: "goToRemote"; } | { annotationReferences: AnnotationReference[]; hide: boolean; subactions?: (CoreActionJSON)
[]; type: "hide"; } | { fields: null | AnnotationReference[]; flags: null | string; subactions?: (CoreActionJSON)
[]; type: "resetForm"; } | { fields: null | string[]; flags: null | ActionFlags[]; subactions?: (CoreActionJSON)
[]; type: "submitForm"; uri: string; } | { filePath: string; subactions?: (CoreActionJSON)
[]; type: "launch" } | { action: Omit<string, "custom">; subactions?: (CoreActionJSON)
[]; type: "named"; } | { action: "custom"; customAction: NamedCustomAction; subactions?: (CoreActionJSON)
[]; type: "named"; } | { script: string; subactions?: (CoreActionJSON)
[]; type: "javaScript" } OptionaladditionalActions
additionalActions?:
| null
| { [key: string]: undefined
| { type: string; [key: string]: unknown } }
OptionalAPStreamCache
APStreamCache?: { cache: string } | { attach: string }
OptionalbackgroundColor
backgroundColor?: null | string
bbox
bbox: [left: number, top: number, width: number, height: number]
OptionalblendMode
blendMode?:
| null
| | "normal"
| "multiply"
| "screen"
| "overlay"
| "darken"
| "lighten"
| "colorDodge"
| "colorBurn"
| "hardLight"
| "softLight"
| "difference"
| "exclusion"
OptionalborderColor
borderColor?: null | string
OptionalborderDashArray
borderDashArray?: null | number[]
OptionalborderStyle
borderStyle?: null | "solid" | "dashed" | "beveled" | "inset" | "underline"
OptionalborderWidth
borderWidth?: null | number
buttonIconUpdatedAt?: null | number
OptionalcontentType
contentType?: null | string
OptionalcreatedAt
createdAt?: string | Date OptionalcreatorName
creatorName?: null | string
OptionalcustomData
customData?: null | Record<string, unknown> Optionalflags
flags?:
| null
| (
| "noView"
| "noPrint"
| "locked"
| "lockedContents"
| "readOnly"
| "hidden"
| "noZoom"
| "noRotate"
)[]
Optionalfont
font?: null | string
OptionalfontColor
fontColor?: null | string
OptionalfontSize
fontSize?: null | number | "auto"
OptionalfontStyle
fontStyle?: null | string[]
Optionalgroup
group?: IGroup
OptionalhorizontalAlign
horizontalAlign?: null | "left" | "center" | "right"
OptionalisAnonymous
isAnonymous?: boolean
isCommentThreadRoot?: boolean
OptionallineHeightFactor
lineHeightFactor?: null | number
Optionalname
name?: null | string
Optionalnote
note?: null | string
Optionalopacity
opacity?: number
pageIndex
pageIndex: number
OptionalpdfObjectId
pdfObjectId?: null | number
Optionalpermissions
permissions?: {
delete: boolean;
edit: boolean;
fill?: boolean;
reply?: boolean;
setGroup: boolean;
}
Optionalrotation
rotation?: number
Optionalsubject
subject?: null | string
type
type: "pspdfkit/widget"
OptionalupdatedAt
updatedAt?: string | Date OptionalverticalAlign
verticalAlign?: null | "center" | "top" | "bottom"
widgetAttachmentId?: null | string