I am using the ngx-extended-pdf-viewer and I want to add a div on each page.. It works as expected.. my dom looks like this: (the div with the class="con" was added by me)
but if I am going to push the zoom button - the added div disappears..
My Code looks like this:
var div = '<div class="con" style="width:100px; height:100px; Background:#2a2a2a; position: relative; z-index: 1000"></div>';
(document.getElementsByClassName('page')[0]).insertAdjacentHTML('beforeend', div);
Can somebody tell me, how to achieve that the element always stays there? (any advice might help - I am also open for other suggestions to add an div in a pdf-viewer - maybe a other module, or does maybe jQuery help in this situation?)