Metadata-Version: 2.4
Name: md-cv-gen
Version: 0.1.0
Summary: Generate a clean, professional PDF CV from a Markdown file
Author-email: Chris Becker <goabonga@pm.me>
License-Expression: MIT
Project-URL: Homepage, https://github.com/goabonga/md-cv-gen
Project-URL: Repository, https://github.com/goabonga/md-cv-gen
Project-URL: Issues, https://github.com/goabonga/md-cv-gen/issues
Keywords: cv,resume,pdf,markdown,generator
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business
Classifier: Topic :: Text Processing :: Markup :: Markdown
Classifier: Topic :: Printing
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: markdown>=3.5
Requires-Dist: weasyprint>=62.0
Requires-Dist: pikepdf>=10.0
Dynamic: license-file

# md-cv-gen

Generate a clean, professional PDF CV from a Markdown file. Optionally password-protect the output.

## Prerequisites

- Python 3.10+
- [WeasyPrint system dependencies](https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#installation)

## Installation

```bash
python3 -m venv .venv
source .venv/bin/activate
pip install .
```

## Usage

```bash
# 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

```markdown
# 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 `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 |

## License

MIT
