From 08a407f15026f753c3384a0c5d529a38ad08a438 Mon Sep 17 00:00:00 2001 From: Manu Krishnan <51072177+mkrishnan-codes@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:55:49 +0530 Subject: [PATCH] Update documentation (#337) documentation updated, from the comments - https://github.com/modesty/pdf2json/issues/309#issuecomment-1817535725 --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 57cea1f9..aa065523 100644 --- a/readme.md +++ b/readme.md @@ -68,7 +68,7 @@ To disable the first type, you could mock the console.log and console.warn APIs, pdfParser.on("pdfParser_dataError", errData => console.error(errData.parserError) ); pdfParser.on("pdfParser_dataReady", pdfData => { - fs.writeFile("./pdf2json/test/F1040EZ.json", JSON.stringify(pdfData)); + fs.writeFile("./pdf2json/test/F1040EZ.json", JSON.stringify(pdfData),(data) => { console.log(data)}); }); pdfParser.loadPDF("./pdf2json/test/pdf/fd/form/F1040EZ.pdf");