Skip navigation
Alfred Angkasa
Currently Being Moderated

IDML spreads

Feb 14, 2012 8:12 PM

Tags: #indesign #idml

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!

 
Replies
  • Currently Being Moderated
    Feb 15, 2012 1:48 AM   in reply to Alfred Angkasa

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2012 2:43 AM   in reply to Alfred Angkasa

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

     

    DOM = Document Object Model.

     

    Harbs

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2012 10:37 PM   in reply to Alfred Angkasa

    You need to compute it from the GeometricBounds and the ItemTransform.

     

    You might need to brush up on Matrix mathematics to get it right...

     

    Harbs

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points