Skip to main content
Inspiring
June 17, 2010
Answered

CS4: Get all UID of pages who contains a page item

  • June 17, 2010
  • 1 reply
  • 741 views

Hi

How can I get all UID of page, which contains a page item with a specified UID?

E.g.: I like to have both UID of pages if a page item is place on two pages.

Thanks

Hans

This topic has been closed for replies.
Correct answer Dirk Becker

Jongware probably mixes the problem up with page items on master spreads.

I think you're talking about page items that possibly span multiple pages of a spread.

ILayoutUtils::GetOwnerPageUID is a good start.

If you need more details, iterate the pages of your spread and match their bounding box to the page item's bounding box.

Dirk

1 reply

Jongware
Community Expert
Community Expert
June 17, 2010
... if a page item is place on two pages. ...

Is that even possible? I would think all copies get a fresh UID ...

Dirk BeckerCorrect answer
Legend
June 17, 2010

Jongware probably mixes the problem up with page items on master spreads.

I think you're talking about page items that possibly span multiple pages of a spread.

ILayoutUtils::GetOwnerPageUID is a good start.

If you need more details, iterate the pages of your spread and match their bounding box to the page item's bounding box.

Dirk

hstoesselAuthor
Inspiring
July 9, 2010

Thanks for the help.

Hans