Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,16 @@ private static List<List<IObject>> processDocument(String inputPdfName, Config c
if (structured) {
// Cross-page operations (must be sequential)
HeaderFooterProcessor.processHeadersAndFooters(contents, false);
new TableOfContentsProcessor().processTableOfContents(contents);
// TOC detection is temporarily disabled. It is not yet complete:
// - the heuristic has heavy false positives (any line ending in a
// bare number is treated as a TOC item), so it can restructure
// ordinary body content;
// - it never resolves a TOCI target (destination), so the tagged
// struct tree cannot emit a valid /Ref and the output is not a
// conformant table of contents (PDF/UA-2 clause 8.2.5.8.1).
// Re-enable once detection precision and target resolution are in
// place. (Remaining hardening is tracked in the internal tasks tracker.)
// new TableOfContentsProcessor().processTableOfContents(contents);
ListProcessor.processLists(contents, false);
}

Expand Down