Skip to main content
Community Expert
August 19, 2021
Answered

page count won't count total number of pages in all chapters.

  • August 19, 2021
  • 1 reply
  • 857 views

I have a weird problem with a book in FrameMaker 2020. It is a book with multiple chapters, and the footer in each chapter has a "<$curpagenum> of <$lastpagenum>" ("5 of 20" for instance).

While the counter works ok on the first page of the last chapter counting "5 of 20", the first page in the first chapter which should count "1 of 20", counts 1 of 5

The chapters numbering properties seem to be correct in the book with the first files page numbering starting at 1 and the following chapters/page numbers being set to "continue". For some reason the first chapters <$lastpagenum> does not reflect the books total number of pages even if I have updated the book.

I must be overlooking something... but what?

    This topic has been closed for replies.
    Correct answer frameexpert

    The <$lastpagenum> variable only works at the document level, not the book level. I used to have a plug-in called BookPageCount which worked at the book level, but it is long since retired. If you need this at the book level, I may be able to code something in ExtendScript. Please let me know if you are interested. Thanks. -Rick

    1 reply

    frameexpert
    Community Expert
    frameexpertCommunity ExpertCorrect answer
    Community Expert
    August 19, 2021

    The <$lastpagenum> variable only works at the document level, not the book level. I used to have a plug-in called BookPageCount which worked at the book level, but it is long since retired. If you need this at the book level, I may be able to code something in ExtendScript. Please let me know if you are interested. Thanks. -Rick

    LinSims
    Community Expert
    Community Expert
    August 19, 2021

    You do have something! You wrote one called SetSelectedComponentsPageCount for me a couple years ago that should work just as well for @FrameMaker-dk.

    frameexpert
    Community Expert
    Community Expert
    August 23, 2021

    @frameexpert The script "SetSelectedComponentsPageCount".... is it for sale?

     

     


    Hi Bjørn, I sent you an email off list. Thanks. -Rick