diff --git a/pypdf/_page.py b/pypdf/_page.py index bbc1aa5a9..c0608c8e1 100644 --- a/pypdf/_page.py +++ b/pypdf/_page.py @@ -1691,7 +1691,7 @@ def process_operation(operator: bytes, operands: List) -> None: ) text = "" elif ( - rtl_dir == False + rtl_dir is False and abs(delta_y) < f * 0.3 and abs(delta_x) > current_spacewidth() * f * 15 ):