Closed 24min closed 1 year ago
privt-js version:1.6.0
//pdf base64 value start with data:application/pdf;base64, const pdfBase64 = `data:application/pdf;base64,xxxxxxxxx`; printJS({ printable: pdfBase64, base64: true, })
The above code causes the error Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
Beacuse atob function canβt transfer the symbol(,)
So we should remove this symbol.
----------------πππ-----------------
The following file is a pdf base64 string start with data:application/pdf;base64,
data:application/pdf;base64,
base64WithHeader.txt
privt-js version:1.6.0
The above code causes the error Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
Beacuse atob function canβt transfer the symbol(,)
So we should remove this symbol.
----------------πππ-----------------
The following file is a pdf base64 string start with
data:application/pdf;base64,
base64WithHeader.txt