-
Notifications
You must be signed in to change notification settings - Fork 390
Closed
Description
Input:
import fs from "fs";
import PDFParser from "pdf2json";
const pdfParser = new PDFParser();
pdfParser.on("pdfParser_dataError", (errData) =>
console.error(errData.parserError)
);
pdfParser.on("pdfParser_dataReady", (pdfData) => {
fs.writeFile(
"./broken.json",
JSON.stringify(pdfData),
(data) => console.log(data)
);
});
pdfParser.loadPDF("./broken.pdf", 10);
Output:
Info: about to load PDF file ./broken.pdf
Info: Load OK: ./broken.pdf
Warning: Setting up fake worker.
Info: PDF loaded. pagesCount = 1
Info: start to parse page:1
Info: Skipped: tiny fill: 0 x 0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels