office-ppt

通过 UNO 驱动本机安装的 LibreOffice 做 PPT,而不是用 JavaScript 写 OOXML:`lo_build` 用结构化幻灯片真开一份 Impress 文档,再由 LibreOffice 导出可编辑的 PPTX/ODP、PDF 与逐页 PNG;`lo_render` 重新渲染已有的 PPTX/PPT/ODP;`lo_convert` 做 Office 格式互转;`lo_probe` 报告探测到的 soffice 路径、版本与 UNO 桥状态;`lo_config` 修改已保存的配置。需要本机安装 LibreOffice(已在 26.8.1.1 验证),使用其自带 Python,无需系统 Python,并会在两次调用之间保留一个 soffice 热进程。仅在 Windows 上做过完整验证;Linux 上会退回系统 python3,需要 python3-uno。

插件介绍

通过 UNO 驱动本机安装的 LibreOffice 做 PPT,而不是用 JavaScript 写 OOXML:`lo_build` 用结构化幻灯片真开一份 Impress 文档,再由 LibreOffice 导出可编辑的 PPTX/ODP、PDF 与逐页 PNG;`lo_render` 重新渲染已有的 PPTX/PPT/ODP;`lo_convert` 做 Office 格式互转;`lo_probe` 报告探测到的 soffice 路径、版本与 UNO 桥状态;`lo_config` 修改已保存的配置。需要本机安装 LibreOffice(已在 26.8.1.1 验证),使用其自带 Python,无需系统 Python,并会在两次调用之间保留一个 soffice 热进程。仅在 Windows 上做过完整验证;Linux 上会退回系统 python3,需要 python3-uno。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:pawpress/office-ppt

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令