dsh-lo-office
Drive the locally installed LibreOffice over UNO from DeepSeek Harness: build editable PPTX/ODP decks and render PPTX to PDF or per-slide PNG, using real Impress instead of a pure-JS writer. 适合需要利用真实Office排版引擎生成精美幻灯片和PDF的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:pawpress/office-ppt可配置项
| 字段 | 默认 | 说明 |
|---|---|---|
soffice | 空(自动探测) | soffice.exe 完整路径 |
python | 空(用自带的) | 带 uno 模块的 python |
theme | light | light / dark / slate / warm / swiss / atelier / noir |
ratio | 16:9 | 16:9 / 4:3 |
formats | pptx,pdf,png | 默认导出格式,可加 odp |
pngWidth | 1600 | 逐页 PNG 宽度(320–3840) |
footer | office-ppt · 由本机 LibreOffice 生成 | 页脚文字,空字符串=不画 |
pageNumbers | true | 是否显示页码 |
autoFit | shrink | 自动排版:shrink 缩字号 / off 不干预 |
minFontSize | 12 | 自动排版最小字号(6–72) |
timeoutMs | 240000 | 单次调用超时 |
keepWarm | true | 复用常驻 soffice |
idleMs | 60000 | 常驻进程空闲回收(毫秒) |
任何字段都能被单次工具调用的同名参数覆盖,配置里的值只是默认值。