Skip to content

Commit

Permalink
Changed event order.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Sep 11, 2018
1 parent b098278 commit e36f55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.js
Expand Up @@ -103,8 +103,8 @@ function parsePdfs(database, url) {
let pdfParser = new pdf2json();
request({ url: pdfUrl, encoding: null }).pipe(pdfParser);
pdfParser.on("pdfParser_dataError", error => { console.error(error); });
pdfParser.on("finish", () => { });
pdfParser.on("error", () => { });
pdfParser.on("finish", () => { });
pdfParser.on("pdfParser_dataReady", pdf => {
// Convert the JSON representation of the PDF into a collection of PDF rows.

Expand Down

0 comments on commit e36f55a

Please sign in to comment.