Loading...
Loading...
Convert Markdown documents into professional PDF whitepapers with Apple design style. Supports full Markdown syntax (code blocks, tables, blockquotes, lists, etc.). Automatically generates cover pages, table of contents, headers and footers. Use cases: Technical documents, whitepapers, tutorials, reports and other Markdown documents that require professional typesetting.
npx skill4agent add alchaincyf/huashu-skills huashu-md-to-pdf# Convert a single file
python scripts/convert.py input.md
# Specify output file name
python scripts/convert.py input.md -o "我的白皮书.pdf"
# Customize title and author
python scripts/convert.py input.md --title "技术白皮书" --author "花叔"# Document Title
## 1. Chapter 1
### 1.1 Section 1
### 1.2 Section 2
## 2. Chapter 2
### 2.1 Section 1## 1. Title### 1.1 Titlescripts/convert.py# Primary color
PRIMARY_COLOR = '#06c' # Apple blue
TEXT_COLOR = '#1d1d1f' # Main text black
GRAY_COLOR = '#86868b' # Light gray
# Font sizes
COVER_TITLE_SIZE = '64pt'
H2_SIZE = '22pt'
H3_SIZE = '17pt'
BODY_SIZE = '11pt'## 1. Title## Title### 1.1 Title### Title```python
def hello():
print("Hello")
```| Column 1 | Column 2 |
|-----|-----|
| Value 1 | Value 2 |scripts/convert.pyfont-familypip3 install markdown2 weasyprintbrew install pango
pip3 install weasyprintpython scripts/convert.py tech-guide.md -o "技术指南.pdf"python scripts/convert.py whitepaper.md --title "产品白皮书" --author "团队"scripts/convert.pyscripts/styles.csstemplates/cover.htmlProduced by Uncle Hua | AI Native Coder · Independent Developer Official Account "Uncle Hua" | 300,000+ followers | AI Tools & Efficiency Improvement Masterpieces: Kitty Fill Light (Top 1 in AppStore Paid Charts) · Mastering DeepSeek in One Book