This is a local desktop app (Tkinter) that bundles your extract.py and calculate.py.
- You choose a folder containing PDFs (optionally including subfolders)
- It runs
extract.process_pdf_file()on each PDF - Writes:
results.jsonresults.csvsummary.txt(Top1 / Top2 / Mean)
- Python 3.9+ (3.10+ recommended)
- Tkinter (usually included with Python on Windows/macOS; on some Linux distros you may need to install it)
pdftotext(Poppler) installed on your system (required byextract.py)
Ubuntu/Debian
sudo apt-get update
sudo apt-get install -y poppler-utilsmacOS (Homebrew)
brew install popplerWindows
- Install Poppler for Windows and ensure
pdftotext.exeis on your PATH. (Common approach: download a Poppler release, then add itsbinfolder to PATH.)
From the folder containing desktop_ui.py:
python desktop_ui.py- Results are written to the output folder you choose (default: the current directory).
- If you get errors about
pdftotextnot found, install Poppler and ensure it is on your PATH.