py-pdf-parser icon indicating copy to clipboard operation
py-pdf-parser copied to clipboard

Ignore case for filter methods

Open ARandomPerson07 opened this issue 1 year ago • 0 comments

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: image

Results: image

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.

ARandomPerson07 avatar May 26 '23 08:05 ARandomPerson07