The ShapeLabelSettings
module is used to provide the properties to rectangle annotation.
<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
let viewer: PdfViewer = new PdfViewer();
// Change the shape label settings.
viewer.shapeLabelSettings = {
opacity: 1,
fillColor: '#9c2592',
borderColor: '#ff0000',
fontColor: '#000',
fontSize: 16,
labelHeight: 24.6,
labelMaxWidth: 151,
labelContent: 'Label'
};
viewer.appendTo("#pdfViewer");
string
specifies the fill color of the label.
string
specifies the border color of the label.
string
specifies the max-width of the label.
number
specifies the font size of the label.
string
specifies the default content of the label.
string
specifies the default content of the label.
number
specifies the opacity of the label.