📜  pdf 到图像 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:19.777000             🧑  作者: Mango

代码示例1
$("#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');
});