You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: move the structure entry's pages to the convention's total + pagination #67
Found while reviewing ICIJ/datashare#2299, which makes Java a structure producer.
The two sides do not agree on where a paginated entry keeps its page count. StructureManifestEntry nests everything under pages (pages: {type, total, byteRanges}, pinned in tests/test_objects.py:108-113), while the storage convention and now Java put them in the entry itself:
Neither side can read the other's page count today. Java no longer destroys the fields it does not model (it merges the manifest at tree level), so this is a read/compatibility gap rather than data loss, but a consumer cannot serve a docling-produced structure through the Java path until the shapes match.
Fix: move pages to the convention's entry-level total + pagination, where pagination carries type and, for the byteRanges scheme, ranges.
Activity
pirhoo commentedon Aug 3, 2026
Already handled in #68