This project generates a PDF resume from an HTML file using Python and Playwright. It is designed to be easy to run, even if you don't have Python installed, by using the uv package manager.
-
Install
uv:uvis a fast Python package installer and resolver. It handles installing Python for you if it's missing.- Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
- macOS / Linux:
curl -lsSf https://astral.sh/uv/install.sh | sh
Note: You may need to restart your terminal after installation for the command to be recognized.
- Windows (PowerShell):
-
Open your terminal or command prompt inside this folder.
-
Install dependencies: Run the following command to automatically create a virtual environment (
.venv), install the correct Python version, and download required libraries:uv sync
-
Install Browser Engine: The PDF generator uses a headless Chromium browser. Install it with:
uv run playwright install chromium
To update the resume with your own information:
- Open
resume_rahul.htmlin any text editor (like Notepad, VS Code, or Sublime Text). - Look for placeholders like
[YOUR NAME],[YOUR EMAIL], and[Job Title / Role]. - Replace the text between the tags with your actual information.
- If you want a profile picture, replace the
photo.jpgfile in this folder with your own photo (keep the name asphoto.jpg). - Save the file.
The simplest way to generate the PDF is to use uv run, which automatically activates the environment for you:
uv run main.pyIf you prefer to activate the virtual environment manually:
- Windows:
.venv\Scripts\activate - macOS / Linux:
source .venv/bin/activate
Once activated, you can just run python main.py.
- The script reads the
resume_rahul.htmlfile. - It generates a PDF named
My_Resume.pdfin the same directory.
- Ensure
photo.jpgis present in the folder if you want your profile picture to appear in the PDF.