pdf2json gives me a blank output txt file?
问题 I am following their "Code Example" guide on their github. https://github.com/modesty/pdf2json#code-example In the example that says "Parse a PDF then write a .txt file (which only contains textual content of the PDF)", I copied and pasted the exact implementation into my a local JavaScript file and called it but the output text file was completely blank. 'use strict'; let fs = require('fs'); let PDFParser = require("pdf2json"); let pdfParser = new PDFParser(); pdfParser.on("pdfParser