[PDF] Chapters and pages are on the same level in TOC #1205

Open
opened 2026-02-05 00:15:24 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @heroin-moose on GitHub (May 27, 2019).

Describe the bug
A chapter and it's children are on the same TOC level in the resulting PDF file. On the other hand, different header levels produce correct indentation in TOC. This issue arises only if wkhtmltopdf is used, because TOC is not generated by the default exporting engine.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Tell BookStack to use wkhtmltopdf
  2. Create a new book
  3. Create a chapter named "FOO"
  4. Create a child page named "BAR"
  5. Create a child page named "BAZ"
  6. Export the whole book to PDF

Expected behavior
Chapters should on the higher level in TOC.

Your Configuration (please complete the following information):

  • Latest GIt (27 May 2019)
  • Docker
Originally created by @heroin-moose on GitHub (May 27, 2019). **Describe the bug** A chapter and it's children are on the same TOC level in the resulting PDF file. On the other hand, different header levels produce correct indentation in TOC. This issue arises only if wkhtmltopdf is used, because TOC is not generated by the default exporting engine. **Steps To Reproduce** Steps to reproduce the behavior: 1. Tell BookStack to use wkhtmltopdf 2. Create a new book 3. Create a chapter named "FOO" 4. Create a child page named "BAR" 5. Create a child page named "BAZ" 6. Export the whole book to PDF **Expected behavior** Chapters should on the higher level in TOC. **Your Configuration (please complete the following information):** - Latest GIt (27 May 2019) - Docker
OVERLORD added the 🚚 Export System label 2026-02-05 00:15:24 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1205