Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

read pdf as array bytes using fetch

// Read PDF as Buffer Array using Fetch API:

fetch("./invoice.pdf")
.then( res => res.arrayBuffer() )
.then( arrayBufferData => console.log(arrayBufferData) );
 
PREVIOUS NEXT
Tagged: #read #pdf #array #bytes #fetch
ADD COMMENT
Topic
Name
1+5 =