smartwei
smartwei
I have solved the function of displaying the background picture when printing,add css style. The code is as follows: ``` @media print { body { -webkit-print-color-adjust: exact; -moz-print-color-adjust: exact; -ms-print-color-adjust:...
I'm looking for that, too
I found a way to get base64 data. The code is as follows: ``` var element = document.getElementById('zPrintDiv'); var worker = html2pdf(element).toPdf();; worker = worker.output("datauristring").then(function (pdf) { console.log("conve pdf ok:")...