This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var PFParser = require("pdf2json"); | |
var pdfParser = new PFParser(); | |
pdfParser.on("pdfParser_dataReady", function(data) { | |
console.log('pdf file: ' + data.pdfFilePath); | |
console.log('page count: ' + data.data.Pages.length); | |
console.log('\n\n'); | |