We are applying watermark through "pagecomplete" event in ReaderControl.js as give sample code:
me.docViewer.on('pageComplete', function (e, pageIndex) {
var canvasid = null;
var canvasheight = me.getPageContainer(pageIndex)[0].clientHeight;
var canvaswidth = me.getPageContainer(pageIndex)[0].clientWidth;
var height = parseInt(canvasheight);
var width = parseInt(canvaswidth);
var pageContainer = me.getPageContainer(pageIndex);
var WaterMarktext = "welcome";
var postion = "1";
var size = "40";
var color = "gray";
var opacity = "0.8";
var fontsize = size;
switch (postion) {
case "1":
pageContainer.append('<div style="width: ' + width + 'px; height: ' + height + 'px;overflow: hidden;z-index: 30;'
+ 'position: relative; display: table-cell;'
+ 'text-align: center; vertical-align: top;">'
+ '<div id="fitin" style="width: ' + width / 1.5 + 'px; height: ' + height / 6 + 'px;overflow: hidden;'
+ 'font-size: ' + fontsize + 'px; margin: 0 auto; text-align: center;">'
+ ' <div style="position: absolute;opacity: ' + opacity + ';color:' + color + ';font-family:sans-serif">' + WaterMarktext + '</div>'
+ ' </div></div>');
default:
}
alert('d');
me.fireEvent("pageCompleted", [pageIndex + 1]);
});
Attached the screenshot for blurred.
Please fix this issue ASAP.
waiting for your response.