Table and list split into separate structure elements at page breaks
Author: BartCardanCreated Aug 30, 2026Updated Aug 31, 2026
Labelsbug
content spanning multiple pages currently is separated in multiple tags. A list, table, paragraph, etc starting on page X and continuing on page Y, should be inside one <L>, <Table> or <P> instead of separate tags.
Attached sample HTML and PDF contains samples of the issue.
I am currently working on WeasyPrint 69.0.
Accessibility is our main focus so all our PDF's generated with WeasyPrint should be fully accessible conforming PDF/UA and WCAG.
WeasyPrint is so far the best solution. I have a version of the same PDF where I merged the tags afterwards, only rewriting /K and /P. It still validates, so the format allows one element to own content on several pages. Happy to attach it if that helps. Let me know.
Source: Kozea/WeasyPrint