Skip to content

fix: serialization into DCLX on splitted text across pages - #775

Merged
PeterStaar-IBM merged 2 commits into
mainfrom
fix/doclang-serialization
Sep 15, 2026
Merged

PeterStaar-IBM merged 2 commits into
mainfrom
fix/doclang-serialization

Conversation

@PeterStaar-IBM

Copy link
Copy Markdown
Member

we fix this,

Screenshot 2026-09-15 at 06 11 49 Screenshot 2026-09-15 at 06 11 59

into

Screenshot 2026-09-15 at 07 17 15

Summary

  • Preserve page-local pictures and captions when a preceding paragraph spans multiple pages.
  • Regroup threaded fragments by provenance page before emitting <page_break/>.
  • Add dclx output support to docling-serialize.
  • Package page images under pages/ and picture assets under assets/.
  • Require --output for binary DCLX output.

Usage

docling-serialize document.json --to dclx --output document.dclx

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
@github-actions

Copy link
Copy Markdown
Contributor

DCO Check Passed

Thanks @PeterStaar-IBM, all your commits are properly signed off. 🎉

@mergify

mergify Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 2 merge protections satisfied — ready to merge.

Show 2 satisfied protections

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

🟢 Require two reviewer for test updates

When test data is updated, we require two reviewers

  • #approved-reviews-by >= 2

Signed-off-by: Peter Staar <taa@zurich.ibm.com>

@dolfim-ibm dolfim-ibm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.87097% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
docling_core/transforms/serializer/doclang.py 83.01% 9 Missing ⚠️
docling_core/cli/serialize.py 88.88% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@PeterStaar-IBM
PeterStaar-IBM merged commit ebbc1ed into main Sep 15, 2026
11 of 12 checks passed
@PeterStaar-IBM
PeterStaar-IBM deleted the fix/doclang-serialization branch September 15, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants