OptimalDocManager 1.0
==========================

Quick Start
-----------
1. Extract all files from the ZIP to a folder (do not run from inside the ZIP).
2. Open the folder and run: OptimalDocManager\OptimalDocManager.exe
3. To open the web UI, use Help -> Open Web Interface or visit http://127.0.0.1:8080

Important Requirements
----------------------
- Python is not required for the EXE build.
- Tesseract OCR (only if you want OCR features):
  - Install Windows build: https://github.com/UB-Mannheim/tesseract/wiki
  - Default path: C:\Program Files\Tesseract-OCR\tesseract.exe
  - Set the path in the app's Settings if needed.
- Microsoft Visual C++ Redistributable (required by some components like cryptography):
  - https://aka.ms/vs/17/release/vc_redist.x64.exe

Notes on Packaged Files
-----------------------
- Keep the entire folder structure intact, including the 'internal' directory. Removing it will break the app.
- The 'database' is not shipped; a per-user database is created under:
  %LOCALAPPDATA%\OptimalDocManager\database\
- Templates and static assets are bundled and resolved automatically.

Advanced
--------
- Server-only mode (no desktop UI):
  OptimalDocManager.exe --run-web-server [--port 9090]
- Logs:
  %LOCALAPPDATA%\OptimalDocManager\logs\web_server.log

Troubleshooting
---------------
- If the EXE fails to start on a clean machine, install the latest Microsoft Visual C++ Redistributable for x64.
- If scanners are not detected, ensure Windows Image Acquisition (WIA) drivers are installed.

Support
-------
- For issues, please include steps to reproduce, logs, and screenshots where possible.

Thank you for using OptimalDocManager!
