Fixed the resize issue
This commit is contained in:
@@ -121,6 +121,11 @@ class NativePDFService:
|
||||
for line in block.get("lines", []):
|
||||
for span in line.get("spans", []):
|
||||
font_size = span.get("size", 12.0)
|
||||
|
||||
# Ignore massive text (like diagonal watermarks)
|
||||
if font_size > 60:
|
||||
continue
|
||||
|
||||
space_threshold = font_size * 1.5
|
||||
|
||||
font_family = span.get("font", None)
|
||||
|
||||
Reference in New Issue
Block a user