Get text below special text on pdf file

Hello everyone.

I want to extract the field below which hightlight by red square.

How to do this ?

I have used the command: Output = text.substring(text.indexof(“Description”)+“Description”.length+1) but not correct.

Thanks you!

1 Like

Kindly try with this expression
Text.SubString(text.IndexOf(“Description”), text.IndexOf(“DVT”)-text.IndexOf(“Description”))

Cheers @hadoanpapvn

1 Like

Hi Bro @Palaniyappan

Thanks you but it has problem

Hi Bro @Palaniyappan

Thanks you.

I have edited something: text.SubString(text.IndexOf(“Description”), text.IndexOf(“Các phụ phí khác”)-text.IndexOf(“Description”))

but it still contains the row as below. How to erase the text which red highlighted

1 Like

Fine
We can use simple Replace method
Yourvariable.Tostring.Replace(“Description Unit Quantity Unit Price Amount”,””)

Cheers @hadoanpapvn

1 Like

Hi Bro.

I know this command ^^

Thanks you so much!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.