@echo off
setlocal
where py >nul 2>nul
if %errorlevel%==0 (set "PY=py -3") else (set "PY=python")
%PY% -m pip install --user --upgrade pypdf
if errorlevel 1 (
  echo Optional PDF dependency installation failed. Web/API research still works.
  pause
  exit /b 1
)
echo Optional PDF extraction dependency installed.
pause
