I am going to use only the viewer for my website. I have generated one license key against my domain. After placing the code into production, the watermarks are still appearing on the viewer. How to remove it please guide. Thanks.
function openPDF(pdfFileName) {
document.getElementById('pdfviewer').style.display = 'block';
WebViewer({
licenseKey: 'KEY_HERE',
initialDoc: '<%=contextPath%>/viewpdf/'+pdfFileName,
}, document.getElementById('pdfviewer'))
.then(instance => {
instance.UI.setTheme('dark');
instance.UI.disableElements(['fullscreenButton']);
instance.UI.disableFeatures([instance.UI.Feature.Print]);
instance.UI.disableElements(['ribbons']);
instance.UI.disableElements(['panToolButton']);
instance.UI.disableElements(['toolsHeader']);
instance.UI.disableElements(["language", "languageButton"]);
instance.UI.disableElements(["selectTool", "selectToolButton"]);
instance.UI.disableElement(["toggleNotesButton"]);
instance.UI.setHeaderItems((header) => {
header.getHeader('default').push({
img: "icon-header-full-screen",
index: -1,
type: "actionButton",
element: 'fullScreenButton',
onClick: () => {
instance.UI.toggleFullScreen()
}
});
});
});
}