This commit is contained in:
2026-07-11 14:56:44 -05:00
parent 5a0bd471b2
commit 0df7c36fbd

View File

@@ -37,7 +37,7 @@ with pdfplumber.open(args.pdf) as pdf:
print("Keine Info-Seite"); raise SystemExit(1)
# Zeilen rekonstruieren: Woerter nach 'top' gruppieren (gleiche Zeile = aehnliches top)
words = info_page.extract_words()
words = info_page.extract_words(x_tolerance=5)
# nach top sortieren
words.sort(key=lambda w: (round(w["top"]), w["x0"]))