You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Error: ENOENT: no such file or directory, open 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf'
}
Like this I don't get anything on console.log, neither error.
const{ data }=awaitaxios.get('https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf',{responseType: 'arraybuffer',});pdfExtract.extractBuffer(data,options,(err,pdf)=>{if(err){returnconsole.error(err);}console.log(pdf);});
Node v20
"pdf.js-extract": "^0.2.1"
Am I missing something?
I also tried, but same error:
Does it work only with local files?
The text was updated successfully, but these errors were encountered: