Since it is built on pdf.js, pdf2json , it should work in windows.
I managed to find the number of pages of the test document as follows:
var PDFParser = require('pdf2json'); var pdfParser = new PDFParser(); pdfParser.on('pdfParser_dataReady', function(data) { var doc = data.PDFJS && data.PDFJS.pdfDocument && data.PDFJS.pdfDocument.numPages; console.log('Number of pages:', doc); });
source share