Lekt logo Lekt
ISO_14289_1:7.4.2-1 Tier-1 Deterministic Auto-Fix (0px Visual Diff)

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.

veraPDF Rule ID
ISO_14289_1:7.4.2-1
Validated Object
SEHn
Matterhorn 1.1
14-002 (Machine), 14-003 (Machine)
Validation Profiles
PDFUA-1
PDF/UA-2 Equivalent
No direct 1:1 PDF/UA-2 rule
Lekt v1.8.2 Mode
1-Click Safe Auto-Fix & Visual Reading Order Batch Role Re-Tagging (H1–H6 / P)

1. Official Rule Definition & Machine Verification Evidence

Official veraPDF XML Definition: For documents that are not strongly structured, as described in ISO 32000-1:2008, 14.8.4.3.5, heading tags shall be used as follows: (*) If any heading tags are used, H1 shall be the first. (*) A document may use more than one instance of any specific tag level. For example, a tag level may be repeated if document content requires it. (*) If document semantics require a descending sequence of headers, such a sequence shall proceed in strict numerical order and shall not skip an intervening heading level. (*) A document may increment its heading sequence without restarting at H1 if document semantics require it
Machine Test Predicate: hasCorrectNestingLevel == true
Verbatim Error Message: Heading level %1 is skipped in a descending sequence of header levels
Observed veraPDF 1.30.4 Corpus Context XPath: root/document[0]/StructTreeRoot[0](20 0 obj PDStructTreeRoot)/K[0](27 0 obj SEDocument Document)/K[1](23 0 obj SEHn H2)
Normative Reference: ISO 32000-1:2008 §14.8.4.3.5

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.

Fails ISO_14289_1:7.4.2-1
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
Compliant PDF Structure
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

Microsoft Word

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.

Adobe InDesign

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.

Google Docs

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.

PAC 2024 vs. Adobe Acrobat Full Check vs. veraPDF 1.30.4: Adobe PDF Accessibility Checker (PAC) 2024 and Adobe Acrobat Pro Full Check do not fully implement the ISO 14289-1:7.4.2-1 rule for skipped heading levels. veraPDF 1.30.4, however, strictly enforces this rule by checking the `hasCorrectNestingLevel` test against the structure tree, ensuring full compliance with the PDF/UA-1 specification.

4. Manual Remediation Steps

In Adobe Acrobat Pro

  1. Open the PDF in Adobe Acrobat Pro DC.
  2. Go to the 'Accessibility' tool and select 'Reading Order'.
  3. Use the 'Tag Pane' to identify the incorrect heading level in the structure tree.
  4. Right-click the incorrect heading and select 'Edit Tag' to change its tag to the correct heading level in the sequence.
  5. 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)

  1. In Microsoft Word, ensure all headings are created using the built-in heading styles (Heading 1, Heading 2, etc.).
  2. In Adobe InDesign, map paragraph styles to the correct heading tags in the 'Export PDF' dialog under the 'Accessibility' tab.
  3. 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)

Honest Capability Scope (Tier-1 Deterministic Auto-Fix (0px Visual Diff)): Lekt can normalize descending heading gaps automatically via 1-Click Auto-Fix and also gives you multi-select batch role re-tagging (H1–H6, P, Caption, BlockQuote) in Visual Reading Order with unlimited Undo/Redo so semantic hierarchy matches the author's intent at 0px visual diff.
  1. Open the PDF in Lekt.
  2. Navigate to the 'Visual Reading Order' editor to view and edit the heading structure.
  3. 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.

Related PDF/UA & WCAG Error Guides