Open zafarali opened 8 years ago
try: var PDFParser = require("./pdf2json/PDFParser"); var pdfParser = new PDFParser(); var pdfPipe = request({url: pdfUrl, encoding:null}).pipe(pdfParser);
try: var PDFParser = require("./pdf2json/PDFParser"); var pdfParser = new PDFParser(); var pdfPipe = request({url: pdfUrl, encoding:null}).pipe(pdfParser);
I get an empty array i am trying to fetch a pdf from a remote server any idea what could cause that
We will need to use request({url: pdfUrl, encoding:null}).pipe(pdfParser.createParserStream());
now
I'm trying to load a single PDF from a remote server. Here is my approach: (I can confirm that if I just pipe the request into a write stream it saves the PDF fine)
However, I'm getting an error:
Code constructed from here:
http://stackoverflow.com/a/36882510/3779915