doc by openai/skills
npx skills add https://github.com/openai/skills --skill docsoffice 和 pdftoppm 可用,则转换 DOCX -> PDF -> PNG。scripts/render_docx.py(需要 pdf2image 和 Poppler)。python-docx 进行编辑和结构化创建(标题、样式、表格、列表)。python-docx 提取文本作为备用方案,并指出布局风险。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
tmp/docs/ 存放中间文件;完成后删除。output/doc/ 目录下。优先使用 uv 进行依赖管理。
Python 包:
uv pip install python-docx pdf2image
如果 uv 不可用:
python3 -m pip install python-docx pdf2image
系统工具(用于渲染):
# macOS (Homebrew)
brew install libreoffice poppler
# Ubuntu/Debian
sudo apt-get install -y libreoffice poppler-utils
如果在此环境中无法安装,请告知用户缺少哪个依赖项以及如何在本地安装。
无必需的环境变量。
DOCX -> PDF:
soffice -env:UserInstallation=file:///tmp/lo_profile_$$ --headless --convert-to pdf --outdir $OUTDIR $INPUT_DOCX
PDF -> PNG:
pdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME
捆绑的辅助脚本:
python3 scripts/render_docx.py /path/to/file.docx --output_dir /tmp/docx_pages
每周安装数
481
代码仓库
GitHub 星标数
15.1K
首次出现
2026年1月28日
安全审计
安装于
codex432
opencode409
gemini-cli396
github-copilot390
cursor374
kimi-cli373
soffice and pdftoppm are available, convert DOCX -> PDF -> PNGs.scripts/render_docx.py (requires pdf2image and Poppler).python-docx for edits and structured creation (headings, styles, tables, lists).python-docx as a fallback and call out layout risk.tmp/docs/ for intermediate files; delete when done.output/doc/ when working in this repo.Prefer uv for dependency management.
Python packages:
uv pip install python-docx pdf2image
If uv is unavailable:
python3 -m pip install python-docx pdf2image
System tools (for rendering):
# macOS (Homebrew)
brew install libreoffice poppler
# Ubuntu/Debian
sudo apt-get install -y libreoffice poppler-utils
If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.
No required environment variables.
DOCX -> PDF:
soffice -env:UserInstallation=file:///tmp/lo_profile_$$ --headless --convert-to pdf --outdir $OUTDIR $INPUT_DOCX
PDF -> PNGs:
pdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME
Bundled helper:
python3 scripts/render_docx.py /path/to/file.docx --output_dir /tmp/docx_pages
Weekly Installs
481
Repository
GitHub Stars
15.1K
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
codex432
opencode409
gemini-cli396
github-copilot390
cursor374
kimi-cli373