"""Configuration constants for PDF text extraction."""

PDF_TO_IMAGE_DPI = 100  # Memory efficient DPI for PDF to image conversion
OCR_DPI = 100  # Lower DPI specifically for OCR rendering to save memory

# --psm 6: Assume uniform block of text
# -l eng: English only (avoids loading other language models)
TESSERACT_CONFIG = r"--oem 3 --psm 6 -l eng"
MAX_PDF_PAGES = 15  # Limit PDF parsing to first N pages
MIN_LINES_PER_PAGE = 5  # Minimum lines per page to consider text extraction successful
