Convert AI-generated Markdown summaries into polished technical PDF documents.
This repository provides a Codex-compatible skill plus an npx installer. It is designed for engineering reports, API summaries, architecture notes, runbooks, implementation plans, and other Markdown documents that need a clean PDF export.
Full-page example:
npx @zartt/markdown-tech-pdfThis copies the markdown-tech-pdf skill into your Codex skills directory and overwrites the previous local copy if one exists.
This repository is compatible with the Vercel skills CLI:
npx skills add zarttic/markdown-tech-pdf-skillThe CLI detects the markdown-tech-pdf skill from this repository and can install it for supported agents.
- Converts Markdown into a restrained technical-document HTML layout.
- Prints the HTML to PDF through a local Chromium-family browser such as Microsoft Edge, Google Chrome, or Chromium.
- Supports common technical Markdown: headings, lists, checklists, links, blockquotes, fenced code blocks, and pipe tables.
- Adds a title block and generated table of contents.
- Uses print-oriented CSS for A4 pages, readable code blocks, table styling, and stable spacing.
- Uses Chinese-capable system font fallbacks for mixed English and Chinese documentation.
# API Integration Technical Summary
## Goals
- Produce a restrained engineering document.
- Keep code blocks readable in print.
- Support Chinese text: 这是一个技术文档导出测试。
## Endpoint Table
| Endpoint | Method | Purpose |
| --- | --- | --- |
| `/v1/reports` | `POST` | Create report |
## Client Helper
```python
def create_report(client, payload):
return client.post("/v1/reports", json=payload)
```python ".\markdown-tech-pdf\scripts\md_to_tech_pdf.py" ".\sample.md" ".\sample.pdf" --title "Technical Report"Optional HTML output:
python ".\markdown-tech-pdf\scripts\md_to_tech_pdf.py" ".\sample.md" ".\sample.pdf" --html-output ".\sample.html"Copy the skill folder into your Codex skills directory:
Copy-Item -Recurse -Force `
".\markdown-tech-pdf" `
"$env:USERPROFILE\.codex\skills\markdown-tech-pdf"Restart Codex after copying the folder.
- Python 3.10+
- Microsoft Edge, Google Chrome, or Chromium available on the machine
No Pandoc dependency is required.
markdown-tech-pdf/
SKILL.md
agents/openai.yaml
references/technical-document-style.md
scripts/md_to_tech_pdf.py
docs/screenshots/
technical-document-fold.png
technical-document-preview.png
sample.md

