How to get story page number in an IDML Document?

333 Views Asked by At

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

There are 2 best solutions below

0
Nicolai Kant On BEST ANSWER

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.

1
Loic On

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)