docs: add PDF heading levels guide - #4042
Merged
dolfim-ibm merged 2 commits intoAug 24, 2026
Merged
Conversation
Add a usage guide and a runnable example for the section-header level inference shipped in docling-project#3633, docling-project#3688 and docling-project#3984, covering the bookmark, numbering and font-style signals, their precedence, and the generate_parsed_pages requirement of the style fallback. Signed-off-by: Daniel Nguyen <danielnguyenh07@gmail.com>
Contributor
|
✅ DCO Check Passed Thanks @DanielNg0729, all your commits are properly signed off. 🎉 |
Contributor
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
Removed PDF heading recovery feature from the list. Signed-off-by: Nguyen Hoang Duong <danielnguyenh07@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi maintainers, The PDF heading-level inference shipped across #3633, #3688 and #3984 but was never fully documented. This
PR adds that documentation. No library code is touched.
docs/usage/heading_levels.md(new) — guide: how to enable it, the bookmark / numbering /font-style signals and their precedence, the option table, and the
generate_parsed_pagesrequirement of the style fallback.
docs/examples/heading_levels.py(new) — runnable example printing the recovered hierarchy.docs/usage/advanced_options.md,docs/index.md,README.md,mkdocs.yml— pointers and nav.docling/.agents/skills/docling/references/python-sdk.md—heading_hierarchy_optionsadded tothe options table.
Every snippet and level sequence in the guide was executed against this branch.
zensical buildadds no new warnings and
prekpasses on the changeset.Checklist: