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
At the time of writing, this did work. I'm not sure if it still does.
PDFJS makes use of Promises. The easiest thing to do is the following:
Promises
page.render(renderContext).promise.then(function(){ document.body.appendChild(canvas); });