pdf2json icon indicating copy to clipboard operation
pdf2json copied to clipboard

when passing an invalid buffer to PdfReader, an error should be returned.

Open linto17 opened this issue 1 year ago • 0 comments

The code and the pdf file are attached.

  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);

test-pdf.pdf

linto17 avatar Jun 22 '23 06:06 linto17