Fixed the resize issue

This commit is contained in:
2026-07-14 08:02:11 +05:30
parent 6fd90ef7d4
commit fb0a78a405
17 changed files with 78 additions and 14 deletions

View File

@@ -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)

0
docengine/docengine.db Normal file
View File