py-pdf-parser
py-pdf-parser copied to clipboard
Ignore case for filter methods
Description
Added the ability to ignore case sensitivity when filtering PDF elements by text matching. Default is not to ignore (i.e. doesn't break logic with previous versions).
Linked issues
closes https://github.com/jstockwin/py-pdf-parser/issues/371
Testing
Created a simple PDF with various uppercase-lowercase combinations. Compared length of filtered output when the associated filter_by_text_equal
and filter_by_text_contains
functions are run with ignore_case
as both True
and False
. Behaves as expected.
Testing text:
Results:
Checklist
- [ ] I have provided a good description of the change above
- [ ] I have added any necessary tests
- [ ] I have added all necessary type hints
- [ ] I have checked my linting (
docker-compose run --rm lint
) - [ ] I have added/updated all necessary documentation
- [ ] I have updated
CHANGELOG.md
, following the format from Keep a Changelog.