Skip to content
mdx-pdfPublic

About

Make resume PDF with MDX.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MDX-CV (WIP)

Generate professional resumes/CVs from MDX files into PDF. Write your resume in Markdown with JSX support, get a styled PDF out.

Quick Start

pnpm install

cd packages/cli
pnpm start render path/to/your-resume.mdx

Packages

Package Description
@mdx-cv/cli CLI tool — mdxcv render resume.mdx
@mdx-cv/core Core library — MDX string in, PDF stream out
@mdx-cv/fast-pipeline Alternative pipeline using Rollup + react-pdf-html (supports external .jsx/.css imports)
@mdx-cv/evaluate Dev utilities — md2html, html2md, mdx2jsx, mdxinspect, etc.

Usage

CLI

# Render an MDX file to PDF
pnpm start render resume.mdx

# With options
pnpm start render resume.mdx -f          # debug output
pnpm start render resume.mdx -o ./out    # custom output dir
pnpm start render resume.mdx -l zh-CN    # language (affects font)

Programmatic

import { basicRenderer } from "@mdx-cv/core"
import { createWriteStream } from "node:fs"
import { pipeline } from "node:stream/promises"

const mdx = `
# John Doe
Software Engineer

## Experience
- Company A (2020–2024)
`

const stream = await basicRenderer(mdx, new URL("file:///path/to/resume.mdx"))
await pipeline(stream, createWriteStream("resume.pdf"))

Tech Stack

License

MIT

About

Make resume PDF with MDX.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages