Files
agent/skills/x2pdf/AGENTS.md
T
kicer 5959b4a674 docs(skills): AGENTS.md 改成「现象 → 命令」排错清单
删掉服务器背景、agent-executor-init、SKILL.md 说明之类的旁白。只保留:
报什么错 → 敲什么命令。四份都在 20 行内。
2026-11-11 19:13:34 +08:00

518 B

x2pdf

ModuleNotFoundError(文本类报 markdown,或提示 WeasyPrint 不可用)

python3 -m pip install --target "$AGENT_SKILLS_DEPS" -r "$(dirname "$AGENT_SKILLS_DEPS")/x2pdf/requirements.txt"

WeasyPrint 还要系统库:macOS brew install pango。

Office 类(docx/xlsx/pptx)报「未找到 LibreOffice」

brew install --cask libreoffice

装了 LibreOffice 后文本类也能用(自动回落,page 的边距/页码与部分 CSS 不生效),此时不必装 pango。