Pdf to image converter in node