We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm getting An error occurred while parsing the PDF: stream must have data when running basic code.
An error occurred while parsing the PDF: stream must have data
In my root folder where I've got my index.js, I've got a file called nuclear.pdf nuclear.pdf
index.js
nuclear.pdf
My code is as simple as that:
let pdfParser = new PDFParser(); pdfParser.on("pdfParser_dataError", errData => console.error(errData.parserError) ); pdfParser.on("pdfParser_dataReady", pdfData => { fs.writeFile("./nuclear.json", JSON.stringify(pdfData)); }); pdfParser.loadPDF("./nuclear.pdf");
I can clearly see PDF has data. I don't think I've done anything wrong. I'd make a PR but I have no idea how to debug this...
The text was updated successfully, but these errors were encountered:
fix: verify #216 is fixed, add testing pdf to test/pdf/misc
fcccf56
verified fix in 3.1.2
Sorry, something went wrong.
fix: verify #216 is fixed, add testing pdf to test/pdf/misc (#357)
7f2e4ff
No branches or pull requests
I'm getting
An error occurred while parsing the PDF: stream must have data
when running basic code.In my root folder where I've got my
index.js
, I've got a file callednuclear.pdf
nuclear.pdf
My code is as simple as that:
I can clearly see PDF has data. I don't think I've done anything wrong. I'd make a PR but I have no idea how to debug this...
The text was updated successfully, but these errors were encountered: