Extract pdf value

This is my pdf string --“04/10/24 12 E0114NU 1.0 109.52 44.84 1 8.97 8.97 35.87”— here i find values like paidamount=35.87, resp=8.97, coinsu=8.97,marks=1(not find), ded="any in between coinsu and marks ", i want to get ded value which is sometime blank there in between coinsu and marks, i already find the coinsu value, so i want based on coinsu value how i can find the ded value, suggest

@Arvind1,

If ded value is missing, are you getting extra space or something? How that string looks like?

Thanks,
Ashok :slight_smile:

YES, EXTRA SPACE IS THERE IN BETWEEN ,

just like 1 — 8.97

12/27/23 12 L3670 1.0 189.60 66.40 1 24.64 24.64 98.56
it looks like this

12/27/23 12 L3670 1.0 189.60 66.40 1 24.64 24.64 98.56 10 to 15 space count in between that

there are 10 to 25 space count in between 8.97 and 1