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 try to parse a 300 page pdf and get the following content: XXXXXX ----------------Page (0) Break----------------
----------------Page (1) Break----------------
----------------Page (2) Break----------------
----------------Page (3) Break----------------
This is my code:
import PDFParser from "pdf2json"; const pdfParser = new PDFParser(this, 1); function readPDF(fileName) { pdfParser.loadPDF(fileName); pdfParser.on("pdfParser_dataError", errData => console.error(errData.parserError)); pdfParser.on("pdfParser_dataReady", pdfData => { const data = pdfParser.getRawTextContent() console.log('文本信息:', JSON.stringify(data) }); } readPDF('1.pdf')
The text was updated successfully, but these errors were encountered:
https://pan.baidu.com/s/1YOGhQgt_jStHEAbjMQO9sg?pwd=mipv
Here is my project and pdf
Sorry, something went wrong.
No branches or pull requests
I try to parse a 300 page pdf and get the following content:
XXXXXX
----------------Page (0) Break----------------
----------------Page (1) Break----------------
----------------Page (2) Break----------------
----------------Page (3) Break----------------
This is my code:
The text was updated successfully, but these errors were encountered: