function ValidatePdfUa2TableGrid(const Elements: TPdfStructureElements): TPdfUaValidationIssues;
| Elements | TPdfStructureElements |
TPdfUaValidationIssuesValidatePdfUa2TableGrid locates every Table element and simulates its rows and cells in a rectangular occupancy grid using the ColSpan and RowSpan attributes recorded on the TH and TD elements, with absent spans counting as 1
A TR row belongs to a table when its nearest Table ancestor is that element, so nested tables are validated independently
The table is reported as pvuaiTableGridInvalid when a cell overlaps an occupied grid cell, a span is negative or exceeds the 4096-column bound, a row leaves gaps before its last occupied column, rows have inconsistent widths, a RowSpan is still open beyond the last row, or the table declares no rows at all
A TH element with a Scope attribute other than Row, Column or Both is also invalid
A Headers association array that references an ID which no TH element in the document carries makes the table invalid
TableIssues := ValidatePdfUa2TableGrid(Pdf.StructureElements);