dfg
This commit is contained in:
@@ -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"]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user