Skip to content

Commit 458dd17

Browse files
committed
add tests for recently fixed bugs
1 parent a4b325c commit 458dd17

File tree

5 files changed

+239
-19
lines changed

5 files changed

+239
-19
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Development version
22

3+
* Gracefully handle hOCR files from `kraken` in `hocr_pdf`.
4+
* Deal with non-integer widths and heights in `hocr_pdf` which would previously lead to some white borders.
5+
36
# Version 1.1.0 - 2024-07-23
47

58
* Fix deprecation warning from `lxml` in `hocr_wordfreq`.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ dev = [
4949
# Tests.
5050
"beautifulsoup4",
5151
"requests",
52+
"pypdf",
5253
"importlib-resources; python_version < '3.10'",
5354
# Linting.
5455
"flake8",

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Pillow==11.0.0
55
lxml==5.3.0
66
python-bidi==0.6.3
77
reportlab==4.2.5
8+
pypdf==5.1.0

0 commit comments

Comments
 (0)