pdfGen1.4 is a locally hosted PDF generation tool built using Python, FastAPI, and MiKTeX for LaTeX-based rendering.
Due to hosting and API credit limitations, the project is designed to run entirely on your local machine while allowing free usage of Gemini APIs through local execution.
- Operating System: Windows 11
- Python Version: 3.12.8
- LaTeX Distribution: MiKTeX 24.1+
- Virtual Environment: Recommended (
.venv,.conda,uv, etc.)
Download the official Python installer:
🔗 https://www.python.org/ftp/python/3.12.8/python-3.12.8-amd64.exe
- Click Customize Installation
- Enable Add python.exe to PATH
- Proceed with recommended settings
- Complete installation
Open PowerShell or CMD:
python --version
pip --versionExpected:
Python 3.12.8
pip <version>
Download MiKTeX:
🔗 https://miktex.org/download/ctan/systems/win32/miktex/setup/windows-x64/basic-miktex-24.1-x64.exe
- Open MiKTeX Console
- Enable: Install missing packages on-the-fly
- Click Updates → Update All
This ensures LaTeX packages required for PDF rendering are available.
Inside your project directory:
python -m venv .venvPowerShell
.\.venv\Scripts\ActivateCMD
.\.venv\Scripts�ctivate.batOnce your virtual environment is active:
pip install -r requirements.txtThis installs FastAPI, Uvicorn, LaTeX-related utilities, and other required packages.
You can start the server in two ways:
uvicorn app:app --reloadOpen the displayed localhost link (e.g., http://127.0.0.1:8000).
Just double‑click:
runServer.bat
It will automatically start the backend and open the web interface.
Because:
- Hosting requires paid servers
- Gemini API has limited credits
- Local installation allows using free API keys from multiple accounts
- All heavy processing happens on your device without cloud limits
This ensures full flexibility and zero hosting cost.
Thank you