Skip to content

Commit 9eae30b

Browse files
authored
Merge pull request #328 from pymupdf/v0.2.2
Version 0.2.2 Some hotfixes.
2 parents 83bb17c + be422db commit 9eae30b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pymupdf4llm/pymupdf4llm/helpers/check_ocr.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@ def should_ocr_page(
184184

185185
if decision["has_text"]:
186186
# early exit if any text exists
187-
print(
188-
f"{decision['has_text']=}, {decision['readable_text']=}, {decision['should_ocr']=}"
189-
)
190187
return decision
191188

192189
# Check for image coverage

pymupdf4llm/pymupdf4llm/helpers/document_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def is_superscripted(line):
130130
return True
131131
if len(spans) < 2: # single span line: skip
132132
return False
133-
if spans0["origin"][1] < spans[1]["origin"][1] and span0["size"] < spans[1]["size"]:
133+
if span0["origin"][1] < spans[1]["origin"][1] and span0["size"] < spans[1]["size"]:
134134
return True
135135
return False
136136

0 commit comments

Comments
 (0)