Skip to main content
Participant
March 1, 2010
Question

How to get the location of a pageitem when there are pageitems with same UID?

  • March 1, 2010
  • 2 replies
  • 822 views

There are two text frames with same UID but on different pages( also defferent spreads ). What I want to know is how I can get the location of them both.

The following code can only get the location of the first frame because the second frame has the same UIDRef with the first one(because they are in one document with same UID) .


    InterfacePtr<IGeometry> splineGeo(ItemRef, IID_IGEOMETRY);
    PMMatrix itemPMMatrix = ::InnerToPasteboardMatrix( splineGeo );
    PMRect  itemPMRect = itemGeo->GetStrokeBoundingBox( itemPMMatrix );

Is there any way I can get the second frame location?
Thanks a lot.

This topic has been closed for replies.

2 replies

Hua_SunAuthor
Participant
March 17, 2010

Please forget this discussion because it is not a logical case as usual.

Inspiring
March 1, 2010

Same UID?

Pageitems have each unique UIDs.

Hua_SunAuthor
Participant
March 1, 2010

That's the problem. Of course, the case like this is caused by my project. I merged the items on master pages to the document pages with their UID on master pages, so there may exist page items with same UID on document pages.

Inspiring
March 1, 2010

The pageitems on document page are overridden?