2022-06-29

crabbly / Print.js Print not working, Print Preview not showing

We are using 1.6 of crabbly/Print.js https://github.com/crabbly?tab=repositories https://printjs.crabbly.com/

It works just fine until this setting in edge is turned on. This is our code.

                const bytes = convertBase64ToUint8Array(json.contentBase64)
                const blob = new Blob([bytes], { type: json.contentType });
                const url = window.URL.createObjectURL(blob);
                showMessage.success('Sucessfully downloaded the report as pdf', url)
                print({ printable: url, type: 'pdf', showModal: true })

enter image description here

This is the error we are getting. I cannot reproduce this in development. enter image description here



No comments:

Post a Comment