Print.js
Print.js copied to clipboard
print html with my data in another page
My data:
/hello.html
<p> hello </p>
and print page /print.html
window.printPdfBase64 = function () {
fetch('hello.html').then(function (response) {
response.text().then(function (mydata) {
printJS({
printable: mydata,
type: 'html'
})
})
})
}
But it dont work help me :(