Automatically insert TOC page numbers

You can automatically insert page numbers into a table of contents, that will update to reflect the latest page number in the PDF. Here’s how:

  1. First, the TOC must be set up in the Word file using hyperlinks, following the instruction in “Setup a Table of Contents Manually”.

  2. In the Hederis app, open your table of contents in the Design preview, and click to select the text inside one of the TOC entries. You want to make sure that the “Inline link” element has been selected.

  3. Scroll down to the Dynamic Content design options. Depending on whether you want the page number to appear before or after the TOC text, choose either the “Before Content” or “After Content” option.

  4. If the “normal” checkbox is selected, uncheck it.

  5. If you want any text or white space to precede the page number, type it first, surrounded by quotation marks, and then press Enter on your keyboard.

  6. Type or paste the following text in the content box to insert the page number placeholder, and then press Enter on your keyboard: target-counter(attr(href url), page)

  7. Again, if you want any text or white space to follow the page number, type it, surrounded by quotation marks, and then press Enter on your keyboard.

  8. Press “Reflow Pages” to preview the change. The page numbers will appear as “0” in the Design preview, and will be auto-filled with the correct page number when you build the PDF.

  9. If you’re happy with the change, press Save Design.


Understanding Design Overrides and How to Remove or Change Them
Add printer marks
Getting Started
File Management, Uploads, and Downloads
Working with Book Text
Design
Paging
Images
Validation and Preflight
Groups and Billing
How Do I…
Appendix