Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CV Generator

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.

Prerequisites

  1. Install uv: uv is 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.

Setup

  1. Open your terminal or command prompt inside this folder.

  2. Install dependencies: Run the following command to automatically create a virtual environment (.venv), install the correct Python version, and download required libraries:

    uv sync
  3. Install Browser Engine: The PDF generator uses a headless Chromium browser. Install it with:

    uv run playwright install chromium

Customizing your Resume

To update the resume with your own information:

  1. Open resume_rahul.html in any text editor (like Notepad, VS Code, or Sublime Text).
  2. Look for placeholders like [YOUR NAME], [YOUR EMAIL], and [Job Title / Role].
  3. Replace the text between the tags with your actual information.
  4. If you want a profile picture, replace the photo.jpg file in this folder with your own photo (keep the name as photo.jpg).
  5. Save the file.

Running the Code

The simplest way to generate the PDF is to use uv run, which automatically activates the environment for you:

uv run main.py

(Optional) Manual Environment Activation

If 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.

Output

  • The script reads the resume_rahul.html file.
  • It generates a PDF named My_Resume.pdf in the same directory.

Notes

  • Ensure photo.jpg is present in the folder if you want your profile picture to appear in the PDF.

About

Portfolio site

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages