We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to use the region from the Bookmark class to extract text in PDF

Hi,


Lately I am evaluating AsposePDF in .net to extract some information from various invoices.
Now I am trying to work with bookmarks using Facades.
While working with the Bookmark class i found four property which denotes some numeric value for each bookmark identified i.e PageDisplay_Bottom, Top, Left and Right.

My question is that, is there any way I can use these values to create a region that would help me to extract the text from the PDF using the below code

absorber.TextSearchOptions.Rectangle = new Aspose.Pdf.Rectangle(100,200,100,300);
doc.Pages[1].Accept(absorber);

Looking forward for a prompt reply, since this is a critical requirement from our side

Thanks & Regards

Hi Anushree,


Thanks for your inquiry. Please note in PDF Bookmark targets to a page, all the properties you mentioned are to get dimensions of bookmark targeted page. You should be able to extract text from the page using these coordinates. However if you encounter any issue then please share your sample code and document here, we will look into it and guide you accordingly.

Please feel free to contact us for any further assistance.

Best Regards,