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" } 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
OptionalborderStyle
borderStyle?: null | "solid" | "dashed" | "beveled" | "inset" | "underline"
OptionalborderWidth
borderWidth?: null | number
Optionalcallout
callout?:
| null
| {
cap?: | null
| | "square"
| "circle"
| "diamond"
| "openArrow"
| "closedArrow"
| "butt"
| "reverseOpenArrow"
| "reverseClosedArrow"
| "slash";
end: [number, number];
innerRectInset?:
| null
| [left: number, top: number, right: number, bottom: number];
knee?: null | [number, number];
start: [number, number];
}
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
OptionalfontStyle
fontStyle?: null | string[]
Optionalgroup
group?: IGroup
OptionalhorizontalAlign
horizontalAlign?: "left" | "center" | "right"
OptionalisAnonymous
isAnonymous?: boolean
isCommentThreadRoot?: boolean
OptionalisFitting
isFitting?: 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?: null | number
Optionalsubject
subject?: null | string
text
text: { format: "xhtml" | "plain"; value: string }
type
type: "pspdfkit/text"
OptionalupdatedAt
updatedAt?: string | Date OptionalverticalAlign
verticalAlign?: "center" | "top" | "bottom"