0

I require extracting the page number of a particular story in IDML Document. However, I'm unable to find any way to do so.There is a page tag in spread_xxx.xml describing pages in a spread. But that has no particular mapping to a story or vice-versa.

2 Answers2

0

In ExtendScript you can query parents of the placed story paragraph and one of them is the page.

I do not see an easy way to do this in IDML

There is a folder called Spreads with a separate spread for every two pages and with page being child element of the spread.You can also see text frames

Stories have their IDs like Self="u18e". You can see them in the designmap.xml as idPkg:Story.

How the paragraphs are linked to spreads I can not find.

Nicolai Kant
  • 1,391
  • 1
  • 9
  • 23
0

You can't. As one said in another forum where you might have asked* :

IDML isn't a representation of a document but a bunch of instructions about how to construct the document. So a page number can only be accessed at the document interpretation stage i.e. opening the idml file.

*(this question is present in multiple forums at this time)

Loic
  • 2,173
  • 10
  • 13
  • Thank you for taking the time to answer the question. Since you said that the IDML is just a bunch of instruction about constructing the document. Since the interpretation stage constructs the document putting text content in appropriate page and putting the pages in appropriate order. Won't the IDML document be having these instructions on which page to put the text content? Sorry, I'm missing something obvious I'm new to IDML and InDesign altogether. – Diwakar Bhatt Nov 09 '16 at 15:39