Open gl-devis opened 3 months ago
Facing the same problem
Can you please try again using the latest version? (5.0.1). It includes an updated pdfjs-dist
dependency which might help.
Other than that, I haven't been able to repro this yet so I don't know what else to do 🙃
node version: v20.11.0 pdf-text-reader version: 4.0.1 os version: Ubuntu 22.04.3 LTS
my code in index.js :
const { readPdfText } = require('pdf-text-reader') const filePath = './files/file.pdf';
(async () => {
const pdfText = await readPdfText({url: filePath}); console.info(pdfText);
})();
print Warning: TT: undefined function: 3 on the console when run node index.js