Login  Register

asciidoctor-pdf: wrong {page-count} in footer when page_numering_start_at=title

Posted by afrey on Oct 20, 2019; 11:07am
URL: https://discuss.asciidoctor.org/asciidoctor-pdf-wrong-page-count-in-footer-when-page-numering-start-at-title-tp7260.html

Hi!

Converting to PDF, with a doctype=book, I get a wrong {page-count} in the footer when page_numbering_start_at=title.

Here is a little test:

custom-theme.yml:
    page:
      numbering_start_at: title
    footer:
      height: 12.9mm
      recto_right_content: 'Page {page-number} of {page-count}'
      verso_right_content: $footer_recto_right_content

Test.adoc:
    :doctype: book
    = Test 

    This test the `page-count` attribute in footers when the `doctype` is `book` and `numbering_start_at` is set to `title`.

    Tested with `asciidoctor-pdf-1.5.0-beta.6`.

    == First chapter

    == Second chapter

    Notice that the footer shows "Page 4 of 3". It should be "Page 4 of 4".

Is there another parameter to set to get the right {page-count} ? If not, I will file an issue for this.

-- Alex