Project made to extract text from PDF files. First, type in the console, inside the PDF converter folder, "npm init", to create a new NPM package. After that, type "npm install pdfreader", to install our module responsible for extracting text from the PDF. Inside the "package.json", don't forget to type "type":"module", :
Place your PDF file inside the "pdfToText" folder. Don't forget to rename it to "sample.pdf":
And finally, just type the following code in your terminal: "node pdfToText/pdfReader.js pdfToText/sample.pdf".
If you want to know more about how to extract text from PDF, click HERE.