ISO_14289_1:7.4.2-1: Skipped Heading Level in Descending Sequence (e.g. H1 to H3)
This error occurs when a heading level is skipped in a descending sequence (e.g., H1 to H3), violating ISO 14289-1:7.4.2-1. It disrupts screen readers like NVDA, JAWS, and VoiceOver by breaking the logical document structure. Lekt can fix this automatically with 0px visual diff.
ISO_14289_1:7.4.2-1SEHn1. Official Rule Definition & Machine Verification Evidence
hasCorrectNestingLevel == trueHeading level %1 is skipped in a descending sequence of header levelsroot/document[0]/StructTreeRoot[0](20 0 obj PDStructTreeRoot)/K[0](27 0 obj SEDocument Document)/K[1](23 0 obj SEHn H2)The PDF/UA-1 specification requires that heading levels (H1–H6) be used in a strictly descending sequence without skipping. The `SEHn` object in the PDF structure tree must reflect this hierarchy. The veraPDF test `hasCorrectNestingLevel == true` verifies that no heading level is skipped. If a heading level is skipped (e.g., H1 followed by H3), the `hasCorrectNestingLevel` test fails, and the error is reported. This is a structural issue in the PDF’s tagged content tree, not a visual one, and must be corrected in the document’s internal structure.
2. Minimal Reproducible PDF Structure (Before vs. After)
A minimal failing case occurs when a document has a heading tag `H2` immediately after an `H1` without an `H1` to `H2` transition. The observed XPath in the live VeraPDF evidence shows a `SEHn H2` tag following a `SEHn H1` without an intermediate `H2`, which triggers the error.
20 0 obj
<< /Type /StructElem /S /Document /P 10 0 R /K [27 0 R 23 0 R] >>
endobj
27 0 obj
<< /Type /StructElem /S /H1 /P 20 0 R /K [0] >>
endobj
23 0 obj
<< /Type /StructElem /S /H3 /P 20 0 R /K [1] >> % Skips H2!
endobj
20 0 obj
<< /Type /StructElem /S /Document /P 10 0 R /K [27 0 R 24 0 R 25 0 R] >>
endobj
27 0 obj
<< /Type /StructElem /S /H1 /P 20 0 R /K [0] >>
endobj
24 0 obj
<< /Type /StructElem /S /H2 /P 20 0 R /K [1] >>
endobj
25 0 obj
<< /Type /StructElem /S /H3 /P 20 0 R /K [2] >>
endobj
3. Common Authoring Triggers & Checker Differences
Headings are visually styled but not correctly tagged in the document structure. Exporting to PDF without using the built-in heading styles (e.g., Heading 1, Heading 2) results in skipped heading levels.
Headings are styled using paragraph styles but not mapped to the correct tag in the export settings. If the tag mapping is incorrect or missing, the exported PDF will have skipped heading levels.
Users may apply bold or large font sizes to simulate headings without using the built-in heading styles. When exported to PDF, these visually styled headings are not recognized as proper heading tags, leading to skipped levels in the structure tree.
4. Manual Remediation Steps
In Adobe Acrobat Pro
- Open the PDF in Adobe Acrobat Pro DC.
- Go to the 'Accessibility' tool and select 'Reading Order'.
- Use the 'Tag Pane' to identify the incorrect heading level in the structure tree.
- Right-click the incorrect heading and select 'Edit Tag' to change its tag to the correct heading level in the sequence.
- Ensure the parent/child relationships in the structure tree reflect a descending sequence (e.g., H1 → H2 → H3).
In Upstream Source Tools (Word / InDesign / LaTeX)
- In Microsoft Word, ensure all headings are created using the built-in heading styles (Heading 1, Heading 2, etc.).
- In Adobe InDesign, map paragraph styles to the correct heading tags in the 'Export PDF' dialog under the 'Accessibility' tab.
- In Google Docs, use the built-in heading styles (Heading 1, Heading 2, etc.) instead of manually formatting text to simulate headings.
5. Offline Verification & Remediation in Lekt (Zero Cloud Uploads)
- Open the PDF in Lekt.
- Navigate to the 'Visual Reading Order' editor to view and edit the heading structure.
- Use the 1-Click Safe Auto-Fix to automatically correct skipped heading levels, or manually re-tag headings using the batch role re-tagging feature.
Frequently Asked Questions
How does Lekt ensure the structure tree reflects a correct descending sequence of heading levels?
Lekt analyzes the `SEHn` objects in the structure tree and ensures that each heading level is correctly nested and follows a descending sequence (e.g., H1 → H2 → H3). It adjusts the `/S` (tag name) and `/Parent` relationships to maintain a valid hierarchy.
What is the role of the `/K` array in the structure tree when fixing skipped heading levels?
The `/K` array in the `SEHn` dictionary contains references to child nodes in the structure tree. Lekt ensures that the `/K` array is updated to reflect the correct parent/child relationships after adjusting heading levels, preserving the document’s logical flow.
Can Lekt fix skipped heading levels in a document with deeply nested sections?
Yes, Lekt can handle deeply nested sections by traversing the structure tree and ensuring that each heading level is correctly nested and follows the required descending sequence. It maintains the original visual layout with 0px visual diff.
Check & Verify ISO_14289_1:7.4.2-1 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.