crabbly / Print.js

A tiny javascript library to help printing from the web.
MIT License
4.29k stars 672 forks source link

Warning: Invalid absolute docBaseUrl #606

Open sandikodev opened 2 years ago

sandikodev commented 2 years ago

i got little warning here dunno what just going on.

Warning: Invalid absolute docBaseUrl: "blob:https://kwarda.lanis.co.id/c8aede8b-a8de-43b1-b79d-ec44cf700121". pdf.worker.js:1114:13

code:

fetch(document.querySelector("#qrcodefile").data)
    .then(qr => qr.blob())
    .then(blob => {
        printJS({
            printable: URL.createObjectURL(blob),
            type: 'pdf',
            showModal: true
        });
});

even though with simple call, facing the same issue

printJS("justTry.pdf");

here my browser version thanks Screenshot from 2021-10-22 15-38-29