Parsing PDF pages as javascript Images

PDF.js will let you render the PDF to a canvas. Then you can do something like:

var img = new Image();
img.src = pdfCanvas.toDataURL();

I've been very impressed with PDF.js. I love letting the client's browser do as much of the work for me as possible.

Demo here: http://jsbin.com/pdfjs-helloworld-v2/1/edit


Looks like the first issue is a missing executable: identify. This is part of ImageMagick:

http://www.imagemagick.org/script/index.php

Make sure you also have it in your path.