From e24b0a046635995c08c91ccf9d6900560d7fb390 Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Sun, 17 Jul 2022 20:53:18 +0200 Subject: [PATCH] MAINT: Text extraction improvements (#1126) Credits to pubpub-zz, see https://github.com/py-pdf/PyPDF2/pull/1118#issuecomment-1186148575 Co-authored-by: pubpub-zz <4083478+pubpub-zz@users.noreply.github.com> --- PyPDF2/_page.py | 1 - 1 file changed, 1 deletion(-) diff --git a/PyPDF2/_page.py b/PyPDF2/_page.py index efa3bd403..756926d5e 100644 --- a/PyPDF2/_page.py +++ b/PyPDF2/_page.py @@ -1383,7 +1383,6 @@ def process_operation(operator: bytes, operands: List) -> None: if isinstance(op, (int, float, NumberObject, FloatObject)): if ( (abs(float(op)) >= _space_width) - and (abs(float(op)) <= 8 * _space_width) and (len(text) > 0) and (text[-1] != " ") ):