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
累計下載
1961
星標
-
全站排名
#4,458
全站前 88% · 「辦公效率」前 81%
平台累計安裝累計下載星標評論
ClawHub ↗291105--
SkillHub ↗1601961-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

文件建議使用 scripts/pymupdf_cli.py 執行確定性操作,可匯出頁面圖像、擷取圖像或檢查中繼資料。應使用可信 PDF 和專用輸出目錄,並在分享前檢查產生檔案。 需要 Python 與隔離環境中審核固定的 PyMuPDF;頁面索引從零開始,新輸出目錄可避免同名覆蓋。本版本未另行審查最終遮蔽或註解流程。

資料釋出於 2026-10-27

可以用來做什麼

  • 匯出 PDF 頁面圖像
  • 擷取內嵌圖像或查看文件資訊

什麼時候用

  • 需要透過命令列處理本機 PDF 時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

檢查這個 PDF 並將結果儲存到新目錄。
將指定頁面匯出為圖像,並先列出產生檔案。

月度資料趨勢

累計下載1961
319120120832026-03 · 累計下載 4412026-05 · 累計下載 7142026-06 · 累計下載 8152026-07 · 累計下載 9322026-08 · 累計下載 13572026-09 · 累計下載 196126-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091961—-
2026-081357+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),按月更新。口徑說明見資料方法。