How to Convert PDF to Image (JPEG / PNG) with Javascript using PDF.JS In PDF.JS Tutorial 1 we discussed how PDF.JS can be used to show a preview of the PDF. The application can navigate pages of the PDF using PDF.JS APIs. In Tutorial 2 we discussed how PDF.JS, being a complete PDF viewer, can be also open a password protected PDF. In Tutorial 3 we discussed about the loading callback, which can be