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.
Try PDF.js will let you render the PDF to a canvas. PDF.js GitHub
var img = new Image();
img.src = pdfCanvas.toDataURL();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With