I'm having an issue from pdfjs. Long story short:
I added an append function inside (.spread>.page), used in viewer.js to load after page is loaded using eventBus.on("pagesloaded", function (){}
it will work successfully, but when I click on zoom in or out, or start scrolling the element I appended will disappear..
here's my code:
$(".spread .page").each(function() {
$(this).append("<div class='canvasArea'><canvas></canvas></div>");
});
is there anyway to run this function when every time the pdfjs rendering triggers?