Hi, I am trying to get location (Rectangle) of a COSObject but it seems only xcoordinate and ycoordinate information is available for COSObject. I can get the required details (location) from a PDXobject (PDXImage and PDXFormObject) which is good but I am not able to find a corresponding COSObject ( from PDXObject) and PDXObject has no User attribute values. I need both user attribute information and location, unfortunately I cannot get both from either one object (XObject or COSObject).
I was hoping to somehow identify COSObject from a PDXObject so I can get location from XObject and then attribute values from corresponding COSObject. Could someone please share a way to identify corresponding COSObject from an XObject or a way to get both user attribute values and location of an element in PDF? Thanks in advance.

