Skip to content

fix: improve handling landscape conteint in portrait PDFs in layout postprocessor - #4047

Open
phact wants to merge 2 commits into
docling-project:mainfrom
phact:fix-landscape-in-portrait
Open

fix: improve handling landscape conteint in portrait PDFs in layout postprocessor#4047
phact wants to merge 2 commits into
docling-project:mainfrom
phact:fix-landscape-in-portrait

Conversation

@phact

@phact phact commented Aug 21, 2026

Copy link
Copy Markdown

Landscape content inside a portrait PDF gets parsed as one image. This makes it so that if VLM is enabled, it gets sent the entire rasterized image instead of the internal images for description even when most of the content is machine readable text.

Tested so that landscape content in a portrait pdf now results in the same output as landscape content in landscape PDF.

  • [ x ] Tests have been added, if necessary.

@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

DCO Check Passed

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

@mergify

mergify Bot commented Aug 21, 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)(?:\(.+\))?(!)?:

I, phact <estevezsebastian@gmail.com>, hereby add my Signed-off-by to this commit: 78103c8

Signed-off-by: phact <estevezsebastian@gmail.com>
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.

1 participant