Repository navigation
Conversation
…ertDocumentOptions Introduce HeadingHierarchyOptions with all docling-serve fields except enabled (which is derived from the presence of this options object). Add a derived doPdfHeadingHierarchy() getter that returns true when headingHierarchyOptions is non-null. Add unit tests for both options classes and a real-client integration test that verifies heading levels are inferred from PDF numbering. Update serve-api.md documentation to list the new option. Ref docling-project#754 Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
Add and entry to the Docling Serve section of what's new. Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
Owner
Author
|
Opened by mistake against the fork; the real PR is docling-project#756. |
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.
Summary
Expose Docling's
HeadingHierarchyOptionsin the docling-java API so callers can enable PDF section-header level inference from bookmarks, outline numbering and visual style.What changed
HeadingHierarchyOptions(new)useBookmarks,useNumbering,useStyle,useFontStyle,styleSizeTolerance,numberingSchemes,maxLevel,bookmarkMatchThresholdenabledfield — the presence ofheadingHierarchyOptionsonConvertDocumentOptionsis the switchConvertDocumentOptions(modified)headingHierarchyOptionsfield (serialises aspdf_heading_hierarchy_options)doPdfHeadingHierarchy()getter — returnstruewhen options are non-null,falseotherwise@Builderno longer has adoPdfHeadingHierarchyparameterTests
HeadingHierarchyOptionsTests— builder, getters, immutability, toBuilderConvertDocumentOptionsTests— with/without hierarchy, toBuilder preservationAbstractDoclingServeClientTests.shouldInferHeadingHierarchyFromPdfNumbering— real-container test that converts a PDF with numbering and asserts multiple distinct heading levels are assignedDocs
whats-new.md(Docling Serve section)serve-api.mdoptions listRef docling-project#754