md2pdf重构为x2pdf:渲染层reportlab→WeasyPrint(md/txt/html)+LibreOffice(docx/xlsx/pptx/odt*),md/txt套默认黑白CSS并页码、html不套仅显式page生效,page/css参数化版式(默认CSS<page<css文件),依赖自带声明(requirements锁weasyprint==65.1/markdown==3.6——62.x对pydyf≥0.11无上界致transform崩,63+已适配;install.sh自检pango/cairo与CJK字体),删md2pdf整目录与cjk.ttf提取逻辑,img-utils改认系统wqy,README范例改指img-utils/x2pdf,system-prompt加PDF一律走x2pdf,技能清单段落格式改为名字:描述(listSkills已排序不动)

This commit is contained in:
2026-09-25 16:59:11 +08:00
parent da9e54d96d
commit 511c884e2b
16 changed files with 426 additions and 691 deletions
+3 -2
View File
@@ -139,8 +139,9 @@ Noto CJK fonts are installed (SC/TC/JP/KR). For matplotlib, set
Tesseract (`chi_sim`) already support Chinese.
**Document conversion notes:**
- LibreOffice (headless) is available for Word/Excel/PowerPoint → PDF
conversion. Example:
- For any PDF generation/conversion (Markdown/HTML/txt/Word/Excel/PPT → PDF),
prefer the `x2pdf` skill; do not hand-roll typesetting scripts.
- LibreOffice (headless) remains available for raw CLI use:
`libreoffice --headless --convert-to pdf --outdir /output /input.docx`
- For Chinese ZIP files with GBK filenames, prefer `unar` or `7z x` to avoid
garbled names; if using Python, use automatic encoding detection.