Print.js icon indicating copy to clipboard operation
Print.js copied to clipboard

print html with my data in another page

Open churongcon opened this issue 4 years ago • 0 comments

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 :(

churongcon avatar Feb 17 '22 07:02 churongcon