Issue
So I have some code where you upload a PDF and it displays it using the browser's built-in PDF reader.
I was wondering if there was any way to take an uploaded PDF and convert it to an image or images.
Solution
Try PDF.js will let you render the PDF to a canvas. PDF.js GitHub
var img = new Image();
img.src = pdfCanvas.toDataURL();
Answered By - sathish kumar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.