Skip to content

YehorSolonukha/cv_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CV Automator: Word to PDF

An automation tool for fetching, converting, and organizing Word-based CVs. Designed to eliminate manual document management

πŸ“‹ Prerequisites

  1. Python 3.x and the requests library.
  2. LibreOffice: Installed and added to your System PATH.
    • Verification: Open terminal and type soffice --version.

πŸš€ Getting Started

1. Run the Launcher

You do not need to create a .env file manually. Simply execute the PowerShell script as administrator (so it can create .env file):

./init.ps1

The script will:

  • Check for an existing .env file.
  • Prompt you for any missing fields (required fields can be viewed in .env.example file).
  • Save your configuration for future runs.
  • Automatically trigger the Python build process with environment variables included (python script does NOT handle importing .env file).

πŸ›  Features

  • Atomic Updates: Uses a temporary staging area to prevent corrupted or partial updates.
  • URL Sanitization: Automatically converts SharePoint links to direct download streams.
  • Headless Conversion: Uses native LibreOffice CLI (soffice) for rapid PDF generation.
  • Auto-Bootstrapper: Includes a PowerShell launcher (init.ps1) that manages your .env configuration and starts the script

πŸ— Workflow Logic

  1. Prepare: The CV_TEMP_DIR is wiped to ensure a fresh build.
  2. Sanitize URLs: The URLs are stripped of clutter and forced to ?download=1.
  3. Download: .docx files are pulled into the staging area.
  4. Convert: soffice converts Word files to PDF.
  5. Update: If all steps succeed, the existing CV_FINAL_DIR is replaced by the staging folder.

About

An automation tool for fetching, converting, and organizing Word CVs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors