[JS] number of all PageReferences of all Topics
Hi,
I'm trying to make a progress bar while the treatment of my topics and (obviously) I need to know how much pageReferences of my topics I have in my document.
With this I know how many topics there is :
myDocument.indexes.item(0).allTopics.length
but for each topic I can have many pageReferences. How can I know how much there is?
An other question :
Is there a possibility to start the treatment of the topics at the beginning of the document?
for example :
chicken at page 2
egg at page 1 and 3
(Just an example...)
I would like to treat egg at page 1, then chicken at page 2, and egg at page 3.
For now I do chicken then egg (1) then egg (2).
Hope someone will help me!