Hi Saif,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thank you for using our product.
As per your requirements, you can use ImagePlacementAbsorber
and TextFragmentAbsorber classes to get image coordinates and text
coordinates respectively. Please see the following documentation links for more
details and sample code regarding TextFragmentAbsorber.
Search and Get Text from
All the Pages of PDF Document
You may check the following sample code regarding ImagePlacementAbsorber.
//
Open document
Document doc = new Document(@"D:\Tests\input.pdf");
//
Create ImagePlacementAbsorber object to perform image placement search
ImagePlacementAbsorber abs = new ImagePlacementAbsorber();
//
Accept the absorber for first page
doc.Pages[1].Accept(abs);
//
Display image placement properties for all placements
foreach (ImagePlacement imagePlacement in abs.ImagePlacements)
{
Console.Out.WriteLine("image width:" +
imagePlacement.Rectangle.Width);
Console.Out.WriteLine("image height:" +
imagePlacement.Rectangle.Height);
Console.Out.WriteLine("image LLX:" +
imagePlacement.Rectangle.LLX);
Console.Out.WriteLine("image LLY:" +
imagePlacement.Rectangle.LLY);
Console.Out.WriteLine("image horizontal resolution:" +
imagePlacement.Resolution.X);
Console.Out.WriteLine("image vertical resolution:" +
imagePlacement.Resolution.Y);
}
Please feel free to contact support in case you need any
further assistance.
Sorry for the inconvenience,