Skip to main content
Participant
February 15, 2012
Question

IDML spreads

  • February 15, 2012
  • 1 reply
  • 1660 views

Hello. I'm Alfred. I have some question to ask.

If I have 1 spreads that spare page 2 and page 3.

In page 2, i have one picture and one text. Let's say that my picture name is ball1.jpg and my text is "Hello page 2".

In page 3, i also have one picture and one text. At this page, my picture name is ball2.jpg and the is "Hello page 3".

Each page has their own name such as <page self="u103" ... > or <page self="u104" ... >.

Below the page, there are a two rectangle tag (for ball1.jpg and ball2.jpg) and two textframe tag.

And the question is, how do i know that ball1.jpg and "Hello page 2" are refer to page with name "u103" and ball2.jpg and "Hello page 3" are refer to page with name "u104"?

Is there any ID that show up or what?? thanks before!

This topic has been closed for replies.

1 reply

Harbs.
Legend
February 15, 2012

Pages in InDesign are not much more than rectangles which define areas on a spread.

The true parent of objects are the spread and not the page. To determine which page an object is located on, you need to compare the object coordinates with the page coordinates.

In the scripting DOM there's a parentPage property which does that work for you. If you write the page into a custom label, you can access that data in the IDML...

Harbs

Participant
February 15, 2012

Thanks for the replay Harbs.

But which one is the object coordinates and which one is the page coordinates?? Can you give me some example? Thanks. 

DOM stands for? Sorry. I'm new with InDesign..

Harbs.
Legend
February 15, 2012

I don't understand your question. Page coordinates are page coordinates and object coordinates are object coordinates.

DOM = Document Object Model.

Harbs