Skip to content

New text extraction method using a bounding box.#1508

Merged
asturio merged 3 commits intoLibrePDF:masterfrom
ConvoluteHumanBot:master
Mar 9, 2026
Merged

New text extraction method using a bounding box.#1508
asturio merged 3 commits intoLibrePDF:masterfrom
ConvoluteHumanBot:master

Conversation

@ConvoluteHumanBot
Copy link
Contributor

Added a new coordinates-based text extraction method under PdfContentTextLocator.java to extract strings that intersect the given bounding box.

Changed return type to generic java.util.List, minor code cleanup.

Unit-Tests for the new Feature

Added two unit tests under PdfTextExtractorTest.java

Alessandro Ragusi

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Copy link
Member

@asturio asturio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR. Thank you.

@asturio asturio merged commit 0bd2f55 into LibrePDF:master Mar 9, 2026
10 checks passed
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