Use react-pdftotext, works better. This will give you the texts, then you can just create an excel sheet in your application and pass the data their via other npm packages.
react-pdftotext
Good thing would be doing this to the backend if possible. Works better.