Skip to content

Layout: a table row taller than the page is refused instead of paginated #516

Closed

Description

@Tim81

A table row that cannot fit one page is refused with the too-tall message rather than split across
pages. A single long cell is enough to reach it, which makes this ordinary input rather than a
degenerate case.

Measured

Reported by VellumPdfShowcase against the published 2.3.2 package, on net10.0 Windows x64 Release.
Their measurement, not reproduced here.

A cell holding 6,000 characters:

release outcome
before #468 a column resolved to 67,980 points wide, pushing the table off the page
2.3.2 the text wraps inside the content box, and the row is refused with InvalidOperationException: An element is too tall to fit on a single page and cannot be rendered.

So #468 did what it set out to do. The unbounded column is gone. What the cap exposed is that the
row it now produces is taller than a page and nothing paginates it.

Why this is worth its own issue

The message blames the page size, which is the one thing that is not wrong, so it belongs to the
family #481 corrected for other inputs. A caller reading it will enlarge the page or cut content,
and neither is the remedy.

TableRenderer already splits a table between rows. What it does not do is split within a row, so
a row whose tallest cell exceeds the content height has nowhere to go.

Scope

  • Decide first whether a row splits at all. Splitting a row across pages means deciding what happens
    to the other cells in it, to a row that is also a repeatable header, and to a RowSpan that
    crosses the break.
  • If it does not split, the refusal must at least name the row and the cell rather than the page, and
    say that the content of one cell exceeds a page.
  • A test at the boundary, not in the middle: the tallest cell that fits, and the shortest that does
    not.

Relates to

Adjacent to #463 and #312 in the composition milestone. Filed separately because those are about fit
modes and an element sized exactly to the content area, while this is reachable from one long string
in one cell.

Provenance: the showcase's re-measurement of published 2.3.2 during 2.3.3 planning. Reproduce it
before fixing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions