javascript image to pdf code example
Example: pdf to image javascript
$("#download-image").on('click', function() {
// For IE 10 & 11
if(typeof window.navigator.msSaveBlob === 'function')
window.navigator.msSaveBlob(new Blob( [__CANVAS.msToBlob()], {type: 'image/png'} ), 'page.png');
else
$(this).attr('href', __CANVAS.toDataURL()).attr('download', 'page.png');
});