Skip to content

Conversation

@hl2311
Copy link
Contributor

@hl2311 hl2311 commented Mar 21, 2025

Description:
Resolved #1219 issue.
Discovered that the PdfTextCell object was missing the bbox attribute/method during testing of the batch conversion functionality within the examples.

Resolution:

  • Renamed bbox to to_bounding_box and changed the code of line 66 in models\page_preprocessing_model.py file.

Checklist:

  • Documentation has been updated, if necessary.
  • Examples have been added, if necessary.
  • Tests have been added, if necessary.

@mergify
Copy link

mergify bot commented Mar 21, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

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

@hl2311 hl2311 changed the title Fix: Edit bbox to to_bounding_box in PdfTextCell fix: Edit bbox to to_bounding_box in PdfTextCell Mar 21, 2025
@cau-git
Copy link
Member

cau-git commented Mar 24, 2025

@hl2311 many thanks! This just needs two more steps...

  1. Please fix the DCO for the previous commit:
git rebase HEAD~1 --signoff
  1. Apply the pre-commit toolchain
pre-commit install
poetry run pre-commit run --all-files

Then make a new commit with the styling fixes. Important: Always commit with signoff (git commit -s).

hl2311 added 4 commits March 24, 2025 23:00
Signed-off-by: hl2311 <dhlong2301@gmail.com>
Signed-off-by: hl2311 <dhlong2301@gmail.com>
Signed-off-by: hl2311 <dhlong2301@gmail.com>
fix: Refactor missing bbox attribute to PdfTextCell
@cau-git cau-git merged commit 6df8827 into docling-project:main Mar 25, 2025
8 checks passed
ClemDoum pushed a commit to ClemDoum/docling that referenced this pull request Mar 26, 2025
…roject#1220)

* Fix: Add missing bbox attribute to PdfTextCell

* Fix: Add missing bbox attribute to PdfTextCell

Signed-off-by: hl2311 <dhlong2301@gmail.com>

* fix: Refactor missing bbox attribute to PdfTextCell

Signed-off-by: hl2311 <dhlong2301@gmail.com>

* Signed-off-by: hl2311 <dhlong2301@gmail.com>

fix: Refactor missing bbox attribute to PdfTextCell

---------

Signed-off-by: hl2311 <dhlong2301@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.

'PdfTextCell' object lacks 'bbox' attribute

2 participants