Skip to content

feat(pptx): optionally expose shape coordinates in slide points - #4823

Draft
Afloat16 wants to merge 1 commit into
Unstructured-IO:mainfrom
Afloat16:Afloat16/pptx-shape-coordinates-20261121
Draft

Afloat16 wants to merge 1 commit into
Unstructured-IO:mainfrom
Afloat16:Afloat16/pptx-shape-coordinates-20261121

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #3248.

Add include_coordinates=True to PPTX partitioning. Shape-derived elements receive the enclosing rectangle in the existing PointSpace format, measured in typographic points with the slide's bottom-left as origin. Paragraphs retain their containing shape's bounds, and table elements use the table shape's rectangle.

Transform rotated shape corners through translated/scaled nested groups before calculating the rectangle. Skip coordinates for unsupported rotated/flipped group transforms instead of fabricating a position. Notes and page breaks have no shape bounds, and coordinates supplied by a registered picture partitioner are preserved. The default keeps existing output unchanged.

Validation

  • New cases cover text boxes, titles, tables, a translated/nonuniformly scaled group, a rotated box and the default-off control.
  • Base revision: 5 failures, 1 pass. Final new cases plus all existing PPTX tests: 124 passed.
  • Repository Ruff 0.15.10 lint and format checks pass.

Draft pending the full repository test gate.

Checklist

  • Conventional user-facing title.
  • Maintainer: apply the appropriate category label.
  • Full repository test gate.

This branch has not been deployed

No deployments
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.

feat(pptx): add coordinate metadata to PPTX elements

1 participant