I have a use-case where I need to know page number of specific element in the flow/book.
Let's say its an ad in a book. It can be anywhere. When HTML is converted into PDF I would like to save where ad is in the book, like page#32.
At the moment the only option I can think of is to actually build a ToC for these elements as the last page, parse that page to extract page numbers and cut it of from production build.
Other option, which I'm not sure if it's even possible is to use a javascript callback which would receive a page number while its being flowed and would ajax save that. (Possible?)
Any other ideas much appreciated!
Mike
Let's say its an ad in a book. It can be anywhere. When HTML is converted into PDF I would like to save where ad is in the book, like page#32.
At the moment the only option I can think of is to actually build a ToC for these elements as the last page, parse that page to extract page numbers and cut it of from production build.
Other option, which I'm not sure if it's even possible is to use a javascript callback which would receive a page number while its being flowed and would ajax save that. (Possible?)
Any other ideas much appreciated!
Mike