Maverick

pymupdf

办公效率v1.0.0
作者:Maverick更新于 2026-05-11@clawhub_maverick-ai-tech/pymupdf
PDF 处理#PDF

据 AlphaMoat 统计,截至 2026-09,pymupdf 累计下载 1,961 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 4,458 位,在「办公效率」分类(435 个)中排名第 349 位。

累计安装
160
累计下载
1,961
星标
-
全站排名
#4,458
全站前 88% · 「办公效率」前 81%
平台累计安装累计下载星标评论
ClawHub ↗291,105--
SkillHub ↗1601,961-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

文档建议使用 scripts/pymupdf_cli.py 执行确定性操作,可导出页面图像、提取图像或检查元数据。应使用可信 PDF 和专用输出目录,并在分享前检查生成文件。 需要Python与隔离环境中审核固定的PyMuPDF;页索引从零起,新输出目录避免同名覆盖。本版本未单独审查最终涂黑或标注流程。

资料发布于 2026-10-27

可以用来做什么

  • 导出 PDF 页面图像
  • 提取内嵌图像或查看文档信息

什么时候用

  • 需要通过命令行处理本地 PDF 时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

检查这个 PDF 并将结果保存到新目录。
将指定页面导出为图像,并先列出生成文件。

月度数据趋势

累计下载1,961
3191,2012,0832026-03 · 累计下载 4412026-05 · 累计下载 7142026-06 · 累计下载 8152026-07 · 累计下载 9322026-08 · 累计下载 1,3572026-09 · 累计下载 1,96126-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-091,961—-
2026-081,357+45.6%-
2026-07932+14.4%-
2026-06815+14.1%-
2026-05714—-
2026-03441—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

1.8 KB · ClawHub v1.0.0
---
name: pymupdf
description: Render PDF pages to images, extract embedded images, annotate PDFs, and perform advanced PDF inspection using pymupdf (fitz). Use for tasks such as exporting pages as PNG/JPG, extracting images embedded in a PDF, drawing annotations, redacting content, or when high-fidelity rendering is required. For text extraction, splitting, merging, or rotating PDFs, use the pypdf skill instead.
metadata:
  openclaw:
    requires:
      bins:
        - python3
---
展开全部(共 41 行)
# pymupdf

Use `scripts/pymupdf_cli.py` for deterministic pymupdf operations instead of ad-hoc fitz snippets.

## Workflow

1. Confirm the PDF file path is accessible locally.
2. Run the desired command (export-images, extract-images, info).
3. Inspect the output directory or stdout.

## Command Guide

- Export pages as images:
  - `python scripts/pymupdf_cli.py export-images --input <file.pdf> --output-dir <dir/>`
  - Override format: `--format png` (default), `jpg`, or `ppm`.
  - Override resolution: `--dpi 300` (default: 150).
  - Restrict to specific pages: `--pages 0 1 2`.
- Extract images embedded inside a PDF:
  - `python scripts/pymupdf_cli.py extract-images --input <file.pdf> --output-dir <dir/>`
  - Optionally restrict to specific pages: `--pages 0 1 2`.
- Inspect page dimensions and basic document info:
  - `python scripts/pymupdf_cli.py info --input <file.pdf>`

## Operational Rules

- Pages are always 0-indexed in all commands.
- `export-images` renders each page as a raster image at the specified DPI.
- `extract-images` saves raw image streams embedded in the PDF (e.g. photos, logos); output filenames include page index and image index.
- Install dependency if missing: `pip install pymupdf`.
- For text extraction, splitting, merging, or rotating PDFs, use the pypdf skill instead.

「办公效率」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。