Get the raw text from a PDF

Which product are you using?

PDF.js Express Viewer
PDF.js Express Version

8.7.4
Detailed description of issue
I would like to extract the raw text of a pdf file so i can insert it in a table of a database for future use.

Hi there,

You can use the loadPageText method to get the text by page:

await documentViewer.getDocument().loadPageText(1)

Best regards,
Kevin Kim