Hello I have attached two documents, one is the original and the second one is the copy with a rectangle at the area where i want to extract the text. The code i am using is:
public string ExtractText(Page page, Rectangle rect)
{
Aspose.Pdf.Text.TextAbsorber textAbsorber = new Aspose.Pdf.Text.TextAbsorber
{
TextSearchOptions =
{
LimitToPageBounds = true,
Rectangle = rect
}
};
page.Accept(textAbsorber);
return textAbsorber.Text.Trim();
}
You just give the coordinates and extract the text from there. It is working fine for other documents but for this particular document it is not able to extract the text from the position. Any particular reason why is it happening and how can i resolve this?
Thank You.