🌿 cjk-docpack v1.2.0 · MIT

Modular CJK-safe PDF generation + batch pipeline — WeasyPrint, fitz-verified, zero tofu.

What it does

Install

pip install git+https://mandrilly.com/git/cjk-docpack.git

Requires Python ≥ 3.10. Dependencies (PyMuPDF, weasyprint, markdown) are installed automatically.

On macOS, WeasyPrint needs pango: brew install pango and run with DYLD_LIBRARY_PATH=/opt/homebrew/lib.

Quick start

# Single document (CLI entry point)
cjk-docgen --template report \
  --meta report_meta.json \
  --body report_body.md \
  -o output.pdf --verify-report output.verify.json

# Batch pack from a manifest (valid + expected-fail jobs)
cjk-docpack-pipeline --manifest manifest.json

Source

git clone https://mandrilly.com/git/cjk-docpack.git

Repo contents: pdfgen.py (generator + fitz verification), pipeline.py (batch orchestrator), templates/, fixtures/, demo.sh, manifest.json (10-job demo pack).