Skip to content

feat: adding new top-level methods for page content geometry queries#297

Merged
PeterStaar-IBM merged 2 commits into
mainfrom
feat/add-endpoints-to-detect-shapes-or-bitmaps
Jul 10, 2026
Merged

feat: adding new top-level methods for page content geometry queries#297
PeterStaar-IBM merged 2 commits into
mainfrom
feat/add-endpoints-to-detect-shapes-or-bitmaps

Conversation

@PeterStaar-IBM

@PeterStaar-IBM PeterStaar-IBM commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Add PageParseResult.intersects_with(...) for checking visible chars, shapes, and bitmaps against a bbox with coordinate-origin normalization.
  • Add PageParseResult.get_shape_lines(...) to return visible horizontal and/or vertical straight shape segments, excluding Bézier/spline interpolation.
  • Add PageParseResult.get_connected_shape_bounding_boxes(...) to return visible shape bbox components connected by overlapping boxes.
  • Expose the new APIs through PdfPageDecoder pybind bindings and implement the native geometry checks in pdf_decoder<PAGE>.

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

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
@PeterStaar-IBM PeterStaar-IBM changed the title feat: adding new top-level methods feat: adding new top-level methods for page content geometry queries Jul 10, 2026
@PeterStaar-IBM PeterStaar-IBM merged commit ef41562 into main Jul 10, 2026
39 checks passed
@PeterStaar-IBM PeterStaar-IBM deleted the feat/add-endpoints-to-detect-shapes-or-bitmaps branch July 10, 2026 13:36
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.

2 participants