Can i extract certain pdf text into variable?

I want to validate is pdf value and calculation correct , is there any way to do it ?

Hi, do you need to extract the complete PDF text or only a certain part (with the calculation)?

If not confidential, can you post an example PDF?

Sorry due to company privacy i can’t post the pdf

it’s something like pdf with table ,
row1 : item name
row2: unit price
row3: quantity
row4: total price

i need get those info and calculate in js for validate is the total price correct or not

Hi , is there any solution ?