Generate a clean, professional PDF CV from a Markdown file
Project description
md-cv-gen
Generate a clean, professional PDF CV from a Markdown file. Optionally password-protect the output.
Features
- Markdown in, PDF out — write your CV in plain Markdown, render it to a print-ready A4 PDF (or HTML).
- Sensible typographic defaults — an embedded stylesheet handles colors, spacing and page layout; tweak it in one place.
- Password protection — optionally encrypt the generated PDF.
- Single dependency-light CLI — one command, no config files.
Prerequisites
- Python 3.10+
- WeasyPrint system dependencies (Pango, cairo, …) for PDF output.
Installation
pip install md-cv-gen
Or run it without installing, using uv:
uvx md-cv-gen cv.md -o cv.pdf
Usage
# Output HTML to stdout
md-cv-gen cv.md
# Generate an HTML file
md-cv-gen cv.md -o cv.html
# Generate a PDF
md-cv-gen cv.md -o cv.pdf
# Generate a password-protected PDF
md-cv-gen cv.md -o cv.pdf -p "secret"
The output format is determined by the -o file extension (.pdf or
.html). Without -o, HTML is printed to stdout.
Markdown structure
# First Last
**Job title** | City, Country
email | phone | links
---
## Section <!-- h2 sections -->
### Role - Company <!-- h3 subsections -->
*Dates | Location* <!-- dates in italic -->
- Achievements as bullet points
Style customization
The CSS is defined in the STYLE variable in src/cv_generator.py. You can
modify colors, fonts and spacing directly.
| Element | Property | Default |
|---|---|---|
| Primary color | color (h2, links) |
#2980b9 (blue) |
| Text color | color (body) |
#2c3e50 (dark grey) |
| Font | font-family |
Helvetica Neue, Arial |
| Page size | size (@page) |
A4 |
| Margins | margin (@page) |
1.5cm 2cm |
Development
git clone https://github.com/goabonga/cv-generator.git
cd cv-generator
uv sync
uv run pre-commit install
uv run ruff check .
See CONTRIBUTING.md for the full workflow, commit conventions and release process.
License
MIT © Chris
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file md_cv_gen-1.0.0.tar.gz.
File metadata
- Download URL: md_cv_gen-1.0.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc1f5ca45ef12a083444f4392b295a86f4b227ec71b969c49ff0ddf02ef960b5
|
|
| MD5 |
a250aea62615cb517b7c53c6e9f2aa8e
|
|
| BLAKE2b-256 |
8183688423e61d4a6f4181deaedb0afdc6fdd2df0c8f3eaacaa52c22c11fad09
|
Provenance
The following attestation bundles were made for md_cv_gen-1.0.0.tar.gz:
Publisher:
ci.yml on goabonga/cv-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
md_cv_gen-1.0.0.tar.gz -
Subject digest:
bc1f5ca45ef12a083444f4392b295a86f4b227ec71b969c49ff0ddf02ef960b5 - Sigstore transparency entry: 1585245585
- Sigstore integration time:
-
Permalink:
goabonga/cv-generator@952760d851e7686a6dabb979186d9aef1c19bfe1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/goabonga
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@952760d851e7686a6dabb979186d9aef1c19bfe1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file md_cv_gen-1.0.0-py3-none-any.whl.
File metadata
- Download URL: md_cv_gen-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfbc3e9b4b87a97c65eb677398f0b50639a9dc15dc04833f085f8aa44a157344
|
|
| MD5 |
4581de8e5f8cc5d6e41e73f064b10d09
|
|
| BLAKE2b-256 |
f37dc34703ce27737e4a302eeb7c3f599c884c284da4240bc90406d11cc0a062
|
Provenance
The following attestation bundles were made for md_cv_gen-1.0.0-py3-none-any.whl:
Publisher:
ci.yml on goabonga/cv-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
md_cv_gen-1.0.0-py3-none-any.whl -
Subject digest:
cfbc3e9b4b87a97c65eb677398f0b50639a9dc15dc04833f085f8aa44a157344 - Sigstore transparency entry: 1585245779
- Sigstore integration time:
-
Permalink:
goabonga/cv-generator@952760d851e7686a6dabb979186d9aef1c19bfe1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/goabonga
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@952760d851e7686a6dabb979186d9aef1c19bfe1 -
Trigger Event:
push
-
Statement type: