Warnings in console when loading PDF file and trying to hide Annotation text yellow popup on onPageRendered event
ashishkanojiay999 opened this issue · 0 comments
ashishkanojiay999 commented
Hi Team,
I am trying to render pdf and hiding Annotation text yellow popup but for manually created PDF file its giving warning in console(Warning: TT: undefined function: 32) on afterLoadComplete event and not hiding that yellow text Annotation popup.
I am using below code to hide Annotation text popup onPageRendered event
var elements = this.el.nativeElement.getElementsByClassName("popupWrapper");
for (var i = 0; i < elements.length; i++) {
if (elements[i].lastElementChild != null)
elements[i].lastElementChild.style.display = "none";
if (elements[i].nextSibling != null) {
elements[i].nextSibling.style.height = "25px";
elements[i].nextSibling.style.width = "30px";
}
}