I am using PDF.JS to render pdf pages into different canvas elements. my requirement is to capture the output of the canvas and to display it as an image. Is there some even
While examining these solutions, I was having issues getting the renderContext
, so I ended up using this approach listening to pagerendered
:
document.addEventListener("pagerendered", function(e){
});
In my case, I just wanted to call some external function after the page was rendered, with minimal effort.
Hope this helps. Cheers!