UnderlineSettings
23 Sep 20252 minutes to read
The UnderlineSettings module is used to provide the properties to Underline annotation.
<div id="pdfViewer" style="height: 100%;width: 100%;"></div> let viewer: PdfViewer = new PdfViewer();
// Change the underline annotation settings.
viewer.underlineSettings = {
pageNumber: 1,
bounds: [],
opacity: 1,
color: '#9c2592',
author: 'Guest',
annotationSelectorSettings: {
selectionBorderColor: '',
resizerBorderColor: 'black',
resizerFillColor: '#FF4081',
resizerSize: 8,
selectionBorderThickness: 1,
resizerShape: 'Square',
selectorLineDashArray: [],
resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges
},
customData: null,
isLock: false,
enableMultiPageAnnotation: false,
enableTextMarkupResizer: false,
allowedInteractions: ['None'],
isPrint: true,
subject: ''
};
viewer.appendTo("#pdfViewer");Properties
allowedInteractions AllowedInteraction[]
Gets or sets the allowed interactions for the locked underline annotations.
IsLock can be configured using underline settings.
Defaults to [‘None’]
annotationSelectorSettings AnnotationSelectorSettingsModel
specifies the annotation selector settings of the annotation.
author string
specifies the author of the annotation.
bounds IAnnotationPoint[]
Get or set bounds of the annotation.
Defaults to []
color string
specifies the color of the annotation.
customData object
specifies the custom data of the annotation.
enableMultiPageAnnotation boolean
Enables or disables the multi-page text markup annotation selection in UI.
Defaults to false
enableTextMarkupResizer boolean
Enable or disable the text markup resizer to modify the bounds in UI.
Defaults to false
isLock boolean
specifies the locked action of the annotation.
isPrint boolean
specifies whether the individual annotations are included or not in print actions.
opacity number
specifies the opacity of the annotation.
pageNumber number
Get or set page number of the annotation.
subject string
specifies the subject of the annotation.