您能否幫我解決這個問題? 功能doPrint(){在使用jspdf下載aspx頁面到pdf時,我得到的pdf大小根據設備的大小而不同,我打開此aspx
var doc = new jsPDF();
var specialElementHandlers = {
'#editor': function(element, renderer) {
return true;
}
};
doc.fromHTML($('#IDBodyHike'), 15, 15, {
'width': 170,
'elementHandlers': specialElementHandlers
});
doc.addHTML($('#IDBodyHike'), function() {
doc.save('sample-file.pdf');
});
} }
體的onload = 「doPrint();」 >
沒有它在不同的設備上看起來不一樣。 –
它的觀點在不同的網站很好。 –
Jspdf正在從aspx.cs文件 –