Determine coordinate for extracting text from pdf

I am trying to extract certain text from pdf file. I need to know the lower and upper x and y coordinates of the text on the pdf file using Aspose.Pdf.Rectange.

But how do I determine the lower and upper x and y coordinates of the text on the pdf file?

Hi there,


Thanks for your inquiry. You can search a text from PDF document and get coordinates of the text as following. Hopefully it will help you to accomplish the task.

llx=textFragment.Position.XIndent<o:p></o:p>

lly=textFragment.Position.YIndent

urx=llx + textFragment.Rectangle.Width

ury=lly + textFragment.Rectangle.Height

Please feel free to contact us for any further assistance.


Best Regards,