ISO_14289_1:7.2-42: Irregular Table Grid (Rows Span Different Column Counts)
This error occurs when table rows in a PDF/UA-1 document have inconsistent column spans, violating ISO 14289-1:7.2-42. This causes screen readers like NVDA, JAWS, and VoiceOver to misinterpret table structure, leading to confusion for users. Lekt provides a visual table inspector to fix RowSpan/ColSpan mismatches without altering layout.
ISO_14289_1:7.2-42SETable1. Official Rule Definition & Machine Verification Evidence
numberOfRowWithWrongColumnSpan == null || wrongColumnSpan != nullTable rows 1 and %1 span different number of columnsroot/document[0]/StructTreeRoot[0](6 0 obj PDStructTreeRoot)/K[0](14 0 obj SEDocument Document)/K[0](24 0 obj SETable Table)The rule requires that all rows in a `<SETable>` object have the same number of columns, including those affected by column or row spans. The `test_expression` `numberOfRowWithWrongColumnSpan == null || wrongColumnSpan != null` evaluates whether any row spans a different number of columns than others. This is enforced by ISO 32000-1:14.8.4.3.4, which defines the structure tree and how table elements must be consistently marked up. When rows have mismatched spans, the table structure becomes irregular, violating the accessibility requirement for predictable and consistent tabular data.
2. Minimal Reproducible PDF Structure (Before vs. After)
The error is triggered when a `<SETable>` object in the structure tree has rows with inconsistent column spans. For example, in the provided test file (`7.2-t42-fail-a.pdf`), the XPath `root/document[0]/StructTreeRoot[0]/K[0]/K[0]` points to a `<SETable>` where row 1 spans 3 columns, while another row spans 4. This mismatch causes the rule to fail.
14 0 obj
<<
/Type /StructElem
/K [25 0 R 26 0 R 27 0 R]
/S /Table
/ColSpan [1 1 1 2]
/RowSpan [1 2 1 1]
>>
endobj
24 0 obj
<<
/Type /StructElem
/K [14 0 R 28 0 R 29 0 R]
/S /Table
>>
endobj
14 0 obj
<<
/Type /StructElem
/K [25 0 R 26 0 R 27 0 R]
/S /Table
/ColSpan [1 1 1 1]
/RowSpan [1 1 1 1]
>>
endobj
24 0 obj
<<
/Type /StructElem
/K [14 0 R 28 0 R 29 0 R]
/S /Table
>>
endobj
3. Common Authoring Triggers & Checker Differences
When tables are manually merged or split using the 'Merge Cells' or 'Split Cell' functions, the resulting RowSpan/ColSpan values may not be properly updated in the PDF structure tree during export.
Exporting tables with merged cells or nested tables without enabling 'Tagged PDF' or 'Accessibility' options may result in inconsistent column spans in the structure tree.
Manually editing a PDF's structure tree using the Accessibility tools can lead to mismatched RowSpan/ColSpan values if the user does not validate the table structure.
4. Manual Remediation Steps
In Adobe Acrobat Pro
- Open the PDF in Adobe Acrobat Pro DC.
- Navigate to the 'Accessibility' tool and select 'Full Check' to identify the problematic table.
- Manually adjust the table structure using the 'Reading Order' tool to ensure all rows have the same number of columns and consistent spans.
In Upstream Source Tools (Word / InDesign / LaTeX)
- Open the source document (e.g., Word or InDesign) and ensure that all table cells are unmerged and unsplit.
- Export the document to PDF with 'Tagged PDF' and 'Accessibility' options enabled.
- Validate the resulting PDF using veraPDF 1.30.4 to confirm compliance.
5. Offline Verification & Remediation in Lekt (Zero Cloud Uploads)
- Open the PDF in Lekt and navigate to the 'Visual Table Grid Inspector'.
- Identify the rows with mismatched column spans and adjust RowSpan/ColSpan values using the interactive grid.
- Click 'Unwrap -> Div' if the table is decorative or layout-only, converting it into a semantically neutral `<Div>` block.
Frequently Asked Questions
Can Lekt automatically fix irregular table columns?
Lekt provides a visual editor to fix RowSpan/ColSpan mismatches manually. It does not automatically guess or infer correct spans, as this requires human judgment to preserve semantic accuracy.
Why does this error affect screen readers?
Screen readers rely on consistent table structure to navigate and interpret data. Irregular column spans disrupt this, causing confusion and misreading of table content.
Is this rule part of WCAG 2.2?
Yes, this rule is included in the WCAG 2.2 Machine-Readable profile via the PDF/UA-1 specification, ensuring that tables are structured consistently for accessibility.
Check & Verify ISO_14289_1:7.2-42 100% Offline
Run unlimited PDF/UA-1, PDF/UA-2, and WCAG 2.2 checks locally on macOS Apple Silicon or Windows x64 via embedded veraPDF 1.30.4 — zero FERPA/HIPAA cloud uploads, plus Free Watermarked Proof PDF export to verify 0 errors in PAC 2024 before paying.