Skip to content

Commit

Permalink
issue #290: update README with correct import statement
Browse files Browse the repository at this point in the history
  • Loading branch information
modestysn committed Dec 26, 2022
1 parent 2f99de9 commit a0071f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ More test scripts with different commandline options can be found at *_package.j

````javascript
import fs from "fs";
import PDFParser from "./pdfparser.js";
import PDFParser from "pdf2json";

const pdfParser = new PDFParser();

Expand Down Expand Up @@ -85,7 +85,7 @@ Or, use more granular page level parsing events (v2.0.0)

````javascript
import fs from "fs";
import PDFParser from "./pdfparser.js";
import PDFParser from "pdf2json";

const pdfParser = new PDFParser(this,1);

Expand All @@ -101,7 +101,7 @@ Or, use more granular page level parsing events (v2.0.0)
````javascript
import fs from "fs";
import PDFParser from "./pdfparser.js";
import PDFParser from "pdf2json";
const pdfParser = new PDFParser();
Expand All @@ -117,7 +117,7 @@ Alternatively, you can pipe input and output streams: (requires v1.1.4)
````javascript
import fs from "fs";
import PDFParser from "./pdfparser.js";
import PDFParser from "pdf2json";
const inputStream = fs.createReadStream("./pdf2json/test/pdf/fd/form/F1040EZ.pdf", {bufferSize: 64 * 1024});
const outputStream = fs.createWriteStream("./pdf2json/test/target/fd/form/F1040EZ.json");
Expand Down

0 comments on commit a0071f1

Please sign in to comment.