PDF untuk gambar 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');
});
Talented Toucan