I think the solution should use an external program like ghostscript to create your jpg.
var exec = require('child_process').exec;
exec('gs -dNOPAUSE -sDEVICE=jpeg -r144 -sOutputFile=p%03d.jpg file.pdf' , function(err) {
if (err) {
} else {
}
});
source
share