arkokoley/pdfvuer

ArrayBuffer is not supported

maximiliannocker opened this issue · 1 comments

It is not possible to pass an arraybuffer to the createLoadingTask method

It is not possible to pass an arraybuffer to the createLoadingTask method

Hi, can you tell a little more about what you want to achieve?

If you have an arrayBuffer, you can turn it into a Uint8Array and pass it to the reader directly :

const dataArray = new Uint8Array(yourArrayBuffer);

And pass it directly:

<pdf src="{ data: dataArray }">