Skip to content

fix(odf): move hidden ODP slides to the invisible content layer - #4767

Merged
PeterStaar-IBM merged 1 commit into
docling-project:mainfrom
ankit2235:fix/odp-hidden-slides
Oct 12, 2026
Merged

PeterStaar-IBM merged 1 commit into
docling-project:mainfrom
ankit2235:fix/odp-hidden-slides

Conversation

@ankit2235

Copy link
Copy Markdown
Contributor

A slide hidden in an OpenDocument presentation (presentation:visibility="hidden" on its style:drawing-page-properties) was converted like a normal slide, so its text went into the body and the default exports.

The content of a hidden slide now goes to ContentLayer.INVISIBLE, the same as hidden ODS sheets in this backend and hidden PowerPoint slides and shapes (#4647, #4733). It stays available to callers who request that layer, and the default exports leave it out. Visible slides are unchanged.

With the Google Slides export attached to #4765, the Markdown export now contains only slide 1; the hidden slide 2 is in the invisible layer.

The new test builds a presentation with one visible and one hidden slide and checks the default Markdown export and the invisible layer. It fails on main and passes with this change; the other OpenDocument tests pass unchanged.

Issue resolved by this Pull Request:
Resolves #4765

Checklist:

  • Documentation has been updated, if necessary. (not needed)
  • Examples have been added, if necessary. (not needed)
  • Tests have been added, if necessary.

Signed-off-by: Ankit Kumar <ankitkumar19473@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ DCO Check Passed

Thanks @ankit2235, all your commits are properly signed off. 🎉

@mergify

mergify Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 Merge protection satisfied — ready to merge.

Show 1 satisfied protection

🟢 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)(?:\(.+\))?(!)?:

@PeterStaar-IBM PeterStaar-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 Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
docling/backend/opendocument_backend.py 87.50% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@PeterStaar-IBM
PeterStaar-IBM merged commit 807f6df into docling-project:main Oct 12, 2026
26 checks passed
@ankit2235
ankit2235 deleted the fix/odp-hidden-slides branch October 15, 2026 17:21
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.

ODP: hidden slides are exported as normal content

2 participants