Skip to content

Bug: Large TOC overflows into footer / header #46

@thseiler

Description

@thseiler

Describe the bug

I found a pagination issue with HTML2PDF4Doc when used with StrictDoc: Large table of contents are overflowing into the header / footer area. I attached a minimal example:

minimal-toc-example.zip

The exported PDF looks like this:

Image

The PDF preview is also affected, but differently. Some entries are missing:

Image

To Reproduce

  • unzip attached example
  • run strictdoc server .
  • open browser to http://localhost:5111
  • switch to PDF preview and

Expected behavior

The attached example rendered with strictdoc 0.11.0 and a manually downgraded html2pdf4doc==0.0.18 looks as expected:

Image

Environment

OS: Windows 11

Browsers tested:

  • Chrome 139.0.7258.139 : affected
  • Microsoft Edge 139.0.3405.102 : affected
  • Firefox 142.0 (64-bit): affected

Strictdoc / html2pdf4doc versions:

  • 0.11.0 / 0.0.20: affected
  • 0.10.1 / 0.0.20: affected
  • 0.9.4 / 0.0.20: affected
  • 0.11.0 / 0.0.19: affected
  • 0.11.0 / 0.0.18: works as expected, so it seems to be related to a change introduced in html2pdf4doc 0.0.19

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions