import PDFParser from "pdf2json";
var pdfParser = new PDFParser();
pdfParser.on("pdfParser_dataError", console.log);
pdfParser.on("pdfParser_dataReady", console.log);
var verbosity = 1;
pdfParser.loadPDF("./test-pdf.pdf", verbosity);
setTimeout(() => console.log("does not display"), 1000);
The code and the pdf file are attached.
test-pdf.pdf