I tried installing the tabula-js library but since it's a js lib I don't know how to integrate it in angular which works on ts.
Also if not this, then is there any way to select specific parts from a rendered pdf document by coordinates and then use it to extract the data. I basically need to make a pdf to json extraction webapp.
tabula-js
is a Node package, so it can't be ran in the browser. To integrate a web application with Tabula, you'll need to expose its functionality through some kind of API.