Skip to content

MaybeSam05/CustomCoverLetter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Cover Letter Generator

When I was applying to lots of internships in my freshmen year of school, I was frustrated with having to create a unique cover letter for each company I applied to. Tired of the manual labor, I decided to automate the whole process so it works in a single button click. This project automates the generation of personalized cover letters by filling in a customizable PDF template with job-specific information.

πŸ“Œ Features

  • Extracts text from a PDF cover letter template
  • Replaces placeholder variables with user-defined values
  • Cleans and formats the resulting text
  • Exports the final version as a new PDF

πŸ“‚ File Structure

.
β”œβ”€β”€ main.py               # Main script to generate cover letters
β”œβ”€β”€ CL_TEMPLATE_3.pdf     # Your cover letter template (edit path in code)
β”œβ”€β”€ /Companies/           # Folder where output PDFs are saved

πŸ”§ Technologies Used

  • Python 3
  • pdfminer.six β€” for extracting text from PDF
  • fpdf β€” for writing the final PDF
  • re β€” for text formatting and cleanup

πŸ› οΈ How It Works

  1. Define the job-specific variables in the main() function.
  2. Extract the template text from CL_TEMPLATE_3.pdf.
  3. Replace placeholders (e.g., [Company Name], [Position Name], etc.) with the actual values.
  4. Clean the text formatting and structure.
  5. Generate a new PDF and save it to a Companies directory with a company-specific filename.

✍️ Placeholders Supported

These must exist in your PDF template:

  • [Position Name]
  • [Company Name]
  • [Specific Company Value]
  • [Company Address]
  • [Industry/Field]
  • [Hiring Manager]
  • [myName]
  • [myEmail]
  • [myNumber]

πŸš€ How to Run

  1. Install dependencies:

    pip install pdfminer.six
    pip install fpdf
  2. Adjust the variables and file paths in main.py:

    • Make sure templatePath points to your PDF template.
    • Make sure outputPath points to a valid save location.
  3. Run the script:

    python main.py
  4. The output PDF will be saved in the Companies/ folder with a filename like Google ._CoverLetter.pdf.

πŸ“Œ Example Use Case

This tool is great for students or professionals who are applying to multiple companies and want to speed up the process of customizing cover letters.

About

When I was applying to internships in my freshmen year, I was frustrated with having to make a cover letter for each company. Tired of the labor, I decided to automate the process. This project automates the generation of personalized cover letters by filling in a customizable PDF template with job-specific information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages