From Dev.to
PDF to Text in Your Browser: pdf-lib Can't Extract Text, but pdf.js Can
If you want the words out of a PDF without uploading the file anywhere, the answer is one function: page.getTextContent() from Mozilla's pdf.js. And if you already build PDF tools with pdf-lib — the l...
