modern-pdf-lib / AnnotationOptions
Interface: AnnotationOptions
Defined in: src/annotation/pdfAnnotation.ts:46
Options for creating a new annotation.
Properties
author?
optionalauthor:string
Defined in: src/annotation/pdfAnnotation.ts:52
Author / title of the annotation.
border?
optionalborder:object
Defined in: src/annotation/pdfAnnotation.ts:62
Border specification.
style?
optionalstyle:"solid"|"dashed"|"beveled"|"inset"|"underline"
width
width:
number
color?
optionalcolor:object
Defined in: src/annotation/pdfAnnotation.ts:56
Colour in RGB (each component 0-1).
b
b:
number
g
g:
number
r
r:
number
contents?
optionalcontents:string
Defined in: src/annotation/pdfAnnotation.ts:50
Text contents (displayed as tooltip or popup).
flags?
optionalflags:number
Defined in: src/annotation/pdfAnnotation.ts:60
Annotation flags bitmask (PDF spec Table 165).
modificationDate?
optionalmodificationDate:Date
Defined in: src/annotation/pdfAnnotation.ts:54
Last modification date.
opacity?
optionalopacity:number
Defined in: src/annotation/pdfAnnotation.ts:58
Opacity (0 = transparent, 1 = opaque).
rect
rect: [
number,number,number,number]
Defined in: src/annotation/pdfAnnotation.ts:48
Annotation rectangle [x1, y1, x2, y2] in default user space.